@caweb/cli 1.12.0 → 1.12.2
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/commands/env/start.js
CHANGED
package/commands/gen-scripts.js
CHANGED
|
@@ -43,7 +43,7 @@ export default async function genScripts({
|
|
|
43
43
|
"launch": "caweb launch",
|
|
44
44
|
"launch:multi": "caweb launch --multisite",
|
|
45
45
|
"launch:multi:subdomain": "caweb launch --multisite --subdomain",
|
|
46
|
-
"launch:sync": "caweb launch --sync --update
|
|
46
|
+
"launch:sync": "caweb launch --sync --update",
|
|
47
47
|
"launch:update": "caweb launch --update",
|
|
48
48
|
"stop": "caweb stop",
|
|
49
49
|
"shutdown": "caweb destroy",
|
|
@@ -105,6 +105,11 @@ export default async function createSite({
|
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
// create content/pages directory if it doesn't exist
|
|
109
|
+
if( ! fs.existsSync( path.join( appPath, 'content', 'pages' ) ) ) {
|
|
110
|
+
fs.mkdirSync( path.join( appPath, 'content', 'pages' ), { recursive: true });
|
|
111
|
+
}
|
|
112
|
+
|
|
108
113
|
// create media directory if it doesn't exist
|
|
109
114
|
if( ! fs.existsSync( path.join( appPath, 'media' ) ) ) {
|
|
110
115
|
fs.mkdirSync( path.join( appPath, 'media' ) );
|
|
@@ -157,6 +157,11 @@ async function configureApplicationPassword( environment, config, spinner ){
|
|
|
157
157
|
JSON.parse(fs.readFileSync(path.join(appPath, 'caweb.json')))
|
|
158
158
|
: {};
|
|
159
159
|
|
|
160
|
+
// Check if the caweb.json file has a sync property.
|
|
161
|
+
if( !cawebJson.sync ){
|
|
162
|
+
cawebJson.sync = {};
|
|
163
|
+
}
|
|
164
|
+
|
|
160
165
|
// Check if application password exists.
|
|
161
166
|
const exists = await runCLICmds(
|
|
162
167
|
environment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/cli",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"description": "CAWebPublishing Command Line Interface.",
|
|
5
5
|
"exports": "./lib/env.js",
|
|
6
6
|
"type": "module",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@caweb/jshint-webpack-plugin": "^2.0.1",
|
|
70
70
|
"@caweb/webpack": "^1.5.0",
|
|
71
71
|
"@inquirer/prompts": "^7.5.3",
|
|
72
|
-
"@wordpress/create-block": "^4.
|
|
73
|
-
"@wordpress/env": "^10.
|
|
72
|
+
"@wordpress/create-block": "^4.69.0",
|
|
73
|
+
"@wordpress/env": "^10.26.0",
|
|
74
74
|
"axios": "^1.10.0",
|
|
75
75
|
"axios-retry": "^4.5.0",
|
|
76
76
|
"chalk": "^5.4.1",
|