mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2024-11-21 22:42:48 +01:00
5ab64657bd
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
30 lines
548 B
Markdown
30 lines
548 B
Markdown
# 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
|