Skip to content

Latest commit

 

History

History
92 lines (60 loc) · 3.34 KB

README.md

File metadata and controls

92 lines (60 loc) · 3.34 KB

ngx-launcher

Build Status npm version semantic-release

A collection of Angular services and components to work with Forge Wizard UI.

You can see how it is used in:

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:

Getting started:

This library does not run on it's own. It must be imported.

npm install ngx-launcher

Building it

Pre-requisites

  • node 8.3.0
  • npm 5.3.0

Install the dependencies:

npm install

If you need to update the dependencies you can reinstall:

npm run reinstall

Run the tests:

npm test

Build the library:

npm run build

Library Build

Production

To build ngx-launcher as a npm library, use:

npm run build   
npm run bundle-webpack
npm publish dist

Development

To build ngx-launcher as an npm library and embed it into a webapp such as fabric8-ui, you should:

  1. 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.
  2. In the webapp into which you are embedding, run npm link <path to ngx-launcher>/dist-watch --production. This will create a symlink from node_modules/ngx-launcher to the dist-watch directory and install that symlinked node module into your webapp.
  3. 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.

Dependencies

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: