File tree Expand file tree Collapse file tree 6 files changed +1771
-1689
lines changed Expand file tree Collapse file tree 6 files changed +1771
-1689
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ root = true
2
2
3
3
[* ]
4
4
indent_style = tab
5
- indent_size = 4
5
+ indent_size = 2
6
6
end_of_line = lf
7
7
charset = utf-8
8
8
trim_trailing_whitespace = true
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = (on, config) => {
23
23
on ( 'task' , {
24
24
hmrJs : ( ) => {
25
25
fs . writeFileSync ( jsFilePath , `${ jsFileContent } \n// HMR` ) ;
26
- execa . shellSync ( `touch ${ jsFilePath } ` ) ;
26
+ execa . commandSync ( `touch ${ jsFilePath } ` ) ;
27
27
return null ;
28
28
} ,
29
29
hmrJsRestore : ( ) => {
@@ -32,7 +32,7 @@ module.exports = (on, config) => {
32
32
} ,
33
33
hmrTs : ( ) => {
34
34
fs . writeFileSync ( tsFilePath , `${ tsFileContent } \n// HMR` ) ;
35
- execa . shellSync ( `touch ${ tsFilePath } ` ) ;
35
+ execa . commandSync ( `touch ${ tsFilePath } ` ) ;
36
36
return null ;
37
37
} ,
38
38
hmrTsRestore : ( ) => {
Original file line number Diff line number Diff line change 7
7
"license" : " MIT" ,
8
8
"private" : true ,
9
9
"devDependencies" : {
10
- "@types/jest" : " 24.0.17 " ,
10
+ "@types/jest" : " 24.0.20 " ,
11
11
"@wpackio/scripts" : " file:../packages/scripts" ,
12
- "autoprefixer" : " 9.6.1 " ,
12
+ "autoprefixer" : " 9.7.0 " ,
13
13
"cssnano" : " 4.1.10" ,
14
- "cypress" : " 3.4.1 " ,
15
- "fork-ts-checker-webpack-plugin" : " 1.5 .0" ,
16
- "jest" : " 24.8 .0" ,
17
- "less" : " 3.9.0 " ,
18
- "node-sass" : " 4.12 .0" ,
19
- "serve" : " 11.1 .0" ,
20
- "typescript" : " 3.5.3 " ,
14
+ "cypress" : " 3.5.0 " ,
15
+ "fork-ts-checker-webpack-plugin" : " 2.0 .0" ,
16
+ "jest" : " 24.9 .0" ,
17
+ "less" : " 3.10.3 " ,
18
+ "node-sass" : " 4.13 .0" ,
19
+ "serve" : " 11.2 .0" ,
20
+ "typescript" : " 3.6.4 " ,
21
21
"wait-on" : " 3.3.0"
22
22
},
23
23
"scripts" : {
34
34
"test" : " jest --color"
35
35
},
36
36
"dependencies" : {
37
- "@types/execa" : " 0.9.0" ,
38
- "@types/webpack-env" : " 1.14.0" ,
37
+ "@types/webpack-env" : " 1.14.1" ,
39
38
"@wpackio/entrypoint" : " file:../packages/entrypoint" ,
40
- "execa" : " 1.0 .0" ,
41
- "react" : " 16.9 .0" ,
42
- "react-bootstrap" : " 1.0.0-beta.11 " ,
43
- "react-dom" : " 16.9 .0" ,
44
- "react-hot-loader" : " 4.12.11 " ,
45
- "uuid" : " 3.3.2 "
39
+ "execa" : " 3.2 .0" ,
40
+ "react" : " 16.11 .0" ,
41
+ "react-bootstrap" : " 1.0.0-beta.14 " ,
42
+ "react-dom" : " 16.11 .0" ,
43
+ "react-hot-loader" : " 4.12.15 " ,
44
+ "uuid" : " 3.3.3 "
46
45
}
47
46
}
Original file line number Diff line number Diff line change 2
2
export function dynamic ( node , text = 'I am dynamically imported' ) {
3
3
node . textContent = text ;
4
4
}
5
+
6
+ // HMR
Original file line number Diff line number Diff line change 1
1
export function updateText ( node : Node , text : string ) : void {
2
2
node . textContent = text ;
3
3
}
4
+
5
+ // HMR
You can’t perform that action at this time.
0 commit comments