File tree 3 files changed +20
-7
lines changed
3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,14 @@ module.exports = function (grunt) {
126
126
} ) ;
127
127
128
128
grunt . registerTask ( 'server' , [
129
- 'webpack:default' ,
130
129
'connect' ,
131
130
'watch'
132
131
] ) ;
133
132
134
- grunt . registerTask ( 'default' , [ 'server' ] ) ;
133
+ grunt . registerTask ( 'default' , [
134
+ 'webpack:default' ,
135
+ 'server'
136
+ ] ) ;
135
137
136
138
grunt . registerTask ( 'test' , [
137
139
'clean:temp' ,
Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ The ui-scroll sources are in [./src](https://github.com/angular-ui/ui-scroll/tre
403
403
because of ES6 modules (since v1.6.0), they should be built. Build process includes jshint sources verification, webpack-based
404
404
distributive files forming and tests running.
405
405
406
- Three npm scripts are available for developing.
406
+ There are some npm scripts available for developing.
407
407
408
408
__ 1__ . To run dev-server use
409
409
@@ -426,7 +426,16 @@ npm test
426
426
than 160 tests. They are living at the [ ./test] ( https://github.com/angular-ui/ui-scroll/tree/master/test ) folder. Karma watches for temp
427
427
and test folders changes and automatically re-runs tests.
428
428
429
- __ 3__ . To run full build use
429
+ __ 3__ . To run both dev-server and tests in keep-alive mode use
430
+
431
+ ```
432
+ npm run dev
433
+ ```
434
+
435
+ This is the combination of first two scripts running in concurrently mode. This allows you to work with the ui-scroll examples on 5005 port
436
+ during continuous tests running.
437
+
438
+ __ 4__ . To run full build process use
430
439
431
440
```
432
441
npm run build
Original file line number Diff line number Diff line change 19
19
},
20
20
"license" : " MIT" ,
21
21
"scripts" : {
22
- "start" : " grunt server" ,
23
- "build" : " grunt build" ,
24
- "test" : " grunt test"
22
+ "start" : " grunt" ,
23
+ "test" : " grunt test" ,
24
+ "dev" : " concurrently --kill-others --raw \" grunt server\" \" grunt test\" " ,
25
+ "build" : " grunt build"
25
26
},
26
27
"devDependencies" : {
27
28
"babel-core" : " ^6.22.1" ,
28
29
"babel-loader" : " ^6.2.10" ,
29
30
"babel-preset-es2015" : " ^6.22.0" ,
30
31
"clean-webpack-plugin" : " ^0.1.15" ,
32
+ "concurrently" : " ^3.4.0" ,
31
33
"express" : " ^4.14.0" ,
32
34
"grunt" : " ^1.0.1" ,
33
35
"grunt-contrib-clean" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments