A damn simple es5, es7 and Typescript starter kit for creating node modules and browser bundles using webpack for packaging.
- Use yarn as main package manager.
- Use typescript compiler for generating node module.
- Use tslint for linting code.
- Use webpack for generating browsers bundle.
- Use mocha and chai for testing, support code coverage
- Use Travis-ci for continuous integration
- Use Commitizen and Husky for git commits
git clone git@github.com:friends-of-js/typescript-module-starter-kit.git
cd typescript-module-starter-kit
yarn install
You should change package name in package.json
you can see a list of all available commands with description by typing in the console
yarn h
or
yarn i
Name | Description |
---|---|
src | Your source files placed here |
spec | Contains your tests files |
node_modules | Contains all your npm dependencies |
build | Scripts that responsible for building package |
build/declarations | Typescript declarations for packages that does not provide declarations |
lib | Generated package |
lib/browser | Browser bundle that can be directly used in browser |
lib/module | Node module packages |
lib/module/commonjs | Commonjs node module using es5 features |
lib/module/esnext | Node module using es7 and esnext features |
coverage | Code coverage report files |
tools | Tools for publication release and github pages |
tsconfig.json | Main typescript configuration file |
tslint.json | Main tslint configuration file |