diff --git a/.browserslistrc b/.browserslistrc deleted file mode 100644 index da427aa..0000000 --- a/.browserslistrc +++ /dev/null @@ -1,5 +0,0 @@ -# Browsers that we support - -defaults -not IE 11 -not IE_Mob 11 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..348bb1b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Change Log +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [1.2.0] - 2020-07-13 +### Removes +- .browserlistrc which was overriding per-project browser list +### Changed +- Any task with `-build` in the name will now trigger `production` mode diff --git a/gulpfile.js/index.js b/gulpfile.js/index.js index 5c2b6f3..cf5aa5f 100644 --- a/gulpfile.js/index.js +++ b/gulpfile.js/index.js @@ -2,7 +2,15 @@ const getConfig = require('./../lib/get-config'); const generateGulpTasks = require('./../lib/generate-gulp-tasks'); // Set mode globally it can be used by tasks -const hasProductionArg = process.argv.indexOf('build') !== -1; +let hasProductionArg = false; + +for (let i = 0; i < process.argv.length; i++) { + const argValue = process.argv[i]; + // If build task is 'build' or '...-build' then set production mode + if (argValue === 'build' || argValue.indexOf('-build') !== -1) { + hasProductionArg = true; + } +} global.production = global.production || (hasProductionArg || process.env.NODE_ENV === 'production'); global.development = !global.production; diff --git a/init/default/package.json b/init/default/package.json index 9daa4d7..ec5c1d4 100644 --- a/init/default/package.json +++ b/init/default/package.json @@ -7,5 +7,10 @@ }, "dependencies": { "normalize-scss": "^7.0.0" - } + }, + "browserslist": [ + "defaults", + "not IE 11", + "not IE_Mob 11" + ] } diff --git a/package-lock.json b/package-lock.json index b8f6bf6..9857b4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@videinfra/static-website-builder", - "version": "1.0.5", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e1b5706..f157e45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@videinfra/static-website-builder", - "version": "1.1.0", + "version": "1.2.0", "description": "Customizable static site project builder", "license": "MIT", "engines": {