Initialize template
Auto init:
npm run init-tpl
or Manual init:
- Change
git-hub-owner
in:- README.md
- package.json
- Change
npm-package-name
in:- README.md
- package.json
- package-lock.json
- Change
lib-name
in:- README.md
- package.json
- Change
license-holder
in:- LICENSE
- Change
lib-author
andlib-author-email
in:- package.json
After all - delete init.js
file and remove this section from README.md
file
lib-name
Description
Coverage
Statements | Branches | Functions | Lines |
---|---|---|---|
Table of Content:
Usage
Install npm package
npm i npm-package-name
Import to your codebase
By default, we distribute our lib as is - original TypeScript files, without transpiling to ES5 or ES6.
// Import original ts code
// but requires to be not exclude in `node_modules`.
// Check your `tsconfig.json`
import npmPackage from 'npm-package-name';
You can import compiled files from special folders.
// ES6: const, let, spread, rest and other modern JavaScript features
// but requires to be not exclude in `node_modules`.
// Check your `babebl-loader` (if your use webpack as bandler)
import npmPackage from 'npm-package-name/dist/es-6';
// or ES5: no ES6 features but ready for use as is, without transpiling
import npmPackage from 'npm-package-name/dist/es-5';
API
Properties
describe
Methods
describe