1 | <p>
|
2 | <a href="https://aurelia.io/" target="_blank">
|
3 | <img alt="Aurelia" src="https://aurelia.io/styles/images/aurelia.svg">
|
4 | </a>
|
5 | </p>
|
6 |
|
7 | [](https://opensource.org/licenses/MIT)
|
8 | [](https://www.npmjs.com/package/aurelia-templating-router)
|
9 | 
|
10 | [](https://discourse.aurelia.io)
|
11 | [](https://twitter.com/intent/follow?screen_name=aureliaeffect)
|
12 | [](https://discord.gg/RBtyM6u)
|
13 |
|
14 | # aurelia-templating-router
|
15 |
|
16 | ## Platform Support
|
17 |
|
18 | This library can be used in the **browser** only.
|
19 |
|
20 | ## Building The Code
|
21 |
|
22 | To build the code, follow these steps.
|
23 |
|
24 | 1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
|
25 | 2. From the project folder, execute the following command:
|
26 |
|
27 | ```shell
|
28 | npm install
|
29 | ```
|
30 |
|
31 | 3. To build the code, you can now run:
|
32 |
|
33 | ```shell
|
34 | npm run build
|
35 | ```
|
36 |
|
37 | 4. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6.
|
38 |
|
39 |
|
40 | ## Running The Tests
|
41 |
|
42 | 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:
|
43 |
|
44 | 1. Ensure that the [Karma](http://karma-runner.github.io/) CLI is installed. If you need to install it, use the following command:
|
45 |
|
46 | ```shell
|
47 | npm run test
|
48 | ```
|
49 |
|
50 | 2. With watch options to rerun the test (headless):
|
51 |
|
52 | ```
|
53 | npm run test:watch
|
54 | ```
|
55 |
|
56 | 3. With watch options to rerun the test (with browser):
|
57 |
|
58 | ```
|
59 | npm run test:debugger
|
60 | ```
|
61 |
|
\ | No newline at end of file |