einstein-cli
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -13,9 +13,10 @@ "use strict"; | ||
const CreateReactAndCompileDefault = async (args) => { | ||
const fileName = (0, kebab_case_1.default)(args.name); | ||
const className = (0, pascal_case_1.default)(fileName); | ||
args.name = className; | ||
const isFail = await (0, create_1.default)(args); | ||
if (isFail) | ||
return (1); | ||
const fileName = (0, kebab_case_1.default)(args.name); | ||
const className = (0, pascal_case_1.default)(fileName); | ||
// compile data and apply to files | ||
const isFailCompile = await (0, compile_1.default)(Object.assign(Object.assign({}, args), { name: className, data: [ | ||
const isFailCompile = await (0, compile_1.default)(Object.assign(Object.assign({}, args), { data: [ | ||
{ '{{__TEMPLATE__CLASS__NAME__}}': className }, | ||
@@ -22,0 +23,0 @@ { '__TEMPLATE__FILE__NAME__': className } |
{ | ||
"name": "einstein-cli", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "bin/einstein.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
1151389
2192