A collection of Angular services and components to work with Forge Wizard UI.
You can see how it is used in:
- fabric8-ui application - deployed https://openshift.io
- launchpad-frontend application - deployed https://launch.openshift.io
All components shared a common object model for the Input.
ForgeService provide common REST endpoints like next
, validate
, execute
to work with your Swarm backends, see:
- launchpad backend and its launchpad-addon.
- fabric8 backend and its fabrci8-generator add-on .
This library does not run on it's own. It must be imported.
npm install ngx-launcher
- node 8.3.0
- npm 5.3.0
npm install
npm run reinstall
npm test
npm run build
To build ngx-launcher as a npm library, use:
npm run build
npm run bundle-webpack
npm publish dist
To build ngx-launcher as an npm library and embed it into a webapp such as fabric8-ui, you should:
- Run
npm run watch:library
in this directory. This will build ngx-launcher as a library and then set up a watch task to rebuild any ts, html and less files you change. - In the webapp into which you are embedding, run
npm link <path to ngx-launcher>/dist-watch --production
. This will create a symlink fromnode_modules/ngx-launcher
to thedist-watch
directory and install that symlinked node module into your webapp. - Run your webapp in development mode, making sure you have a watch on
node_modules/ngx-launcher
enabled. To do this using a typical Angular Webpack setup, such as the one based on Angular Class, just run `npm start. You will have access to both JS sourcemaps and SASS sourcemaps if your webapp is properly setup.
Our dependencies (--dev
included) are managed but npm-shrinkwrap.
When updating versions, make sure you update both package.json
and npm-shrinkwrap.json
.
To generate a new shrinkwrap file:
npm install shrinkwrap
npm shrinkwrap --dev
Links:
- Updating a package when you're using npm shrinkwrap
- with npm3, you may need to manually update
node_module/your_dependency/package.json
to removepeerDependecies
casuing shrinkwrap file hgenration to fail. - There is a demo of the wizard available on OpenShift that is updated with each PR.