summaryrefslogtreecommitdiffstats
path: root/js/README.md
blob: fc89c526f7126995f040950d7db516d90ed6d785 (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 nodejs 5.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