This is a Yeoman Generator for the Skeleton App of the Aurelia platform. It sets up a standard navigation-style app using gulp to build your ES6 code with Babel. Karma/Jasmine testing is configured as well.
For more info please visit the official site: http://www.aurelia.io/
The recent version of the aurelia libraries require jspm@beta. So make sure to install
npm install -g jspm@beta
before executing the next steps.
The recent update will take care of running
npm install
andjspm install
after downloading the boilerplate app, so this shortens the process to get up and running.
- Verify that Yeoman is installed
npm install -g yo
- Install this generator
npm install -g generator-aurelia
- Ensure that Gulp is installed. If you need to install it, use the following command:
npm install -g gulp
- Ensure that jspm (beta release) is installed. If you need to install it, use the following command:
npm install -g jspm@beta
- Create a new project folder and move into it in the terminal
mkdir YOUR_PROJECT_NAME
cd YOUR_PROJECT_NAME
- Execute the following command
yo aurelia
- To run the app, execute the following command:
gulp watch
- Browse to http://localhost:9000 to see the app. You can make changes in the code found under
src
and the browser should auto-refresh itself as you save files.
yo aurelia --skip-install will skip the npm and jspm install.
In order to create a new Aurelia Page just enter the following command inside your project root:
yo aurelia:page YOURPAGENAME
If you get an error like
Error: spawn git ENOENT
when executing the yo command, you should check whether GIT is installed and accessible from the command line
This will create a View and ViewModel with the given name inside the ./src
folder
Thanks to Addy Osmani for his awesome generator-boilerplate repo.