Skip to content

Commit

Permalink
feat(build): deprecate server in favor of serve
Browse files Browse the repository at this point in the history
Use `grunt serve` instead of server per webapps upstream change

References #35
BREAKING CHANGE: `grunt server` is being deprecated
  • Loading branch information
eddiemonge committed Nov 12, 2013
1 parent 7d0d96d commit ef05631
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions readme.md
Expand Up @@ -22,6 +22,9 @@ Run `yo angular`, optionally passing an app name:
yo angular [app-name]
```

Run `grunt` for building and `grunt serve` for preview


## Generators

Available generators:
Expand Down
7 changes: 6 additions & 1 deletion templates/common/Gruntfile.js
Expand Up @@ -327,7 +327,7 @@ module.exports = function (grunt) {
}
});

grunt.registerTask('server', function (target) {
grunt.registerTask('serve', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
}
Expand All @@ -341,6 +341,11 @@ module.exports = function (grunt) {
]);
});
grunt.registerTask('server', function () {
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
grunt.task.run(['serve']);
});
grunt.registerTask('test', [
'clean:server',
'concurrent:test',
Expand Down

0 comments on commit ef05631

Please sign in to comment.