summaryrefslogtreecommitdiffstats
path: root/js/README.md
blob: 495e8b3ad186eff3f720c7f36ce87540aeb3e32f (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
30
31
32
33
# 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

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

        gulp watch-phpunit