1.0.6 • Published 3 years ago
node-intertools v1.0.6
Interdome
A multi-purpose
Get Started
- Run
npm installin your terminal - Then run
npm run build - Update the
package.jsonfile "name" field with your own package name. Example@username/package-name - Create an account with npm if you don't have one already. Also be sure to enable two-factor authentication
- Sign in to your npm account in your terminal with
npm login - Run
npm publish --access=publicto publish your package
Testing
- Install developer dependencies using the following command in your terminal
npm i -D mocha @type/mocha chai @types/chai ts-node - Create a new file
.mocharc.jsonin the root directory with the following contents:{ "extension": ["ts"], "spec": "./**/*.spec.ts", "require": "ts-node/register" } - Create a
testsfolder - Create an
index.spec.tsfile in thetestsfolder - Write unit tests in the
index.spec.tsfile to test the code inindex.ts - Add a
"test"property in thepackage.jsonfile and give it a value of"mocha" - Run
npm testin your terminal from the root folder of the project