summaryrefslogtreecommitdiffstats
path: root/js/README.md
blob: aa72e4977ad624af352b18e3de5cd50609761200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# JavaScript Development
JavaScript is built and minified using gulp.

Therefore you need to install **Node.js 6+ and npm**. Then use npm to install **gulp-cli**:

	sudo npm -g install gulp-cli

Then install the local dependencies by running:

	npm install

## Tasks
The following tasks are available:

* **Build the JavaScript**:

        gulp

* **Watch for changes and build JavaScript**:

        gulp watch

* **Run JavaScript unit tests**:

        gulp karma

* **Watch for changes and run JavaScript unit tests**:

        gulp watch-karma