From db3f139b9203abeb2b553484a71a2ede6be4a631 Mon Sep 17 00:00:00 2001 From: arne21 Date: Sun, 19 Mar 2017 00:20:17 +0100 Subject: [PATCH 1/4] allow files changed to be undefined (fixes ebryn/ember-autoserve#6) --- README.md | 2 +- index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 757c4d7..33d36b1 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ To install, run: Then, instead of running `ember serve`, run `ember autoserve` instead. -Your development server will be automatically restarted when `ember-cli-build.js`, `.jshintrc`, or when you install a new addon! \ No newline at end of file +Your development server will be automatically restarted when `ember-cli-build.js` or `.jshintrc` change, when you install a new addon, or when you [enter `rs`](https://github.com/remy/nodemon#manual-restarting)! \ No newline at end of file diff --git a/index.js b/index.js index e90169d..b531372 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,9 @@ module.exports = { // console.log('`ember serve` has quit'); resolve(); }).on('restart', function (files) { - console.log('Detected changes to: ' + files.map(function(f) { return path.basename(f); }).join(", ")) + if (files) { + console.log('Detected changes to: ' + files.map(function(f) { return path.basename(f); }).join(", ")) + } console.log('Restarting `ember serve`'); }); }); From 444ca7d71cc6276b4bf475270b3afd49ecbdb62a Mon Sep 17 00:00:00 2001 From: arne21 Date: Sun, 19 Mar 2017 00:24:18 +0100 Subject: [PATCH 2/4] add `as` command alias (fixes ebryn/ember-autoserve#3) --- README.md | 2 +- index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33d36b1..d5a3e6f 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ To install, run: `ember install ember-autoserve` -Then, instead of running `ember serve`, run `ember autoserve` instead. +Then, instead of running `ember serve`, run `ember autoserve` or `ember as` instead. Your development server will be automatically restarted when `ember-cli-build.js` or `.jshintrc` change, when you install a new addon, or when you [enter `rs`](https://github.com/remy/nodemon#manual-restarting)! \ No newline at end of file diff --git a/index.js b/index.js index b531372..29cc80b 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,7 @@ module.exports = { return { autoserve: { name: 'autoserve', + aliases: ['as'], description: 'Runs `ember serve` and will automatically restart it when necessary', works: 'insideProject', From 4c317756a9f9b728088963ea40c3cbc133d99017 Mon Sep 17 00:00:00 2001 From: arne21 Date: Tue, 21 Mar 2017 18:21:31 +0100 Subject: [PATCH 3/4] use ember's RSVP for promise - fix deprecation warning with Ember 2.12 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 29cc80b..8f4d6e2 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ 'use strict'; var nodemon = require('nodemon'); -var Promise = require('ember-cli/lib/ext/promise'); +var { Promise } = require('rsvp'); var path = require('path'); var which = require('which'); From 96093c014f15c042b902e5b1cbf3a6764cf34713 Mon Sep 17 00:00:00 2001 From: Arne Bittig Date: Mon, 22 Jan 2018 13:49:47 +0100 Subject: [PATCH 4/4] update dependencies ember-cli-babel 5.2.4>^6 fixes depreceation warning re "access project.nodeModulesPath" with ember-cli 2.18 (possibly 2.16+) --- package.json | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index c5de1fa..23f7266 100644 --- a/package.json +++ b/package.json @@ -18,34 +18,34 @@ "author": "Erik Bryn", "license": "MIT", "devDependencies": { - "broccoli-asset-rev": "^2.4.2", - "ember-ajax": "^2.0.1", - "ember-cli": "2.6.0-beta.1", - "ember-cli-app-version": "^1.0.0", - "ember-cli-dependency-checker": "^1.2.0", - "ember-cli-htmlbars": "^1.0.3", - "ember-cli-htmlbars-inline-precompile": "^0.3.1", - "ember-cli-inject-live-reload": "^1.4.0", - "ember-cli-jshint": "^1.0.0", - "ember-cli-qunit": "^1.4.0", - "ember-cli-release": "0.2.8", - "ember-cli-sri": "^2.1.0", - "ember-cli-uglify": "^1.2.0", - "ember-data": "^2.5.0", - "ember-disable-prototype-extensions": "^1.1.0", - "ember-export-application-global": "^1.0.5", - "ember-load-initializers": "^0.5.1", - "ember-resolver": "^2.0.3", - "ember-welcome-page": "^1.0.1", - "loader.js": "^4.0.1" + "broccoli-asset-rev": "^2.6.0", + "ember-ajax": "^3.0.0", + "ember-cli": "2.18.1", + "ember-cli-app-version": "^3.1.3", + "ember-cli-dependency-checker": "^2.1.0", + "ember-cli-htmlbars": "^2.0.3", + "ember-cli-htmlbars-inline-precompile": "^1.0.2", + "ember-cli-inject-live-reload": "^1.7.0", + "ember-cli-jshint": "^2.0.1", + "ember-cli-qunit": "^4.3.0", + "ember-cli-release": "1.0.0-beta.2", + "ember-cli-sri": "^2.1.1", + "ember-cli-uglify": "^2.0.0", + "ember-data": "^2.18.0", + "ember-disable-prototype-extensions": "^1.1.3", + "ember-export-application-global": "^2.0.0", + "ember-load-initializers": "^1.0.0", + "ember-resolver": "^4.5.0", + "ember-welcome-page": "^3.1.1", + "loader.js": "^4.6.0" }, "keywords": [ "ember-addon" ], "dependencies": { - "ember-cli-babel": "^5.1.6", - "nodemon": "^1.9.1", - "which": "^1.2.4" + "ember-cli-babel": "^6.11.0", + "nodemon": "^1.14.11", + "which": "^1.3.0" }, "ember-addon": { "configPath": "tests/dummy/config"