forked from jd-opensource/nutui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cede4c
commit 30f2564
Showing
19 changed files
with
661 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* 生成入口文件 | ||
*/ | ||
export class Gen { | ||
constructor() { | ||
this.init(); | ||
} | ||
|
||
init() { | ||
const template = ` | ||
import { App } from 'vue'; | ||
export default { | ||
install(app: App<Element>): void { | ||
const files = require.context('@/packages', true, /index\.vue$/); | ||
files.keys().forEach(component => { | ||
const componentEntity = files(component).default; | ||
app.component(componentEntity.name, componentEntity); | ||
}); | ||
} | ||
}; | ||
`; | ||
} | ||
} |
Oops, something went wrong.