From d2e91546564e8ae5ee89b841a2016633c7bbdaae Mon Sep 17 00:00:00 2001 From: Lubos Kmetko Date: Thu, 12 Apr 2018 09:34:15 +0200 Subject: [PATCH] Update packages in generated projects (#355) * Updating project packages * Preventing package name collisions * Downgrading gulp-stylelint to version which respects .stylelintignore * Removing stylelint from dependencies --- generators/app/templates/gulpfile.js | 5 ++- generators/app/templates/package.json | 55 ++++++++++++++------------- 2 files changed, 32 insertions(+), 28 deletions(-) diff --git a/generators/app/templates/gulpfile.js b/generators/app/templates/gulpfile.js index 0492d15a..1c3e243d 100644 --- a/generators/app/templates/gulpfile.js +++ b/generators/app/templates/gulpfile.js @@ -2,7 +2,10 @@ const gulp = require('gulp'); const _ = require('lodash'); -const plugins = require('gulp-load-plugins')({ pattern: '*' }); +const plugins = require('gulp-load-plugins')({ + pattern: '*', + rename: { 'stylelint': 'stylelintLib', 'eslint': 'eslintLib' }, +}); let config = require('./package.json').chisel; const generatorConfig = require('./.yo-rc.json')['generator-chisel'].config; const helpers = require('./gulp/helpers')(gulp, plugins, config); diff --git a/generators/app/templates/package.json b/generators/app/templates/package.json index 803ec880..86d6d3fd 100644 --- a/generators/app/templates/package.json +++ b/generators/app/templates/package.json @@ -42,54 +42,55 @@ } }, "devDependencies": { - "autoprefixer": "^7.1.2", + "autoprefixer": "^8.1", "babel-core": "^6.26.0", - "babel-loader": "^7.1.2", + "babel-loader": "^7.1.4", "babel-plugin-syntax-dynamic-import": "^6.18.0", "babel-preset-es2015": "^6.24.1", - "browser-sync": "^2.18.12", - "chalk": "^2.3.0", + "browser-sync": "^2.23.6", + "chalk": "^2.3.2", "chunk-manifest-webpack-plugin": "^1.1.2", "del": "^3.0.0", + "eslint": "^4.19.0", "eslint-config-chisel": "^1.0.0", "glob": "^7.1.2", "gulp": "^3.9.1", - "gulp-clean-css": "^3.7.0", + "gulp-clean-css": "^3.9.3", "gulp-cli": "^1.3.0", "gulp-concat": "^2.6.1", - "gulp-data": "^1.2.1", - "gulp-debug": "^3.1.0", - "gulp-eslint": "^4.0.0", - "gulp-filter": "^5.0.0", - "gulp-htmlhint": "^0.3.1", + "gulp-data": "^1.3.1", + "gulp-debug": "^3.2.0", + "gulp-eslint": "^4.0.2", + "gulp-filter": "^5.1.0", + "gulp-htmlhint": "^2.1.0", "gulp-load-plugins": "^1.5.0", "gulp-mirror": "^1.0.0", - "gulp-newer": "^1.3.0", - "gulp-plumber": "^1.1.0", - "gulp-postcss": "^7.0.0", + "gulp-newer": "^1.4.0", + "gulp-plumber": "^1.2.0", + "gulp-postcss": "^7.0.1", "gulp-prettify": "^0.5.0", "gulp-rename": "^1.2.2", - "gulp-rev": "^7.1.2", - "gulp-rev-replace": "^0.4.3", - "gulp-sass": "^3.1.0", + "gulp-rev": "^8.1.1", + "gulp-rev-replace": "^0.4.4", + "gulp-sass": "^3.2.0", "gulp-sass-glob": "^1.0.8", - "gulp-sequence": "^0.4.6", - "gulp-sourcemaps": "^2.6.0", + "gulp-sequence": "^1.0.0", + "gulp-sourcemaps": "^2.6.4", "gulp-stylelint": "^3.9.0",<% if (projectType == 'fe') { %> - "gulp-twig": "^v1.1.1",<% } %> - "gulp-uglify": "^2.0.0", - "lodash": "^4.17.4", - "multipipe": "^1.0.2", + "gulp-twig": "^v1.2.0",<% } %> + "gulp-uglify": "^3.0.0", + "lodash": "^4.17.5", + "multipipe": "^2.0.3", "pre-commit": "^1.2.2", - "prettier": "1.8.2", + "prettier": "1.11.1", "through2": "^2.0.3", "vinyl-named": "^1.1.0", - "webpack": "^3.8.1", - "webpack-stream": "^4.0.0" + "webpack": "^3.11.0", + "webpack-stream": "^4.0.2" }, "dependencies": {<% if (has_jquery) { %> - "jquery": "^3.2.1",<% } %> - "normalize-scss": "^7.0.0" + "jquery": "^3.3.1",<% } %> + "normalize-scss": "^7.0.1" }, "engines": { "node": ">=6"