Skip to content

Commit

Permalink
Merge pull request #450 from eddiemonge/serve
Browse files Browse the repository at this point in the history
feat(build): deprecate server in favor of serve
  • Loading branch information
sindresorhus committed Nov 15, 2013
2 parents 98ae76b + ef05631 commit 8088e5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,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 @@ -339,6 +339,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 8088e5f

Please sign in to comment.