File tree 4 files changed +17
-4
lines changed
4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change
1
+ /* ---
2
+ Example Entry
3
+ ---
4
+
5
+ @purpose
6
+ For example purposes only.
7
+ */
Original file line number Diff line number Diff line change 4
4
* Entries are automatically built with webpack when included inside the
5
5
* ../entries directory. Enqueue in an entry index.php file or in src/assets.php
6
6
*/
7
+
8
+ import './index.scss' ;
Original file line number Diff line number Diff line change 15
15
"build" : " wp-scripts build --webpack-copy-php --webpack-src-dir=blocks" ,
16
16
"dev" : " npm run start" ,
17
17
"create-block" : " cd blocks && npx @wordpress/create-block --template ../bin/create-block --no-plugin" ,
18
+ "precheck-types" : " check-node-version --package" ,
19
+ "check-types" : " tsc" ,
18
20
"lint:fix" : " eslint --ext .jsx --ext .js --ext .ts --ext .tsx . --fix" ,
19
- "lint" : " eslint --ext .jsx --ext .js --ext .ts --ext .tsx ." ,
21
+ "lint" : " npm run check-types && eslint --ext .jsx --ext .js --ext .ts --ext .tsx ." ,
20
22
"postinstall" : " rm -rf node_modules/.cache/babel-loader && rm -rf node_modules/.cache/webpack" ,
21
23
"prebuild" : " check-node-version --package" ,
22
24
"predev" : " check-node-version --package" ,
Original file line number Diff line number Diff line change 8
8
"jsx" : " react-jsx" ,
9
9
"module" : " es6" ,
10
10
"moduleResolution" : " node" ,
11
- "resolveJsonModule" : true ,
12
11
"noImplicitAny" : true ,
13
12
"outDir" : " build" ,
14
13
"paths" : {
15
14
"@/*" : [" *" ]
16
15
},
17
- "target" : " es5"
16
+ "resolveJsonModule" : true ,
17
+ "skipLibCheck" : true ,
18
+ "strict" : true ,
19
+ "target" : " es2020"
18
20
},
19
21
"exclude" : [
20
22
" vendor" ,
21
23
" node_modules" ,
22
24
" build/**/*"
23
25
]
24
- }
26
+ }
You can’t perform that action at this time.
0 commit comments