Ember CLI blueprint for initializing a new TypeScript library, developing it using VSCode and deploying it to NPM.
$ npm install -g ember-cli
$ ember new -b libkit <package-name>
Write your library using .ts files instead of .js files and
libkit will take care of making things work.
The normal Ember CLI workflows work:
ember test -sto run your tests in Node and in the browserember sto serve your tests for use in a browser directlyember initto upgrade devkitember buildandember build -prodto build your package
The normal NPM workflows work too:
npm publishto publish your package, including Node modules (in CJS format), ES modules, and.d.tsfiles for other TypeScript consumersnpm testto run the tests in CI mode
Integration with VSCode:
cmd-shift-bto run TSLint and TypeScript type checking- Debugger integration with full support for breakpoints
- Run tests with the debugger attached by pressing
f5 - TDD workflow by running testem in an integrated terminal
(
TDDtask)
Good defaults that work with the rest of the workflow:
- .gitignore
- .npmignore
- .travis.yml
- tsconfig.json
- tslint.json
import ... from 'your-package';works in Ember and environments that support the"module"key inpackage.json.
All of these features should work on Windows (one of the main authors uses a Windows machine to develop these packages). We will prioritize any Windows bugs.