core-library-template-nodejs
v1.0.0
Published
A template project for creating NodeJS libraries to be published to the private Astra NPM registry
Downloads
3
Readme
core-library-template-nodejs
This module provides a template for creating NodeJS libraries. The package includes standardized things like linting and publishing (from the master branch) to the Ad Astra private NPM repository.
Prerequisites
- Install Node.js and Node Package Manager (npm) here.
- Install your favorite text/code editor.
Install
Install the project's dependencies:
$ npm installRemove any stub code (TemplateLibraryClass) and its related tests. Lastly you should update index.js to export your new code.
Test
Run integration tests via npm
$ npm run unit-testor
$ npm testAdding integration tests should be a simple 'integration' or 'system' folder under /test with appropriate test scripts and required changes to package.json to invoke them.
For instance:
Running integration tests
$ npm run integration-testRunning system tests
$ npm run system-test