wp-lemon-create 1.2.2 → 1.2.6

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.
Files changed (2) hide show
  1. package/lib/index.js +20 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -83,7 +83,7 @@ program
83
83
  project_repository = prompt('Git repository link:');
84
84
  username = prompt('WordPress username:');
85
85
  email = prompt('WordPress email:');
86
- password = prompt('WordPress password:');
86
+ password = prompt('WordPress password:',{echo: '*'});
87
87
  plugins_searchwp = prompt('Add plugin: SearchWP? yes/no (defaults to no)', 'no');
88
88
  plugins_wpml = prompt('Add plugin: WPML? yes/no (defaults to no)', 'no');
89
89
  is_spinup = prompt('Does the project run on Spinup-wp? (defaults to no)', 'no');
@@ -127,7 +127,14 @@ program
127
127
  * Add composer packages
128
128
  */
129
129
  shell.echo('Installing plugins, master theme and packages. This may take a while\n');
130
- shell.exec('composer require highground/bulldozer log1x/acf-editor-palette satispress/advanced-custom-fields-pro satispress/fluentformpro satispress/lemon-blocks satispress/quartermaster satispress/wp-lemon satispress/wp-migrate-db-pro satispress/wp-migrate-db-pro-media-files wpackagist-plugin/limit-login-attempts-reloaded timber/timber wpackagist-plugin/cookie-law-info wpackagist-plugin/fluentform wpackagist-plugin/seo-by-rank-math wpackagist-plugin/simple-custom-post-order wpackagist-plugin/worker wpackagist-plugin/wp-mail-smtp --with-all-dependencies', { silent: true });
130
+
131
+ shell.exec('composer require composer/installers ~1.0', { silent: true });
132
+
133
+ // Add libraries and parent theme
134
+ shell.exec('composer require highground/bulldozer timber/timber satispress/wp-lemon --with-all-dependencies', { silent: true });
135
+
136
+ shell.exec('composer require satispress/advanced-custom-fields-pro satispress/fluentformpro satispress/lemon-blocks satispress/quartermaster satispress/wp-migrate-db-pro satispress/wp-migrate-db-pro-media-files wpackagist-plugin/limit-login-attempts-reloaded log1x/acf-editor-palette wpackagist-plugin/cookie-law-info wpackagist-plugin/fluentform wpackagist-plugin/seo-by-rank-math wpackagist-plugin/simple-custom-post-order wpackagist-plugin/worker wpackagist-plugin/wp-mail-smtp --with-all-dependencies', { silent: true });
137
+
131
138
  shell.exec('composer remove squizlabs/php_codesnifferes roave/security-advisories', { silent: true });
132
139
 
133
140
  if (is_spinup == 'yes') {
@@ -285,15 +292,23 @@ program
285
292
  shell.echo('✔️ Created primary menu.');
286
293
 
287
294
  } else {
288
- // Flush rewrite rules
289
- shell.exec(`wp rewrite flush`);
290
295
  shell.echo('Creating Database.\n');
291
296
 
292
297
  if (shell.exec(`wp db create`, { silent: true }).code !== 0) {
293
298
  shell.echo('Database creation failed.');
294
299
  } else {
295
- shell.echo('✔️ Database created, make sure to import database and uploads.');
300
+ shell.echo('✔️ Database created.');
296
301
  }
302
+
303
+
304
+ /**
305
+ * Wait until user adds site and presses a key.
306
+ */
307
+ shell.echo('You can import your database by placing the .sql dump in the project root and run wp db import databasename.sql.');
308
+ prompt('Please import your database and uploads. After that press enter to continue.');
309
+
310
+ // Flush rewrite rules
311
+ shell.exec(`wp rewrite flush`);
297
312
  }
298
313
 
299
314
  shell.echo(`\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-lemon-create",
3
- "version": "1.2.2",
3
+ "version": "1.2.6",
4
4
  "description": "Bootstrap your wp-lemon project",
5
5
  "main": "index.js",
6
6
  "author": "Erik van der bas",