@caweb/cli 1.11.0 → 1.11.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 +1 -1
- package/commands/index.js +10 -5
- package/commands/sites/convert-site.js +789 -0
- package/commands/sites/create-site.js +102 -0
- package/commands/sites/prompts.js +614 -0
- package/commands/webpack/webpack.js +2 -4
- package/lib/cli.js +121 -66
- package/lib/helpers.js +96 -6
- package/lib/index.js +7 -1
- package/package.json +13 -4
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# caweb-cli
|
|
2
|
-
`caweb-cli` is a tool which rapidly sets up a local WordPress environment fully configured for the [CAWebPublishing Service](https://caweb.cdt.ca.gov/), allows for the creation of Gutenberg blocks with the CAWebPublishing template configurations,
|
|
2
|
+
`caweb-cli` is a tool which rapidly sets up a local WordPress environment fully configured for the [CAWebPublishing Service](https://caweb.cdt.ca.gov/), allows for the creation of Gutenberg blocks with the CAWebPublishing template configurations, site generation using the CAWebPublishing Template. The cli will automatically generate the necessary [.wp-env.json](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/#wp-env-json) file, to override or add additional configuration options use the [.wp-env.override.json](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/#wp-env-override-json) file.
|
|
3
3
|
|
|
4
4
|
*`caweb-cli` is largely inspired by WordPress Packages major thanks to the whole WordPress team and community!*
|
|
5
5
|
|
package/commands/index.js
CHANGED
|
@@ -25,17 +25,20 @@ import shell from './tasks/shell.js';
|
|
|
25
25
|
|
|
26
26
|
import sync from './sync/index.js';
|
|
27
27
|
|
|
28
|
-
import updatePlugins from './tasks/update-plugins.js'
|
|
29
|
-
import createBlock from './blocks/create-block.js'
|
|
30
|
-
import updateBlock from './blocks/update-block.js'
|
|
28
|
+
import updatePlugins from './tasks/update-plugins.js';
|
|
29
|
+
import createBlock from './blocks/create-block.js';
|
|
30
|
+
import updateBlock from './blocks/update-block.js';
|
|
31
31
|
|
|
32
|
-
import
|
|
32
|
+
import createSite from './sites/create-site.js';
|
|
33
|
+
import convertSite from './sites/convert-site.js';
|
|
33
34
|
|
|
34
35
|
// These are default wp-env commands, we overwrite these commands so we can run additional steps.
|
|
35
36
|
import start from './env/start.js';
|
|
36
37
|
import destroy from './env/destroy.js';
|
|
37
38
|
import stop from './env/stop.js';
|
|
38
39
|
|
|
40
|
+
// import test from './test.js';
|
|
41
|
+
|
|
39
42
|
export {
|
|
40
43
|
a11y,
|
|
41
44
|
audit,
|
|
@@ -52,5 +55,7 @@ export {
|
|
|
52
55
|
updatePlugins,
|
|
53
56
|
shell,
|
|
54
57
|
createBlock,
|
|
55
|
-
updateBlock
|
|
58
|
+
updateBlock,
|
|
59
|
+
createSite,
|
|
60
|
+
convertSite
|
|
56
61
|
}
|