jcot-jslib
v1.0.45
Published
jslib for jco projects
Readme
JavaScript library
Includes:
- webpack-based build system
- full ES6 support with Babel 6
- linting using eslint with airbnb configuration
- use node.js libraries
Build instructions:
To install dependencies:
npm installTo start a developing session (with watch), run:
npm run devTo check code for linting errors:
npm run lintTo build production code + crx:
npm run buildTo deploy
npm run deployThis builds, versions, and publishes the package to the npm registry.
It requires a valid npm auth token in ~/.npmrc:
//registry.npmjs.com/:_authToken=<your-token>If npm run deploy fails with a 401/404 from the registry, the token is
missing or expired. To fix:
- Generate a new Automation token at
https://www.npmjs.com/settings/juanc-olamendy/tokens
(or run
npm logininteractively). - Put the token in
~/.npmrcas shown above. - Confirm it works with
npm whoami(should print your username, not a 401 error). - Re-run
npm run deploy.
