From effb2fb4b4bf12e6ecc3934761e0305147f6e2e2 Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Fri, 23 Dec 2016 23:43:46 +1100 Subject: Move uglifyjs to npm script. --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index f01c27eba..19267d698 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "postcss-docs": "postcss --config grunt/postcss.js --no-map --replace docs/assets/css/docs.min.css && postcss --config grunt/postcss.js --no-map --replace docs/examples/**/*.css", "scss-lint": "bundle exec scss-lint --config scss/.scss-lint.yml --exclude scss/_normalize.scss scss/*.scss", "scss-lint-docs": "bundle exec scss-lint --config scss/.scss-lint.yml --exclude docs/assets/scss/docs.scss docs/assets/scss/*.scss", + "uglify": "uglifyjs --compress warnings=false --mangle --comments '/^!/' --output dist/js/bootstrap.min.js dist/js/bootstrap.js", + "uglify-docs": "uglifyjs --compress warnings=false --mangle --comments '/^!/' --output docs/assets/js/docs.min.js docs/assets/js/vendor/*.js docs/assets/js/src/application.js", "update-shrinkwrap": "npm shrinkwrap --dev && shx mv ./npm-shrinkwrap.json ./grunt/npm-shrinkwrap.json", "test": "npm run eslint && npm run jscs && grunt test" }, @@ -62,7 +64,6 @@ "grunt-contrib-copy": "^1.0.0", "grunt-contrib-qunit": "^1.2.0", "grunt-contrib-sass": "^1.0.0", - "grunt-contrib-uglify": "^2.0.0", "grunt-contrib-watch": "^1.0.0", "grunt-exec": "^1.0.1", "grunt-html": "^8.0.2", @@ -78,7 +79,8 @@ "postcss-flexbugs-fixes": "^2.0.0", "shelljs": "^0.7.4", "shx": "^0.1.4", - "time-grunt": "^1.4.0" + "time-grunt": "^1.4.0", + "uglify-js": "^2.7.5" }, "engines": { "node": ">=4" -- cgit v1.2.3