1 | const {
|
2 | TYPE_COMPOENT,
|
3 | TYPE_PB_COMPONENTS,
|
4 | TYPE_PROJECT,
|
5 | TYPE_DLL_BUILDER
|
6 | } = require("./constants");
|
7 |
|
8 | const projectPath = {
|
9 | vue: "talentui/vue-project-template",
|
10 | react: "talentui/project-template"
|
11 | };
|
12 |
|
13 | module.exports = function(type, engine) {
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | if (type === TYPE_COMPOENT) {
|
19 | return "talentui/react-package-template";
|
20 | }
|
21 | if (type === TYPE_PROJECT) {
|
22 | return projectPath[engine];
|
23 | }
|
24 | if (type === TYPE_PB_COMPONENTS) {
|
25 | return 'talentui/pb-components-templates';
|
26 | }
|
27 | if(type === TYPE_DLL_BUILDER){
|
28 | return 'talentui/dll-builder'
|
29 | }
|
30 | };
|