Match-id-91fed5beca23725fe7d58b119880c1a4df9ddb7e
This commit is contained in:
parent
3c3e1606aa
commit
03499516d4
|
@ -4,3 +4,4 @@ build/
|
|||
.vscode
|
||||
package-lock.json
|
||||
libs/**/dist
|
||||
scripts/*.ejs
|
||||
|
|
|
@ -10,6 +10,11 @@ const argv = require('minimist')(process.argv.slice(2));
|
|||
const libPathPrefix = '../build';
|
||||
const suffix = argv.dev ? 'development.js' : 'production.js';
|
||||
const template = argv.type === 'horizon' ? 'horizon3rdTemplate.ejs' : 'template.ejs';
|
||||
const templatePath = path.resolve(__dirname, `./${template}`);
|
||||
if (!fs.existsSync(templatePath)) {
|
||||
console.log(chalk.yellow('Failed: Template file not exist'));
|
||||
return;
|
||||
}
|
||||
const readLib = lib => {
|
||||
const libName = lib.split('.')[0];
|
||||
const libPath = path.resolve(__dirname, `${libPathPrefix}/${libName}/umd/${lib}`);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue