Skip to content

Commit 13f4005

Browse files
committed
feat: remove languages after project create
1 parent fba8faa commit 13f4005

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

bin/create.cjs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ const { execRemove, execRemoveFile } = require('./utils/remove.cjs')
55
const projectName = process?.argv?.[2] || ''
66

77
async function main() {
8-
// can be shell command or callback function
8+
// can be shell command or callback function
99

10-
const commands = [
11-
`git clone https://github.com/j7-dev/wp-react-plugin.git ${projectName}`,
12-
`cd ${projectName}`,
13-
'yarn',
14-
`node ./replace-string.cjs ${projectName}`,
15-
'composer install --no-interaction',
16-
execRemove('.git'),
17-
execRemove('bin'),
18-
execRemoveFile('replace-string.cjs'),
19-
execRemoveFile('README.md'),
20-
]
21-
const results = await runCommands(...commands)
10+
const commands = [
11+
`git clone https://github.com/j7-dev/wp-react-plugin.git ${projectName}`,
12+
`cd ${projectName}`,
13+
'yarn',
14+
`node ./replace-string.cjs ${projectName}`,
15+
'composer install --no-interaction',
16+
execRemove('.git'),
17+
execRemove('bin'),
18+
execRemoveFile('replace-string.cjs'),
19+
execRemoveFile('README.md'),
20+
execRemove('languages'),
21+
'mkdir languages',
22+
]
23+
const results = await runCommands(...commands)
2224
}
2325

2426
main()

0 commit comments

Comments
 (0)