mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
25 lines
526 B
JavaScript
25 lines
526 B
JavaScript
import { Generator } from '@fesjs/utils';
|
|
|
|
export default class AppGenerator extends Generator {
|
|
constructor({
|
|
cwd, args, path, targetDir
|
|
}) {
|
|
super({
|
|
cwd,
|
|
args
|
|
});
|
|
this.path = path;
|
|
this.targetDir = targetDir;
|
|
}
|
|
|
|
async writing() {
|
|
this.copyDirectory({
|
|
context: {
|
|
version: require('../../package.json').version
|
|
},
|
|
path: this.path,
|
|
target: this.targetDir
|
|
});
|
|
}
|
|
}
|