wp-lemon-create 2.0.3 → 2.0.5
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/lib/index.js +14 -10
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -382,6 +382,20 @@ function setupWordPress() {
|
|
|
382
382
|
shell.exec(`wp rewrite structure '/%postname%/'`, { silent: true });
|
|
383
383
|
shell.echo('✔️ Setting permalink structure.');
|
|
384
384
|
|
|
385
|
+
|
|
386
|
+
// Set language
|
|
387
|
+
shell.exec(`wp language core install nl_NL`, { silent: true });
|
|
388
|
+
shell.exec(`wp language core activate nl_NL`, { silent: true });
|
|
389
|
+
shell.exec(`wp language plugin install nl_NL --all`, { silent: true });
|
|
390
|
+
shell.echo('✔️ Installed Dutch language.');
|
|
391
|
+
|
|
392
|
+
// activate plugins
|
|
393
|
+
shell.exec(`wp plugin activate fluentform`, { silent: true });
|
|
394
|
+
shell.exec(`wp plugin activate fluentformpro`, { silent: true });
|
|
395
|
+
shell.exec(`wp plugin activate advanced-custom-fields-pro`, { silent: true });
|
|
396
|
+
shell.exec(`wp plugin activate quartermaster`, { silent: true });
|
|
397
|
+
|
|
398
|
+
|
|
385
399
|
shell.exec(`wp theme activate ${child_theme_folder}`, { silent: true });
|
|
386
400
|
shell.echo(`✔️ Activating child theme ${child_theme_folder}`);
|
|
387
401
|
|
|
@@ -393,17 +407,7 @@ function setupWordPress() {
|
|
|
393
407
|
shell.exec(`wp comment delete 1 --force`, { silent: true });
|
|
394
408
|
shell.echo('✔️ Create homepage and set as front-page.');
|
|
395
409
|
|
|
396
|
-
// Set language
|
|
397
|
-
shell.exec(`wp language core install nl_NL`, { silent: true });
|
|
398
|
-
shell.exec(`wp language plugin install nl_NL --all`, { silent: true });
|
|
399
|
-
shell.exec(`wp language core activate nl_NL`, { silent: true });
|
|
400
|
-
shell.echo('✔️ Installed Dutch language.');
|
|
401
410
|
|
|
402
|
-
// activate plugins
|
|
403
|
-
shell.exec(`wp plugin activate fluentform`, { silent: true });
|
|
404
|
-
shell.exec(`wp plugin activate fluentform`, { silent: true });
|
|
405
|
-
shell.exec(`wp plugin activate advanced-custom-fields-pro`, { silent: true });
|
|
406
|
-
shell.exec(`wp plugin activate quartermaster`, { silent: true });
|
|
407
411
|
// set menu
|
|
408
412
|
shell.exec(`wp menu create "Hoofdmenu"`, { silent: true });
|
|
409
413
|
shell.exec(`wp menu item add-post Hoofdmenu 2`, { silent: true });
|