Skip to content

Commit

Permalink
fix(task-name): replace serve:dist by preview for clarity purpose
Browse files Browse the repository at this point in the history
`preview` is easier to remind, and represents more the task purpose.
It also have the advantage to be less `generator-angular-fullstack`
oriented.

`preview` is just for testing that all is ok, so it not use the
livereload and nodemon abilities. Using `serve` term could cause
some confusions, let's bypass that.
  • Loading branch information
meriadec committed Oct 13, 2014
1 parent 52c7cd3 commit 977e56e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Build `sass` files, inject all scripts and styles to the project, watch them and

Wipe old generated `dist` directory while keeping the `.git` to preserve your remotes configuration. Concat all the scripts and vendors in one minified `.js` file, same thing for your styles. Rev all resources for caching purposes; copy the server part.

gulp serve:dist
gulp preview

Run the `gulp build` process and serve the `dist` directory.

Expand Down
2 changes: 1 addition & 1 deletion app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ gulp.task('serve', ['watch'], function () {
});
});
gulp.task('serve:dist', ['build'], function () {
gulp.task('preview', ['build'], function () {
process.env.NODE_ENV = 'production';
require('./dist/server/server');
return gulp.src('client/index.html')
Expand Down

1 comment on commit 977e56e

@balthazar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.