UNPKG

697 BJavaScriptView Raw
1const {
2 TYPE_COMPOENT,
3 TYPE_PB_COMPONENTS,
4 TYPE_PROJECT,
5 TYPE_DLL_BUILDER
6} = require("./constants");
7
8const projectPath = {
9 vue: "talentui/vue-project-template",
10 react: "talentui/project-template"
11};
12
13module.exports = function(type, engine) {
14 // switch(type){
15 // case TYPE_COMPOENT :
16 // return
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};