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.
- package/lib/index.js +5 -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
|
|
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
|
*/
|