File tree 6 files changed +16
-12
lines changed 6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = {
37
37
"no-undef" : 0 ,
38
38
"no-unused-vars" : 0 ,
39
39
"no-empty-function" : 0 ,
40
- "class-methods-use-this" : 0 ,
40
+ "class-methods-use-this" : 1 ,
41
41
"import/no-webpack-loader-syntax" : 1 ,
42
42
"import/newline-after-import" : 1 ,
43
43
"import/no-duplicates" : 1 ,
Original file line number Diff line number Diff line change 28
28
npm run start
29
29
```
30
30
31
+ HUSKY
32
+ ---
33
+ * Install: ` npm i husky `
34
+ * Uninstall: ` npm r husky `
35
+
31
36
TASKS
32
37
---
33
38
| Task | Description |
Original file line number Diff line number Diff line change 21
21
"tests:w" : " npm run karma" ,
22
22
"server" : " webpack-dev-server --hot --progress --colors" ,
23
23
"server:dashboard" : " npm run server -- --env.dashboard" ,
24
- "build" : " webpack --progress --colors" ,
25
- "build:prod" : " npm run build -- --env.prod --display-modules " ,
24
+ "build" : " webpack --progress --colors --display-modules " ,
25
+ "build:prod" : " npm run build -- --env.prod" ,
26
26
"dashboard" : " webpack-dashboard -- npm run server:dashboard" ,
27
27
"up" : " node node_modules/updtr/bin/updtr --test-stdout --save-exact -R simple --test \" npm run test\" " ,
28
28
"build:vendor-libs" : " npm run build -- --env.vendorLibs --display-modules" ,
43
43
"dev2b" : " npm run p -q -- \" npm run tests:w\" \" npm run server\" " ,
44
44
"stryker:run" : " stryker run stryker.conf.js" ,
45
45
"stryker:source" : " npm run gulp -- stryker:source" ,
46
- "stryker" : " npm run stryker:source && npm run stryker:run"
46
+ "stryker" : " npm run stryker:source && npm run stryker:run" ,
47
+ "prepush" : " npm run t"
47
48
},
48
49
"engines" : {
49
50
"npm" : " >=3"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export class AppErrorHandler extends ErrorHandler {
6
6
super ( true ) ;
7
7
}
8
8
9
- handleError ( err : any ) { // eslint-disable-line
10
- console . error ( err ) ; // eslint-disable-line
9
+ handleError ( err : any ) { // eslint-disable-line class-methods-use-this
10
+ console . error ( err ) ; // eslint-disable-line no-console
11
11
}
12
12
}
Original file line number Diff line number Diff line change 1
- if ( process . env . NODE_ENV === 'production' ) {
2
- require ( 'core-js/es6' ) ;
3
- }
1
+ require ( 'core-js/es6' ) ;
4
2
require ( 'core-js/es7/reflect' ) ;
5
3
require ( 'core-js/es7/array' ) ;
6
4
require ( 'zone.js/dist/zone' ) ;
@@ -29,7 +27,7 @@ if (process.env.NODE_ENV === 'production') {
29
27
private readonly appRef : ApplicationRef
30
28
) { }
31
29
32
- hmrOnInit ( store : any ) {
30
+ hmrOnInit ( store : any ) { // eslint-disable-line class-methods-use-this
33
31
// https://github.com/angularclass/angular2-hmr
34
32
}
35
33
@@ -39,7 +37,7 @@ if (process.env.NODE_ENV === 'production') {
39
37
removeNgStyles ( ) ;
40
38
}
41
39
42
- hmrAfterDestroy ( store : any ) {
40
+ hmrAfterDestroy ( store : any ) { // eslint-disable-line class-methods-use-this
43
41
store . disposeOldHosts ( ) ;
44
42
delete store . disposeOldHosts ;
45
43
}
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export = (options: Options = {}) => {
180
180
]
181
181
} ,
182
182
{
183
- test : / a p p \. s c s s $ / ,
183
+ test : / [ \/ \\ ] a p p \. s c s s $ / ,
184
184
use : ( ( ) => {
185
185
let result = [
186
186
{ loader : 'css-loader' } ,
You can’t perform that action at this time.
0 commit comments