You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
577 B

1 year ago
#!/usr/bin/env node
'use strict';
1 year ago
const clean = require('./clean.js');
const sync = require('./sync.js');
const create = require('./create.js');
1 year ago
if (process.argv[2] == 'clean') {
const files = [];
for (let i = 3; i < process.argv.length; i++) {
files.push(process.argv[i]);
}
clean(files);
} else if (process.argv[2] == 'create') {
1 year ago
create();
} else if (process.argv[2] == 'sync') {
1 year ago
sync();
} else {
1 year ago
console.info(`
用法: npx platform [-options]
其中选项包括:
1 year ago
create 创建模版工程
sync 同步工程配置文件
`);
}