diff --git a/build/bin/new.js b/build/bin/new.js index 7a5aefb4..9ffb9744 100644 --- a/build/bin/new.js +++ b/build/bin/new.js @@ -66,6 +66,22 @@ describe('${ComponentName}', () => { }); }); ` + }, + { + filename: path.join('../../packages/theme-chalk/src', `${componentname}.scss`), + content: `@import "mixins/mixins"; +@import "common/var"; + +@include b(${componentname}) { +}` + }, + { + filename: path.join('../../types', `${componentname}.d.ts`), + content: `import { ElementUIComponent } from './component' + +/** ${ComponentName} Component */ +export declare class El${ComponentName} extends ElementUIComponent { +}` } ];