Skip to content

Commit caaa563

Browse files
committed
Add gitignore replace function
1 parent d124962 commit caaa563

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LIG Interactive Generator
22

33
- Last Update : 2021/06/04
4-
- Leatest Version : 0.6.2
4+
- Leatest Version : 0.6.3
55
- Author : LIG inc
66

77
## Require

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lig-interactive-generator",
3-
"version": "0.6.2",
4-
"description": "- Last Update : 2021/06/04 - Leatest Version : 0.6.2 - Author : LIG inc",
3+
"version": "0.6.3",
4+
"description": "- Last Update : 2021/06/04 - Leatest Version : 0.6.3 - Author : LIG inc",
55
"main": "index.js",
66
"engines": {
77
"node": ">=14.16.0",

script/wordpress.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const rootDir = path.join(process.cwd(), projectName);
1616
const pkgPath = path.join(rootDir, "package.json");
1717
const nodeVersion = process.argv[3];
1818
const env = path.join(rootDir, ".env-sample");
19+
const gitIgnore = path.join(rootDir, ".gitignore");
1920
const webpackMixJs = path.join(rootDir, "webpack.mix.js");
2021

2122
inquirer
@@ -174,6 +175,13 @@ inquirer
174175
"s|input-theme-name|" + projectName + "|g",
175176
env,
176177
]);
178+
childProcess.spawnSync("sed", [
179+
"-i",
180+
"",
181+
"-e",
182+
"s|lig-wordpress-template|" + projectName + "|g",
183+
gitIgnore,
184+
]);
177185
childProcess.spawnSync("sed", [
178186
"-i",
179187
"",

0 commit comments

Comments
 (0)