Skip to content

Commit

Permalink
watch gulp files and the browser reload while restart nodemon
Browse files Browse the repository at this point in the history
  • Loading branch information
ipluser committed Jan 27, 2016
1 parent 435dfb3 commit b58ef9e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ Show task list with `gulp help`.
Test using karma and jasmine, run the test with `npm test` or `karma start`. Unit and coverage test report are stored in report directory.

## Changelog
### 2.3.0
- watch gulp files
- the browser reload while restart nodemon<br>
27.01.2016

### 2.2.1
- fix task can not separate execution with development mode<br>
25.01.2016
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angularjs-requirejs-boilerplate",
"description": "An complete angularjs requirejs boilerplate for node.",
"version": "2.2.1",
"version": "2.3.0",
"authors": "Pluser <[email protected]>",
"main": "app.js",
"keywords": [
Expand Down
9 changes: 7 additions & 2 deletions gulp/develop/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ var resources = {
scripts: 'public/scripts/**/*.js',
libs: 'public/libs/**/*.js',
jshint: [
'public/scripts/**/*.js',
'node-app/**/*.js',
'gulp/**/*.js',
'middleware/**/*.js',
'node-app/**/*.js',
'public/scripts/**/*.js',
'test/**/*.js'
],
views: 'views/**/*.html',
Expand All @@ -42,12 +43,16 @@ gulp.task('develop-watch-node', function () {
},
ext: 'js',
watch: [
'gulp',
'middleware',
'node-app',
'app.js'
]
}).on('restart', function (files) {
gutil.log('Node server restarted due to: ', files);
setTimeout(function() {
browserSync.reload();
}, 1000);
});
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angularjs-requirejs-boilerplate",
"description": "An complete angularjs requirejs boilerplate for node.",
"version": "2.2.1",
"version": "2.3.0",
"author": "Pluser <[email protected]>",
"keywords": [
"angular",
Expand Down
6 changes: 6 additions & 0 deletions views/desktop/templates/markdown/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ <h2 id="gulp">Gulp</h2>
<h2 id="test">Test</h2>
<p>Test using karma and jasmine, run the test with <code>npm test</code> or <code>karma start</code>. Unit and coverage test report are stored in report directory.</p>
<h2 id="changelog">Changelog</h2>
<h3 id="2-3-0">2.3.0</h3>
<ul>
<li>watch gulp files</li>
<li>the browser reload while restart nodemon<br>
27.01.2016</li>
</ul>
<h3 id="2-2-1">2.2.1</h3>
<ul>
<li>fix task can not separate execution with development mode<br>
Expand Down
6 changes: 6 additions & 0 deletions views/mobile/templates/markdown/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ <h2 id="gulp">Gulp</h2>
<h2 id="test">Test</h2>
<p>Test using karma and jasmine, run the test with <code>npm test</code> or <code>karma start</code>. Unit and coverage test report are stored in report directory.</p>
<h2 id="changelog">Changelog</h2>
<h3 id="2-3-0">2.3.0</h3>
<ul>
<li>watch gulp files</li>
<li>the browser reload while restart nodemon<br>
27.01.2016</li>
</ul>
<h3 id="2-2-1">2.2.1</h3>
<ul>
<li>fix task can not separate execution with development mode<br>
Expand Down

0 comments on commit b58ef9e

Please sign in to comment.