diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-14 15:18:20 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-10-14 16:00:44 +0200 |
commit | c1c95fed1d50b0bb4376418bb1747ad0b38ee16c (patch) | |
tree | fa3a2acffdf3b7a796e9e39e6b65a93522a2d5c4 /server/sonar-web/gulpfile.js | |
parent | 0b322db4307871e4cb5c0058f197862e271f4062 (diff) | |
download | sonarqube-c1c95fed1d50b0bb4376418bb1747ad0b38ee16c.tar.gz sonarqube-c1c95fed1d50b0bb4376418bb1747ad0b38ee16c.zip |
use moment.js installed by npm
Diffstat (limited to 'server/sonar-web/gulpfile.js')
-rw-r--r-- | server/sonar-web/gulpfile.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-web/gulpfile.js b/server/sonar-web/gulpfile.js index eedaca51f1d..d59b71f1c32 100644 --- a/server/sonar-web/gulpfile.js +++ b/server/sonar-web/gulpfile.js @@ -75,7 +75,6 @@ gulp.task('scripts-sonar', function () { 'src/main/js/libs/third-party/underscore.js', 'src/main/js/libs/third-party/select2.js', 'src/main/js/libs/third-party/keymaster.js', - 'src/main/js/libs/third-party/moment.js', 'src/main/js/libs/third-party/numeral.js', 'src/main/js/libs/third-party/numeral-languages.js', 'src/main/js/libs/third-party/bootstrap/tooltip.js', @@ -107,7 +106,8 @@ gulp.task('scripts-main', function () { return bundle .require('react', { expose: 'react' }) .require('backbone', { expose: 'backbone' }) - .require('backbone.marionette', { expose: 'backbone.marionette' }); + .require('backbone.marionette', { expose: 'backbone.marionette' }) + .require('moment/min/moment-with-locales', { expose: 'moment' }); }); }); @@ -127,7 +127,8 @@ gulp.task('scripts-apps', function (done) { return bundle .external('react') .external('backbone') - .external('backbone.marionette'); + .external('backbone.marionette') + .external('moment'); } ); }); @@ -145,6 +146,7 @@ gulp.task('scripts-widgets', function () { .external('react') .external('backbone') .external('backbone.marionette') + .require('moment/min/moment-with-locales', { expose: 'moment' }) .require('./src/main/js/widgets/issue-filter/widget.js', { expose: 'issue-filter-widget' }); }); }); |