diff --git a/.travis.yml b/.travis.yml index 31fe87b41..2b4568f88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: node_js node_js: - '0.10' - - '0.8' before_install: - currentfolder=${PWD##*/} - if [ "$currentfolder" != 'generator-angular' ]; then cd .. && eval "mv $currentfolder generator-angular" && cd generator-angular; fi diff --git a/package.json b/package.json index 69078fb03..fe207c51c 100644 --- a/package.json +++ b/package.json @@ -8,30 +8,26 @@ "framework", "component", "front-end", - "app" + "app", + "angular" ], - "homepage": "https://github.com/yeoman/generator-angular", - "bugs": "https://github.com/yeoman/generator-angular/issues", "author": "Chrome Developer Relations", "main": "app/index.js", - "repository": { - "type": "git", - "url": "git://github.com/yeoman/generator-angular.git" - }, + "repository": "yeoman/generator-angular", "scripts": { "test": "mocha" }, "dependencies": { - "yeoman-generator": "~0.13.0", - "chalk": "~0.3.0", + "yeoman-generator": "~0.16.0", + "chalk": "~0.4.0", "wiredep": "~0.4.2" }, "peerDependencies": { - "generator-karma": "~0.6.0", + "generator-karma": ">=0.6.0", "yo": ">=1.0.0" }, "devDependencies": { - "mocha": "~1.14.0", + "mocha": "*", "grunt": "~0.4.1", "grunt-contrib-jshint": "~0.7.2", "grunt-conventional-changelog": "~1.0.0", @@ -42,7 +38,7 @@ "grunt-release": "~0.6.0" }, "engines": { - "node": ">=0.8.0", + "node": ">=0.10.0", "npm": ">=1.2.10" }, "licenses": [ diff --git a/templates/coffeescript-min/decorator.coffee b/templates/coffeescript-min/decorator.coffee index c380eb394..bc573a52a 100644 --- a/templates/coffeescript-min/decorator.coffee +++ b/templates/coffeescript-min/decorator.coffee @@ -1,6 +1,6 @@ 'use strict' -angular.module("<%= scriptAppName").config ["$provide", ($provide) -> +angular.module("<%= scriptAppName %>").config ["$provide", ($provide) -> $provide.decorator "<%= cameledName %>", ($delegate) -> # decorate the $delegate $delegate diff --git a/templates/coffeescript/decorator.coffee b/templates/coffeescript/decorator.coffee index 61603e6c3..956e53b6d 100644 --- a/templates/coffeescript/decorator.coffee +++ b/templates/coffeescript/decorator.coffee @@ -1,6 +1,6 @@ 'use strict' -angular.module("<%= scriptAppName").config ($provide) -> +angular.module("<%= scriptAppName %>").config ($provide) -> $provide.decorator "<%= cameledName %>", ($delegate) -> # decorate the $delegate $delegate diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index 949cbf552..ec9a2b963 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -450,9 +450,9 @@ module.exports = function (grunt) { ]); }); - grunt.registerTask('server', function () { + grunt.registerTask('server', function (target) { grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.'); - grunt.task.run(['serve']); + grunt.task.run(['serve:' + target]); }); grunt.registerTask('test', [ diff --git a/templates/common/_package.json b/templates/common/_package.json index f06b25757..c140667d2 100644 --- a/templates/common/_package.json +++ b/templates/common/_package.json @@ -31,6 +31,6 @@ "grunt-typescript": "~0.2.7" }, "engines": { - "node": ">=0.8.0" + "node": ">=0.10.0" } } diff --git a/test/test-file-creation.js b/test/test-file-creation.js index 54e91b47a..4dafc4a64 100644 --- a/test/test-file-creation.js +++ b/test/test-file-creation.js @@ -240,9 +240,9 @@ describe('Angular generator', function () { }); angular.run([], function (){ angularView.run([], function () { - helpers.assertFiles([ + helpers.assertFile( ['app/views/foo.html'] - ]); + ); done(); }); }); @@ -261,9 +261,9 @@ describe('Angular generator', function () { }); angular.run([], function (){ angularView.run([], function () { - helpers.assertFiles([ + helpers.assertFile( ['app/views/foo/bar.html'] - ]); + ); done(); }); });