@caweb/cli 1.14.3 → 1.14.4
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.
|
@@ -54,8 +54,13 @@ async function configureCAWeb( {environment, cwd, configs} ) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
//
|
|
58
|
-
|
|
57
|
+
// execute CAWeb Theme Configuration commands.
|
|
58
|
+
await runCLICmds({
|
|
59
|
+
environment,
|
|
60
|
+
cmds,
|
|
61
|
+
cwd,
|
|
62
|
+
debug: true
|
|
63
|
+
});
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
export {
|
|
@@ -96,7 +96,12 @@ async function configureDivi( {environment, cwd, configs} ) {
|
|
|
96
96
|
`wp option update et_automatic_updates_options '${diviUpdateOptions}' --format=json`
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
await runCLICmds({
|
|
100
|
+
environment,
|
|
101
|
+
cmds,
|
|
102
|
+
cwd,
|
|
103
|
+
debug: true
|
|
104
|
+
});
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
|
|
@@ -69,23 +69,25 @@ let diviInstalled = await isDivi({
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
let multisite = flagExists('--multisite') ? getArgVal('--multisite') : false;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
...await configureWordPress({
|
|
72
|
+
|
|
73
|
+
process.stdout.write(`\nConfiguring WordPress...\n`);
|
|
74
|
+
await configureWordPress({
|
|
76
75
|
environment: 'development',
|
|
77
76
|
cwd: workingDirectoryPath,
|
|
78
77
|
multisite,
|
|
79
78
|
configs
|
|
80
79
|
})
|
|
81
|
-
|
|
80
|
+
|
|
82
81
|
|
|
83
82
|
// Download any resources required for CAWeb.
|
|
84
83
|
if( cawebInstalled ){
|
|
84
|
+
let cmds = [];
|
|
85
85
|
|
|
86
86
|
// if multisite set default theme to CAWeb
|
|
87
87
|
// this allows for any new sites created to use CAWeb as the default theme.
|
|
88
|
-
|
|
88
|
+
if( multisite ){
|
|
89
|
+
cmds.push('wp config set WP_DEFAULT_THEME CAWeb');
|
|
90
|
+
}
|
|
89
91
|
|
|
90
92
|
// Delete all default themes.
|
|
91
93
|
let defaultThemes = [
|
|
@@ -123,25 +125,25 @@ let cmds = [
|
|
|
123
125
|
// Activate CAWeb theme.
|
|
124
126
|
cmds.push( 'wp theme activate CAWeb' );
|
|
125
127
|
|
|
128
|
+
// make additional configurations.
|
|
129
|
+
await runCLICmds({
|
|
130
|
+
environment: 'development',
|
|
131
|
+
cmds,
|
|
132
|
+
cwd: workingDirectoryPath,
|
|
133
|
+
debug: true
|
|
134
|
+
});
|
|
135
|
+
|
|
126
136
|
// Configure CAWeb and Divi options.
|
|
127
|
-
|
|
128
|
-
|
|
137
|
+
process.stdout.write(`\nConfiguring CAWeb...\n`);
|
|
138
|
+
await configureCAWeb({
|
|
129
139
|
environment: 'development',
|
|
130
140
|
cwd: workingDirectoryPath,
|
|
131
141
|
configs,
|
|
132
|
-
})
|
|
133
|
-
|
|
142
|
+
})
|
|
143
|
+
await configureDivi({
|
|
134
144
|
environment: 'development',
|
|
135
145
|
cwd: workingDirectoryPath,
|
|
136
146
|
configs,
|
|
137
147
|
})
|
|
138
|
-
);
|
|
139
148
|
|
|
140
|
-
process.stdout.write(`\nConfiguring CAWeb...\n`);
|
|
141
|
-
await runCLICmds({
|
|
142
|
-
environment: 'development',
|
|
143
|
-
cmds,
|
|
144
|
-
cwd: workingDirectoryPath,
|
|
145
|
-
debug: true
|
|
146
|
-
});
|
|
147
149
|
}
|
|
@@ -120,10 +120,15 @@ async function configureWordPress({environment, cwd, multisite, subdomain, confi
|
|
|
120
120
|
await networkActivatePlugins( {environment, cwd} );
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
await runCLICmds({
|
|
124
|
+
environment,
|
|
125
|
+
cmds: [
|
|
126
|
+
`wp option update permalink_structure "${configs.WP_PERMALINK}"`,
|
|
127
|
+
`wp rewrite structure ${configs.WP_PERMALINK} --hard`
|
|
128
|
+
],
|
|
129
|
+
cwd,
|
|
130
|
+
debug: true
|
|
131
|
+
});
|
|
127
132
|
|
|
128
133
|
}
|
|
129
134
|
|