From 8a9aa92ee807e318ae5868f4005f27ecb483f901 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 10 Jul 2017 12:29:22 +0200 Subject: [PATCH 1/4] package.json: Update "engines" property to Node 4+ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d3e66be..99773709 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "url": "https://github.com/ember-cli/ember-cli-uglify.git" }, "engines": { - "node": ">= 0.12" + "node": "^4.5 || 6.* || >= 7.*" }, "author": "", "license": "MIT", From 9c8d67a4f4c99a09e3fdd984f1fec7511e89df46 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 10 Jul 2017 12:30:40 +0200 Subject: [PATCH 2/4] package.json: Sort contents --- package.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 99773709..e0e3cb6e 100644 --- a/package.json +++ b/package.json @@ -2,28 +2,28 @@ "name": "ember-cli-uglify", "version": "1.2.0", "description": "JavaScript minification for Ember-CLI", + "keywords": [ + "ember-addon" + ], + "license": "MIT", + "author": "", + "repository": { + "type": "git", + "url": "https://github.com/ember-cli/ember-cli-uglify.git" + }, "scripts": { - "start": "ember server", "build": "ember build", + "start": "ember server", "test": "ember test" }, - "repository": { - "type": "git", - "url": "https://github.com/ember-cli/ember-cli-uglify.git" + "dependencies": { + "broccoli-uglify-sourcemap": "^2.0.0-beta.1", + "lodash.defaultsdeep": "^4.6.0" }, "engines": { "node": "^4.5 || 6.* || >= 7.*" }, - "author": "", - "license": "MIT", - "keywords": [ - "ember-addon" - ], "ember-addon": { "before": "broccoli-asset-rev" - }, - "dependencies": { - "broccoli-uglify-sourcemap": "^2.0.0-beta.1", - "lodash.defaultsdeep": "^4.6.0" } } From 979039fa724cc76ae9e8f14e85af88985c688243 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 10 Jul 2017 12:31:22 +0200 Subject: [PATCH 3/4] package.json: Adjust repository links --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e0e3cb6e..643ceecc 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,15 @@ "keywords": [ "ember-addon" ], + "homepage": "https://github.com/ember-cli/ember-cli-uglify#readme", + "bugs": { + "url": "https://github.com/ember-cli/ember-cli-uglify/issues" + }, "license": "MIT", "author": "", "repository": { "type": "git", - "url": "https://github.com/ember-cli/ember-cli-uglify.git" + "url": "git+https://github.com/ember-cli/ember-cli-uglify.git" }, "scripts": { "build": "ember build", From 3ea29f21a34f57fdc63eff899fd3b41249f101fc Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 10 Jul 2017 12:32:45 +0200 Subject: [PATCH 4/4] Use ES6 shorthand method syntax --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 6318c092..b24b34db 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,8 @@ module.exports = { name: 'ember-cli-uglify', - included: function(app) { - this._super.included.apply(this,arguments); + included(app) { + this._super.included.apply(this, arguments); const defaults = require('lodash.defaultsdeep'); @@ -45,7 +45,7 @@ module.exports = { return true; }, - postprocessTree: function(type, tree) { + postprocessTree(type, tree) { if (this._options.enabled === true && type === 'all') { return require('broccoli-uglify-sourcemap')(tree, this._options); } else {