- Running
npm install
in the component's root directory will install everything you need for development.
npm start
will run a development server with the component's demo app at http://localhost:9001 with hot module reloading.
npm test
will run the tests and produce a coverage report incoverage/
.
npm run jsdoc
will build the documentation for the component injsdoc/
.
npm run eslint
will run linting against thesrc
andtest
folders.
-
npm run build
will build the component for publishing to npm. -
npm run demo
will build the component for publishing to npm and also build the demo app indemo/
.
npm run prepublishOnly
will build the component for publishing to npm along with the documention for the component injsdoc/
.
npm version patch
git push --tags
npm publish
is handled by travis-ci when a tag is created.