From d03f1f638bceda76ebd89847765385bef74969f5 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 22 Aug 2017 19:16:51 +0100 Subject: [PATCH] Move uglify params to script definition Follows-up 46ba111. Instead of passing these as custom parameters to npm run, it probably makes more sense to have them there by default so that the command is always correct in the long term even when the params or file names change again - without having to check the readme each time. --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4db28f0..5afdca1 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ define(['jquery', 'jquery.easing'], function (jQuery, easing) { * `npm install` * Make changes * Test against files in `/examples` -* Build minified version with `npm run uglify -- --compress --mangle` +* Build minified version with `npm run build` diff --git a/package.json b/package.json index 4539871..0a3af88 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "scripts": { "test": "echo \"Use tests in the examples directory\" && exit 1", - "uglify": "uglifyjs jquery.easing.js -o jquery.easing.min.js" + "build": "uglifyjs jquery.easing.js --compress --mangle -o jquery.easing.min.js" }, "devDependencies": { "jquery": ">=1.3.0",