-
-
Notifications
You must be signed in to change notification settings - Fork 48
Developer Guide
Matthias Frener edited this page Dec 23, 2020
·
12 revisions
- node.js (https://nodejs.org/)
- VSCode (https://code.visualstudio.com/)
- VSCode ESLint plugin (optional, but strongly recommended!) (https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
-
Build the library code to /dist folder
npm run build
-
Build ESLint on the library code.
npm run lint
-
Run the library code.
npm test
-
Create development (internal) documentation to /doc-dev folder
npm run doc:dev
-
Create public API documentation to /doc folder
npm run doc
-
Build a full release. This includes running tests, building /dist folder and creating API documentation.
npm run release
- When you change code or add new code, make sure
npm run lint
outputs 0 errors and 0 warnings. - Before your push changes, run
npm run release
to verify build works, all tests succeed and documentation is updated.