Repository: flink Updated Branches: refs/heads/release-1.1 a874ad890 -> 4ea52d69d
[FLINK-5466] [webfrontend] Set environment to production in gulpfile Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/12cf5dcd Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/12cf5dcd Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/12cf5dcd Branch: refs/heads/release-1.1 Commit: 12cf5dcd5fffb3c3ffe367922a61d18630d360fd Parents: a874ad8 Author: Ufuk Celebi <[email protected]> Authored: Thu Jan 12 15:47:51 2017 +0100 Committer: Ufuk Celebi <[email protected]> Committed: Thu Jan 12 15:53:31 2017 +0100 ---------------------------------------------------------------------- flink-runtime-web/web-dashboard/gulpfile.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/12cf5dcd/flink-runtime-web/web-dashboard/gulpfile.js ---------------------------------------------------------------------- diff --git a/flink-runtime-web/web-dashboard/gulpfile.js b/flink-runtime-web/web-dashboard/gulpfile.js index 4264c70..997f485 100644 --- a/flink-runtime-web/web-dashboard/gulpfile.js +++ b/flink-runtime-web/web-dashboard/gulpfile.js @@ -40,7 +40,7 @@ var mainBowerFiles = require('main-bower-files'); var less = require('gulp-less'); var path = require('path'); -var environment = 'development'; +var environment = 'production'; var paths = { src: './app/', dest: './web/', @@ -50,8 +50,8 @@ var paths = { tmp: './tmp/' } -gulp.task('set-production', function() { - environment = 'production'; +gulp.task('set-development', function() { + environment = 'development'; }); gulp.task('fonts', function() { @@ -151,6 +151,7 @@ gulp.task('styles', function () { }); gulp.task('watch', function () { + environment = 'development'; livereload.listen(); gulp.watch(paths.vendorLocal + '**', ['vendor-scripts']); @@ -175,5 +176,5 @@ gulp.task('vendor', ['vendor-styles', 'vendor-scripts']); gulp.task('compile', ['html', 'partials','styles', 'scripts']); gulp.task('default', ['fonts', 'assets', 'vendor', 'compile']); -gulp.task('production', ['set-production', 'default']); +gulp.task('dev', ['set-development', 'default']);
