UNPKG

2.06 kBMarkdownView Raw
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[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8[![npm Version](https://img.shields.io/npm/v/aurelia-templating-router.svg)](https://www.npmjs.com/package/aurelia-templating-router)
9![ci](https://github.com/aurelia/templating-router/actions/workflows/main.yml/badge.svg)
10[![Discourse status](https://img.shields.io/discourse/https/meta.discourse.org/status.svg)](https://discourse.aurelia.io)
11[![Twitter](https://img.shields.io/twitter/follow/aureliaeffect.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=aureliaeffect)
12[![Discord Chat](https://img.shields.io/discord/448698263508615178.svg)](https://discord.gg/RBtyM6u)
13
14# aurelia-templating-router
15
16## Platform Support
17
18This library can be used in the **browser** only.
19
20## Building The Code
21
22To build the code, follow these steps.
23
241. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
252. From the project folder, execute the following command:
26
27 ```shell
28 npm install
29 ```
30
313. To build the code, you can now run:
32
33 ```shell
34 npm run build
35 ```
36
374. 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
42To 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
441. 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
502. With watch options to rerun the test (headless):
51
52 ```
53 npm run test:watch
54 ```
55
563. With watch options to rerun the test (with browser):
57
58 ```
59 npm run test:debugger
60 ```
61
\No newline at end of file