14 lines
696 B
JavaScript
14 lines
696 B
JavaScript
const fs = require('fs-extra');
|
|
const path = require('path');
|
|
|
|
fs.readdirSync(path.resolve(__dirname, './src/components/')).forEach(folder => {
|
|
fs.readdirSync(path.resolve(__dirname, './src/components/' + folder)).forEach(file => {
|
|
if (file ==='package.json' || file.endsWith('d.ts') || file.endsWith('vue')) {
|
|
fs.copySync(path.resolve(__dirname, './src/components/' + folder) + '/' + file, 'dist/' + folder + '/' + file);
|
|
}
|
|
})
|
|
});
|
|
|
|
fs.copySync(path.resolve(__dirname, './package-build.json'), 'dist/package.json');
|
|
fs.copySync(path.resolve(__dirname, './README.md'), 'dist/README.md');
|
|
fs.copySync(path.resolve(__dirname, './LICENSE.md'), 'dist/LICENSE.md'); |