This package contains a compact and lightweight TypeScript 2.0
boilerplate that export a single file.
Estimated bundle time: 0.3 ms
. (Depends on your computer.)
- Statically typed build system for working with Typescript 2.0 Pre
- Consistent code style with TSLint.
- Coverage report with Istanbul
- Dead code elimination
- VSCode integration
- Optional JSDOM
- Rollup for bundling
- Bublé as the ES2015 compiler
- Sinon for test doubles
- Mocha & Chai de facto standard
- JSX
- Environment variabels
- Easy debugging
build
- creates a development and production bundlebuild:dev
- creates a development bundlebuild:prod
- creates a production bundlecoverage
- shows the coverage reportclean
- remove the dist, coverage and build folderstest
- run all unit tests in the node.js environmenttest:jsdom
- run all unit tests in the node.js environment with jsdomlint
- validates all source and test fileslint-src
- validates all source fileslint-tests
- validates all test filesrelease
- build the library, push to NPM and Githubwatch:tests
- run all unit tests and watch files for changeswatch:build
- watch your TypeScript files and trigger recompilation on changesupdate:dependencies
- update npm packages
You can simply use this project as a drop-in replacement for any TypeScript projects if you need something fast, and lightweight. Just replace the ./src
and ./test
folder and it should work right out of the box.
Both Travis CI
and Circle CI
are supported.
The coverage reports are generated with Istanbul
, and delivered to coveralls.io
and codecov
by Travis CI
.
Istanbul generate a 100% correct coverage report. See the source and test files and do a comparison.
NPM install the Karma
package and type karma init
on the command line. The test files are pre-transpilled by TypeScript
and located here build/test/specs/**/*.js
.
Install a Karma
preprocessor, and the NPM packages you may need.
Yes. Both TSX
and JSX
. By default Bublé
are configured to be used with React
. You may change this inside the rollup.config.js
file.
What do you mean? The TypeScript
compiler have it's rules to follow, as well as TSLint
. Everytime you bundle, run a watch task or
run the unit tests, things get validated. You can't compile the source code or run unit tests if there are errors in your code.
You may consider this is if you need a lightweight, fast boilerplate that export a single file.
As a rule of thumb, TypeScript
works best in IE9
and above.
Nope. You only have to change the name on the boilerplate in the package.json
.