diff options
Diffstat (limited to 'js/README.md')
-rw-r--r-- | js/README.md | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/js/README.md b/js/README.md index c03621fdc..2c25ce4ed 100644 --- a/js/README.md +++ b/js/README.md @@ -1,40 +1,17 @@ -# JavaScript && CSS Development -Before starting, install nodejs and grunt-cli: +# JavaScript +Before starting, install nodejs and gulp-cli: - sudo npm -g install grunt-cli + sudo npm -g install gulp-cli then run: npm install +## Tasks +The following tasks are available: -## 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 - +* **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-phpuni |