No description
Find a file
Lars Karlitski bd26aeda57 Move and update documentation (#10)
Also remove yarn.lock to simplify getting started.
2017-10-18 16:47:48 +02:00
src Clean up StarterKit view 2017-10-18 16:42:54 +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 Remove all remaining mentions of "subscriptions" 2017-10-18 16:42:54 +02:00
LICENSE Initial commit with a LICENSE and README 2017-06-14 18:19:15 +02:00
Makefile Remove all remaining mentions of "subscriptions" 2017-10-18 16:42:54 +02:00
org.cockpit-project.starter.metainfo.xml Remove all remaining mentions of "subscriptions" 2017-10-18 16:42:54 +02:00
package.json Remove all remaining mentions of "subscriptions" 2017-10-18 16:42:54 +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-with-stats Improve source package slightly 2017-09-11 10:43:48 +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.