No description
Find a file
Marius Vollmer c7f5ed7d5a Use official "cockpit-manifest" launchable type
The "cockpit-package" type was only a proposal.

Fixes #7
Closes #12
2017-10-19 15:32:06 +03:00
src Use proper es6 import syntax 2017-10-18 19:12:56 +02:00
.babelrc initial commit. Created a basic webpack.config.js file, some basic .babelrc settings, and some notes on the build 2017-06-20 07:41:52 -04:00
.eslintignore Add more sample content to subscriptions page 2017-07-26 10:33:14 +02:00
.eslintrc.json Add more sample content to subscriptions page 2017-07-26 10:33:14 +02:00
.gitignore Dist using git ls-files 2017-10-18 19:12:56 +02:00
LICENSE Initial commit with a LICENSE and README 2017-06-14 18:19:15 +02:00
Makefile Dist using git ls-files 2017-10-18 19:12:56 +02:00
org.cockpit-project.starter.metainfo.xml Use official "cockpit-manifest" launchable type 2017-10-19 15:32:06 +03:00
package.json Dist using git ls-files 2017-10-18 19:12:56 +02:00
README.md Move and update documentation (#10) 2017-10-18 16:47:48 +02:00
starter-cockpit.spec Remove all remaining mentions of "subscriptions" 2017-10-18 16:42:54 +02:00
Vagrantfile vagrant: bump base box to fedora 26 2017-10-18 16:42:54 +02:00
webpack.config.js Remove the index.js indirection 2017-10-18 16:42:54 +02:00

Cockpit Starter Kit

Scaffolding for a Cockpit module.

Building

Run npm install to install dependencies and make to build the package. It builds into the dist directory. Link or copy that to a location were cockpit-bridge looks for packages.

make install compiles and installs the package in /usr/share/cockpit/. The convenience targets srpm and rpm build the source and binary rpms, respectively. Both of these make use of the dist-gzip target, which is used to generate the distribution tarball. In production mode, source files are automatically minified and compressed. Set NODE_ENV=production if you want to duplicate this behavior.

Vagrant

This directory contains a Vagrantfile that installs and starts cockpit on a Fedora 26 cloud image. Run vagrant up to start it and vagrant rsync to synchronize the dist directory to /usr/local/share/cockit/starter-kit. Use vagrant rsync-auto to automatically sync when contents of the dist directory change.