14 行
405 B
JavaScript
14 行
405 B
JavaScript
const path = require('path');
|
|
const fs = require('fs-extra');
|
|
|
|
const templatePath = path.resolve(__dirname, '../arco-design-pro-nuxt');
|
|
const projectPath =
|
|
process.argv[2] ||
|
|
path.resolve(__dirname, '../examples/arco-design-pro-nuxt');
|
|
|
|
fs.copySync(templatePath, projectPath, {
|
|
filter: (src) =>
|
|
!src.startsWith(path.resolve(templatePath, 'node_modules')) &&
|
|
src.indexOf('.nuxt') === -1,
|
|
});
|