Fix create-extension bugs (#39703)
Update dependencies, docs, remove outdated scripts.
This commit is contained in:
parent
53b0f113e5
commit
a9ac6a43cb
|
@ -7,9 +7,8 @@ A WooCommerce Admin Extension
|
||||||
To get started, run the following commands:
|
To get started, run the following commands:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
pnpm install
|
npm install
|
||||||
pnpm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
See [wp-scripts](https://github.com/WordPress/gutenberg/tree/master/packages/scripts) for more usage information.
|
See [wp-scripts](https://github.com/WordPress/gutenberg/tree/master/packages/scripts) for more usage information.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "{{extension_slug}}",
|
"name": "{{extension_slug}}",
|
||||||
"title": "{{extension_name}}",
|
"title": "{{extension_name}}",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"version": "0.1.0",
|
"version": "0.0.1",
|
||||||
"description": "{{extension_name}}",
|
"description": "{{extension_name}}",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "wp-scripts build",
|
"build": "wp-scripts build",
|
||||||
|
@ -12,7 +12,6 @@
|
||||||
"lint:css": "wp-scripts lint-style",
|
"lint:css": "wp-scripts lint-style",
|
||||||
"lint:js": "wp-scripts lint-js",
|
"lint:js": "wp-scripts lint-js",
|
||||||
"lint:md:docs": "wp-scripts lint-md-docs",
|
"lint:md:docs": "wp-scripts lint-md-docs",
|
||||||
"lint:md:js": "wp-scripts lint-md-js",
|
|
||||||
"lint:pkg-json": "wp-scripts lint-pkg-json",
|
"lint:pkg-json": "wp-scripts lint-pkg-json",
|
||||||
"packages-update": "wp-scripts packages-update",
|
"packages-update": "wp-scripts packages-update",
|
||||||
"start": "wp-scripts start",
|
"start": "wp-scripts start",
|
||||||
|
@ -20,9 +19,10 @@
|
||||||
"test:unit": "wp-scripts test-unit-js"
|
"test:unit": "wp-scripts test-unit-js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@wordpress/scripts": "^12.2.1",
|
"@wordpress/scripts": "^26.10.0",
|
||||||
"@woocommerce/eslint-plugin": "latest",
|
"@woocommerce/eslint-plugin": "latest",
|
||||||
"@woocommerce/dependency-extraction-webpack-plugin": "1.6.0"
|
"@woocommerce/dependency-extraction-webpack-plugin": "1.6.0",
|
||||||
|
"prettier": "^2.8.8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wordpress/hooks": "^3.5.0"
|
"@wordpress/hooks": "^3.5.0"
|
||||||
|
|
Loading…
Reference in New Issue