diff --git a/Gruntfile.js.sample b/Gruntfile.js.sample index 7a990a41d84fb..cf91211af0a02 100644 --- a/Gruntfile.js.sample +++ b/Gruntfile.js.sample @@ -16,10 +16,12 @@ module.exports = function (grunt) { tasks = grunt.file.expand('./dev/tools/grunt/tasks/*'), themes; - filesRouter.set('themes', 'dev/tools/grunt/configs/themes'); - themes = filesRouter.get('themes'); + filesRouter.set('themes', 'dev/tools/grunt/configs/themes'); + themes = filesRouter.get('themes'); - tasks = _.map(tasks, function(task){ return task.replace('.js', '') }); + tasks = _.map(tasks, function (task) { + return task.replace('.js', ''); + }); tasks.push('time-grunt'); tasks.forEach(function (task) { require(task)(grunt); @@ -53,7 +55,7 @@ module.exports = function (grunt) { 'autoprefixer', 'cssmin', 'usebanner' - ].map(function(task){ + ].map(function (task) { return task + ':' + component; }); @@ -72,7 +74,7 @@ module.exports = function (grunt) { 'clean', 'exec:all' ]; - _.each(themes, function(theme, name) { + _.each(themes, function (theme, name) { tasks.push('less:' + name); }); grunt.task.run(tasks); diff --git a/dev/tests/js/jasmine/spec_runner/index.js b/dev/tests/js/jasmine/spec_runner/index.js index d5e55f962a827..732d412b8396e 100644 --- a/dev/tests/js/jasmine/spec_runner/index.js +++ b/dev/tests/js/jasmine/spec_runner/index.js @@ -57,7 +57,7 @@ function getTasks() { return [ 'connect:' + theme, 'jasmine:' + theme - ] + ]; }); return _.flatten(tasks); diff --git a/dev/tests/js/jasmine/spec_runner/tasks/connect.js b/dev/tests/js/jasmine/spec_runner/tasks/connect.js index 2cc91161491ad..6c925e2768885 100644 --- a/dev/tests/js/jasmine/spec_runner/tasks/connect.js +++ b/dev/tests/js/jasmine/spec_runner/tasks/connect.js @@ -39,7 +39,7 @@ function init(config) { }); return middlewares; - } + }; _.each(themes, function (themeData, themeName) { var options = { diff --git a/dev/tests/js/jasmine/spec_runner/tasks/jasmine.js b/dev/tests/js/jasmine/spec_runner/tasks/jasmine.js index 4d934a0d49bab..1f5b132478fa8 100644 --- a/dev/tests/js/jasmine/spec_runner/tasks/jasmine.js +++ b/dev/tests/js/jasmine/spec_runner/tasks/jasmine.js @@ -15,7 +15,7 @@ function init(config) { themes, root, staticDir, baseUrl, mapFile, host, port, files, requireJs; root = config.root; - staticDir = config.static; + staticDir = config.static; port = config.port; files = config.files; themes = config.themes; @@ -69,7 +69,7 @@ function init(config) { */ helpers: specs } - } + }; }); } diff --git a/package.json.sample b/package.json.sample index b8c18190ff3d5..f56a36a43603d 100644 --- a/package.json.sample +++ b/package.json.sample @@ -9,35 +9,35 @@ }, "homepage": "https://magento.com/", "devDependencies": { - "glob": "~7.1.1", - "grunt": "~1.0.1", + "glob": "~7.1.7", + "grunt": "~1.4.1", "grunt-autoprefixer": "~3.0.4", "grunt-banner": "~0.6.0", "grunt-continue": "~0.1.0", - "grunt-contrib-clean": "~1.1.0", - "grunt-contrib-connect": "~1.0.2", - "grunt-contrib-cssmin": "~2.2.1", - "grunt-contrib-imagemin": "~2.0.1", + "grunt-contrib-clean": "~2.0.0", + "grunt-contrib-connect": "~3.0.0", + "grunt-contrib-cssmin": "~4.0.0", + "grunt-contrib-imagemin": "~4.0.0", "grunt-contrib-jasmine": "~1.2.0", - "grunt-contrib-less": "^2.1.0", - "grunt-contrib-watch": "~1.0.0", - "grunt-eslint": "~20.1.0", + "grunt-contrib-less": "~2.1.0", + "grunt-contrib-watch": "~1.1.0", + "grunt-eslint": "~20.2.0", "grunt-exec": "~3.0.0", "grunt-jscs": "~3.0.1", - "grunt-replace": "~1.0.1", + "grunt-replace": "~2.0.2", "grunt-styledocco": "~0.3.0", "grunt-template-jasmine-requirejs": "~0.2.3", "grunt-text-replace": "~0.4.0", - "imagemin-svgo": "~5.2.1", - "less": "^3.13.1", - "load-grunt-config": "~0.19.2", - "morgan": "~1.9.0", - "node-minify": "~2.3.1", + "imagemin-svgo": "~5.2.4", + "less": "3.13.1", + "load-grunt-config": "~4.0.1", + "morgan": "~1.10.0", + "node-minify": "~3.6.0", "path": "~0.12.7", - "serve-static": "~1.13.1", + "serve-static": "~1.14.1", "squirejs": "~0.2.1", "strip-json-comments": "~2.0.1", - "time-grunt": "~1.4.0", - "underscore": "^1.13.1" + "time-grunt": "~2.0.0", + "underscore": "1.13.1" } }