@talentui/cli
Advanced tools
Comparing version
@@ -9,2 +9,3 @@ const chalk = require('chalk'); | ||
const TALENTJS_COMPONENT = '组件项目'//袁园姐的模版 | ||
const TALENTJS_THUNDER_COMPONENT='thunder component' | ||
@@ -17,2 +18,3 @@ //type的主要用于拼接生成临时下载路径 | ||
const TYPE_TALENTJS_COMPONENT = 'talent-js-componet' | ||
const TYPE_THUNDER_COMPONENT = 'page-as-component-template' | ||
module.exports = { | ||
@@ -28,3 +30,5 @@ TALENTUI_PB_COMPONENTS, | ||
TALENTJS_COMPONENT, | ||
TYPE_TALENTJS_COMPONENT | ||
TYPE_TALENTJS_COMPONENT, | ||
TALENTJS_THUNDER_COMPONENT, | ||
TYPE_THUNDER_COMPONENT | ||
} |
@@ -181,4 +181,6 @@ const chalk = require("chalk"); | ||
let bugs_url = global["talentui_info"]['bugs url']; | ||
let componentCode = global['talentui_info']['componentCode'] | ||
contentJson.name = name; | ||
contentJson.version = version; | ||
contentJson.componentCode = componentCode; | ||
contentJson.author = { | ||
@@ -185,0 +187,0 @@ name:author_name, |
@@ -6,3 +6,4 @@ const { | ||
TYPE_DLL_BUILDER, | ||
TYPE_TALENTJS_COMPONENT | ||
TYPE_TALENTJS_COMPONENT, | ||
TYPE_THUNDER_COMPONENT | ||
} = require("./constants"); | ||
@@ -35,2 +36,5 @@ | ||
} | ||
if(type === TYPE_THUNDER_COMPONENT){ | ||
return 'talentui/page-as-component-template' | ||
} | ||
}; |
@@ -27,2 +27,3 @@ const path = require("path"); | ||
setDefault(opts, "appId", ""); | ||
setDefault(opts, "componentCode", ""); | ||
} | ||
@@ -29,0 +30,0 @@ if(global['talentui_info']['talentjs_component']){ |
{ | ||
"name": "@talentui/cli", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
28453
2.66%563
1.99%14
-6.67%