Skip to content

Commit b58ef9e

Browse files
committed
watch gulp files and the browser reload while restart nodemon
1 parent 435dfb3 commit b58ef9e

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ Show task list with `gulp help`.
4949
Test using karma and jasmine, run the test with `npm test` or `karma start`. Unit and coverage test report are stored in report directory.
5050

5151
## Changelog
52+
### 2.3.0
53+
- watch gulp files
54+
- the browser reload while restart nodemon<br>
55+
27.01.2016
56+
5257
### 2.2.1
5358
- fix task can not separate execution with development mode<br>
5459
25.01.2016

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angularjs-requirejs-boilerplate",
33
"description": "An complete angularjs requirejs boilerplate for node.",
4-
"version": "2.2.1",
4+
"version": "2.3.0",
55
"authors": "Pluser <[email protected]>",
66
"main": "app.js",
77
"keywords": [

gulp/develop/build.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ var resources = {
1313
scripts: 'public/scripts/**/*.js',
1414
libs: 'public/libs/**/*.js',
1515
jshint: [
16-
'public/scripts/**/*.js',
17-
'node-app/**/*.js',
16+
'gulp/**/*.js',
1817
'middleware/**/*.js',
18+
'node-app/**/*.js',
19+
'public/scripts/**/*.js',
1920
'test/**/*.js'
2021
],
2122
views: 'views/**/*.html',
@@ -42,12 +43,16 @@ gulp.task('develop-watch-node', function () {
4243
},
4344
ext: 'js',
4445
watch: [
46+
'gulp',
4547
'middleware',
4648
'node-app',
4749
'app.js'
4850
]
4951
}).on('restart', function (files) {
5052
gutil.log('Node server restarted due to: ', files);
53+
setTimeout(function() {
54+
browserSync.reload();
55+
}, 1000);
5156
});
5257
});
5358

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angularjs-requirejs-boilerplate",
33
"description": "An complete angularjs requirejs boilerplate for node.",
4-
"version": "2.2.1",
4+
"version": "2.3.0",
55
"author": "Pluser <[email protected]>",
66
"keywords": [
77
"angular",

views/desktop/templates/markdown/README.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ <h2 id="gulp">Gulp</h2>
4646
<h2 id="test">Test</h2>
4747
<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>
4848
<h2 id="changelog">Changelog</h2>
49+
<h3 id="2-3-0">2.3.0</h3>
50+
<ul>
51+
<li>watch gulp files</li>
52+
<li>the browser reload while restart nodemon<br>
53+
27.01.2016</li>
54+
</ul>
4955
<h3 id="2-2-1">2.2.1</h3>
5056
<ul>
5157
<li>fix task can not separate execution with development mode<br>

views/mobile/templates/markdown/README.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ <h2 id="gulp">Gulp</h2>
4646
<h2 id="test">Test</h2>
4747
<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>
4848
<h2 id="changelog">Changelog</h2>
49+
<h3 id="2-3-0">2.3.0</h3>
50+
<ul>
51+
<li>watch gulp files</li>
52+
<li>the browser reload while restart nodemon<br>
53+
27.01.2016</li>
54+
</ul>
4955
<h3 id="2-2-1">2.2.1</h3>
5056
<ul>
5157
<li>fix task can not separate execution with development mode<br>

0 commit comments

Comments
 (0)