File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,22 @@ const { execRemove, execRemoveFile } = require('./utils/remove.cjs')
55const projectName = process ?. argv ?. [ 2 ] || ''
66
77async 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
2426main ( )
You can’t perform that action at this time.
0 commit comments