wp-lemon-create 1.4.5 → 1.4.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 +5 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -38,6 +38,9 @@ program
38
38
  var skipGit = false;
39
39
  var branch = false;
40
40
 
41
+ if (project_name.endsWith('.local')) {
42
+ project_name = project_name.substring(0, project_name.length - 6);
43
+ }
41
44
 
42
45
  console.log(`Starting $${commandName} @${version}`);
43
46
 
@@ -138,8 +141,8 @@ program
138
141
  /**
139
142
  * Add bulldozer extended config
140
143
  */
141
- shell.sed('-i', 'env;', 'env;\nuse HighGround\\Bulldozer\\Bulldozer;\n\nBulldozer::extend_roots_config();', 'config/application.php');
142
-
144
+ shell.sed('-i', 'env;', 'env;\nuse HighGround\\Bulldozer\\Bulldozer;\n', 'config/application.php');
145
+ shell.sed('-i', `define('WP_ENV', env('WP_ENV') ?: 'production');`, `define('WP_ENV', env('WP_ENV') ?: 'production');\n\nBulldozer::extend_roots_config();`, 'config/application.php');
143
146
  /**
144
147
  * configuring composer
145
148
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-lemon-create",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Bootstrap your wp-lemon project",
5
5
  "main": "index.js",
6
6
  "author": "Erik van der bas",