File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed
Expand file tree Collapse file tree 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 44 * Entries are automatically built with webpack when included inside the
55 * ../entries directory. Enqueue in an entry index.php file or in src/assets.php
66 */
7+
8+ import './index.scss' ;
Original file line number Diff line number Diff line change 1515 "build" : " wp-scripts build --webpack-copy-php --webpack-src-dir=blocks" ,
1616 "dev" : " npm run start" ,
1717 "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" ,
1820 "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 ." ,
2022 "postinstall" : " rm -rf node_modules/.cache/babel-loader && rm -rf node_modules/.cache/webpack" ,
2123 "prebuild" : " check-node-version --package" ,
2224 "predev" : " check-node-version --package" ,
Original file line number Diff line number Diff line change 88 "jsx" : " react-jsx" ,
99 "module" : " es6" ,
1010 "moduleResolution" : " node" ,
11- "resolveJsonModule" : true ,
1211 "noImplicitAny" : true ,
1312 "outDir" : " build" ,
1413 "paths" : {
1514 "@/*" : [" *" ]
1615 },
17- "target" : " es5"
16+ "resolveJsonModule" : true ,
17+ "skipLibCheck" : true ,
18+ "strict" : true ,
19+ "target" : " es2020"
1820 },
1921 "exclude" : [
2022 " vendor" ,
2123 " node_modules" ,
2224 " build/**/*"
2325 ]
24- }
26+ }
You can’t perform that action at this time.
0 commit comments