From 1f24f2abae5de1c9f919190b8cadbfb80a3e1b9b Mon Sep 17 00:00:00 2001 From: Jikkai Xiao Date: Tue, 19 Jun 2018 13:17:47 +0800 Subject: [PATCH] Chore: add missing file when create new component (#11663) --- build/bin/new.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build/bin/new.js b/build/bin/new.js index 7a5aefb44..9ffb9744b 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 { +}` } ];