aurelia-templating-router
Version:
An implementation of the RouteLoader interface for use with the router module. Also contains a custom element that allows the templating engine to display the current route.
61 lines (40 loc) • 2.06 kB
Markdown
<p>
<a href="https://aurelia.io/" target="_blank">
<img alt="Aurelia" src="https://aurelia.io/styles/images/aurelia.svg">
</a>
</p>
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/aurelia-templating-router)

[](https://discourse.aurelia.io)
[](https://twitter.com/intent/follow?screen_name=aureliaeffect)
[](https://discord.gg/RBtyM6u)
# aurelia-templating-router
## Platform Support
This library can be used in the **browser** only.
## Building The Code
To build the code, follow these steps.
1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
2. From the project folder, execute the following command:
```shell
npm install
```
3. To build the code, you can now run:
```shell
npm run build
```
4. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.
## 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:
1. Ensure that the [Karma](http://karma-runner.github.io/) CLI is installed. If you need to install it, use the following command:
```shell
npm run test
```
2. With watch options to rerun the test (headless):
```
npm run test:watch
```
3. With watch options to rerun the test (with browser):
```
npm run test:debugger
```