g6/bin/mkdir-dist.js

8 lines
200 B
JavaScript
Raw Normal View History

2018-06-05 23:58:10 +08:00
#!/usr/bin/env node
const path = require('path');
const shelljs = require('shelljs');
const pathname = path.join(process.cwd(), './dist');
shelljs.rm('-rf', pathname);
shelljs.mkdir('-p', pathname);