зеркало из https://github.com/nextcloud/news.git
fd630242da
* Remove bower, install everything using npm Remove js-url and use a simple function to get the query param. * Bundle all js scripts in app.min.js * Move jquery to devDependencies * Remove es6-shim, most common browsers support es6 natively. |
||
---|---|---|
.. | ||
admin | ||
app | ||
controller | ||
directive | ||
filter | ||
gui | ||
plugin | ||
service | ||
tests | ||
.jshintignore | ||
.jshintrc | ||
README.md | ||
gulpfile.js | ||
karma.conf.js | ||
package.json | ||
protractor.conf.js |
README.md
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