summaryrefslogtreecommitdiffstats
path: root/js/README.md
blob: c03621fdc5e62c5ea904d6607a2ecd6fd7a344e9 (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
34
35
36
37
38
39
40
# JavaScript && CSS Development
Before starting, install nodejs and grunt-cli:

	sudo npm -g install grunt-cli

then run:

	npm install


## Building
This sets up a watcher on file change and compiles CSS and JS:

	grunt dev

If you don't want a watcher, just run:

	grunt

## Testing
Watch mode:

	grunt php
	grunt test

Single run mode:

	grunt phpunit
	grunt ci-unit

### Running e2e tests
Install protractor and set up selenium:

	sudo npm install -g protractor
	sudo webdriver-manager update

then the tests can be started with:

	grunt e2e