On Windows machine, go to Node.js download or use nvm for Windows to be able to easily switch between Node.js versions. After that, execute on PowerShell with Administration privileges (Run as administrator):
npm install -g --production windows-build-tools
On Linux machine, you can install n tool, which does pretty much the same
like nvm
but in a more convenient way.
sudo npm install -g yarn
yarn install
yarn build # Build browser and node.js library
yarn build:node # Build the node.js library
yarn build:browser # Build the browser library
yarn build:browser:dev # Build the browser library in dev mode
yarn build:browser:dev -w # Build and watch the browser library in dev mode
yarn docs # Build the docs in html format
yarn docs:markdown # Build the docs in markdown format
dist/browser
the library for the browser in abundle.js
dist/node
the library for Node.JSdist/types
the definition files for usage with TypeScript.build/coverage
the coverage information of the testsdocs
the generated tsdocs in markdown or html
Command | Description |
---|---|
yarn lint |
Run tslint |
yarn lint:spec |
Run tslint |
yarn test |
Run tests with coverage |