wp-lemon-create 2.0.5 → 2.0.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 +15 -15
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -276,21 +276,6 @@ program
276
276
  */
277
277
  shell.cd('../../../../');
278
278
 
279
- shell.exec(`touch workspace.code-workspace`);
280
- shell.exec(`echo '{
281
- "folders": [
282
- {
283
- "name": "root",
284
- "path": "."
285
- },
286
- {
287
- "name": "${project_name}",
288
- "path": "web/app/themes/${project_name}"
289
- }
290
- ]
291
- }' >> workspace.code-workspace`);
292
- shell.echo('✔️ .code-workspace file created.\n');
293
-
294
279
 
295
280
  /**
296
281
  * reload host file so browsersync works without a restart.
@@ -320,6 +305,21 @@ program
320
305
  if (project_type == 'new') {
321
306
  shell.echo('⏳ Installing WordPress.\n');
322
307
 
308
+ shell.exec(`touch workspace.code-workspace`);
309
+ shell.exec(`echo '{
310
+ "folders": [
311
+ {
312
+ "name": "root",
313
+ "path": "."
314
+ },
315
+ {
316
+ "name": "${project_name}",
317
+ "path": "web/app/themes/${project_name}"
318
+ }
319
+ ]
320
+ }' >> workspace.code-workspace`);
321
+ shell.echo('✔️ .code-workspace file created.\n');
322
+
323
323
  if (shell.exec(`wp db create`, { silent: true }).code !== 0) {
324
324
  prompt('Database creation failed. Please make sure your server is running. Press enter to continue.');
325
325
  createDB();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-lemon-create",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Bootstrap your wp-lemon project",
5
5
  "main": "index.js",
6
6
  "author": "Studio Lemon <erik@studiolemon.nl>",