This skeleton is an example of how to utilize Aurelia with Visual Studio 2013 and Typescript. It sets up a standard navigation-style app using the Typescript compiler. Gulp is used to copy all html, ts, js, and map files to the dist\ directory. Karma/Jasmine testing is also configured. Integration of npm and jspm with the Visual Studio is provided but is disabled by default due to resource usage.
Install the Task Runner Explorer Visual Studio Extension.
Install the Typescript 1.3 Visual Studio Extension.
Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
Ensure that Gulp is installed. If you need to install it, use the following command:
npm install -g gulp
- Ensure that jspm is installed. If you need to install it, use the following command:
npm install -g jspm
Running The App
To run the app, follow these steps.
Open the project in Visual Studio.
Set Visual Studio to launch using Google Chrome. See below for instructions on running the app using Internet Explorer.
Press F5 to run the project.
Note: The build process will run
jspm install. For this reason, the first build will take quite a while.
Note: Visual Studio sometimes launches the browser before Gulp has finished deploying changes. If you get a black screen, try hitting refresh.
Note: At present there is a bug in the HTMLImports polyfill which only occurs on IE. We have submitted a pull request to the team with the fix. In the mean time, if you want to test on IE, you can work around the issue by explicitly adding a script tag before you load system.js. The script tag should look something like this (be sure to confirm the version number):
Running The Tests
To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:
- Ensure that the Karma CLI is installed. If you need to install it, use the following command:
npm install -g karma-cli
- You can now run the tests with this command:
We'd love for you to contribute to our source code and to make this project even better than it is today! If this interests you, please begin by reading our contributing guidelines. The contributing document will provide you with all the information you need to get started. Once you have read that, you will need to also sign our CLA before we can accepts a Pull Request from you. More information on the process is including in the contributor's guide.