Added the following features to the default aurelia webpack typescript project
- async / await (users.ts)
- autoinject (users.ts)
- pushstate
- animations
- postcss (autoprefixer, precss, lost)
- cleaned up styles
- bluebird promises
- fixed splash flicker
Before you start, make sure you have a working NodeJS environment, preferably with NPM 3.
From the project folder, execute the following command:
npm install aurelia-cli -g
npm install
This will install all required dependencies.
If the TypeScript references do not work or you get some runtime errors you can try to execute the following command:
npm dedupe
To run the app execute the following command:
au run --watch
This command starts the development server that serves the app. You can now browse the skeleton app at http://localhost:9000. Changes in the code will automatically build and reload the app.
To build a development bundle execute:
au build
To build an optimized, minified production bundle execute:
au build --env prod
The production bundle includes all files that are required for deployment.
To run the unit tests:
au test