16 lines
401 B
TypeScript
Executable File
16 lines
401 B
TypeScript
Executable File
import { Generator } from '@umijs/utils';
|
|
import { join } from 'path';
|
|
|
|
export default class AppGenerator extends Generator {
|
|
async writing() {
|
|
this.copyDirectory({
|
|
context: {
|
|
version: require('../../package').version,
|
|
conventionRoutes: this.args.conventionRoutes,
|
|
},
|
|
path: join(__dirname, '../../templates/AppGenerator'),
|
|
target: this.cwd,
|
|
});
|
|
}
|
|
}
|