mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-05-11 04:34:06 +02:00
![]() Currently, an article with an ID of 1000 will show up earlier than one with ID = 900, because the IDs are being treated as strings and compared alphabetically. (1 comes before 9, and the comparison stops there.) We need to parse them as integers to ensure that 900 is less than 1000. Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com> |
||
---|---|---|
.. | ||
admin | ||
app | ||
controller | ||
directive | ||
filter | ||
gui | ||
plugin | ||
service | ||
tests | ||
.jshintignore | ||
.jshintrc | ||
gulpfile.js | ||
karma.conf.js | ||
package-lock.json | ||
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