@storepress/create-plugin-html 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ This is a template for [`@wordpress/create-block`](https://developer.wordpress.o
|
|
|
7
7
|
This template can be used by running the following command:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx -y @wordpress/create-block@latest --template @storepress/create-plugin-html
|
|
10
|
+
npx -y @wordpress/create-block@latest --template @storepress/create-plugin-html example-html-extension && cd "$_"
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Navigate to the newly created folder and get started.
|
|
@@ -23,7 +23,7 @@ npx -y http-server # Start Server
|
|
|
23
23
|
For development on this tool itself, you can also install from a local directory.
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
npx -y @wordpress/create-block@latest --template ./create-plugin-html
|
|
26
|
+
npx -y @wordpress/create-block@latest --template ./storepress-create-plugin-html example-html-extension && cd "$_"
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Add Tests
|
package/index.js
CHANGED
|
@@ -96,7 +96,7 @@ module.exports = {
|
|
|
96
96
|
attributes : {},
|
|
97
97
|
license : 'GPL-2.0-or-later',
|
|
98
98
|
customScripts : {
|
|
99
|
-
'postinstall' : 'npm run packages-install:all && git init -q && rimraf .husky && npx husky
|
|
99
|
+
'postinstall' : 'npm run packages-install:all && git init -q && rimraf .husky && npx husky && echo "npx lint-staged" > .husky/pre-commit',
|
|
100
100
|
|
|
101
101
|
'prebuild' : 'rimraf build && npm run external:build',
|
|
102
102
|
'build' : 'wp-scripts build --webpack-copy-php --experimental-modules',
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
package-lock=
|
|
1
|
+
package-lock=true
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"value-keyword-case" : null,
|
|
16
16
|
"scss/operator-no-unspaced" : null,
|
|
17
17
|
"scss/selector-no-redundant-nesting-selector" : null,
|
|
18
|
-
"scss/at-import-partial-extension" : null,
|
|
19
18
|
"scss/no-global-function-names" : null,
|
|
20
19
|
"scss/comment-no-empty" : null,
|
|
21
20
|
"scss/at-extend-no-missing-placeholder" : null,
|