1 | const bf = require('./babelFiles');
|
2 | const sh = require('child_process').execSync;
|
3 |
|
4 | sh(`rm -rf dist`)
|
5 | sh(`cp -R ./src ./dist`);
|
6 |
|
7 | // bf('../dist', '../dist').then(() => {
|
8 | // console.log('-========');
|
9 | // });
|
10 |
|
11 | async function babel() {
|
12 | await bf('../dist', '../dist');
|
13 | console.log('我结束了');
|
14 | }
|
15 |
|
16 | babel(); |
\ | No newline at end of file |