You need to make an Aurelia Typescript plugin? If "YES!!!", you have just found the perfect place to start 😄
Here is the key components of the plugin skeleton:
- Typescript as a typed super set of JavaScript that compiles to plain JavaScript.
- FuseBox as a bundler/module loader for the sample (incl fuse-box-aurelia-loader)
- Jest a delightful JavaScript test framework.
- Puppeteer as headless Chrome for E2E testing.
- FuseBox Type Checker as a simple helper to do type-checking & linting while developing and producing the final build.
-
npm run watch
- Launches sample and watches src folder
- it does the type-checking and ts-lints on every save
- Now open
http://localhost:4444
to see your plugin in action.
-
npm run build
- Produces amd/commonjs/system/es2015 builds
- This will NOT emit/update files if you have any typescript or tslint errors
- run:
npm run setup
- Answer the question about name and version.
- To run the unit test with Jest run :
npm run test:unit
- Watch mode:
npm run test:unit -- --watch
- See the coverage:
npm run test:unit -- --coverage
- Watch mode:
- Simply run:
npm run test:e2e
- Make sure you've run the sample prior to the e2e test by running the
npm watch
command.
- Make sure you've run the sample prior to the e2e test by running the
- delete .git folder and run
git init
- update package.json with
- description
- keywords
- homepage
- bugs
- license
- author
- repository
- etc etc