create-remax-app
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
import { Question } from 'inquirer'; | ||
export interface CustomQuestionType extends Question { | ||
label?: string; | ||
choices?: string[]; | ||
choices?: ObjectValueType[] | string[]; | ||
type: string; | ||
@@ -6,0 +6,0 @@ } |
@@ -96,3 +96,3 @@ "use strict"; | ||
macros.choices.forEach(function (item) { | ||
metalsmith._metadata[item] = item === platform ? true : false; | ||
metalsmith._metadata[item.value] = item.value === platform ? true : false; | ||
}); | ||
@@ -99,0 +99,0 @@ done(); |
@@ -13,4 +13,7 @@ declare const macros: { | ||
defaultPlatform: string; | ||
choices: string[]; | ||
choices: { | ||
value: string; | ||
name: string; | ||
}[]; | ||
}; | ||
export default macros; |
@@ -16,8 +16,8 @@ "use strict"; | ||
choices: [ | ||
'one', | ||
'wechat', | ||
'ali', | ||
'toutiao' | ||
{ value: 'one', name: '跨平台小程序' }, | ||
{ value: 'wechat', name: '微信小程序' }, | ||
{ value: 'ali', name: '阿里(支付宝)小程序' }, | ||
{ value: 'toutiao', name: '头条小程序' } | ||
] | ||
}; | ||
exports.default = macros; |
{ | ||
"name": "create-remax-app", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"description": "Create Remax apps with no build configuration.", | ||
@@ -29,4 +29,3 @@ "bin": { | ||
"lib/**/*", | ||
"bin/**/*", | ||
"temp/**/*" | ||
"bin/**/*" | ||
], | ||
@@ -33,0 +32,0 @@ "homepage": "https://github.com/remaxjs/create-remax-app#readme", |
40676
30
837