create-lecloud-app
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -16,3 +16,2 @@ #!/usr/bin/env node | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.create = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -30,2 +29,3 @@ const fs_extra_1 = __importDefault(require("fs-extra")); | ||
const ora_1 = __importDefault(require("ora")); | ||
const command_line_args_1 = __importDefault(require("command-line-args")); | ||
const create = ({ template }) => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -100,2 +100,15 @@ const { projectName } = yield (0, prompts_1.default)({ | ||
}); | ||
exports.create = create; | ||
const options = (0, command_line_args_1.default)([ | ||
{ | ||
name: 'template', | ||
alias: 't', | ||
type: String, | ||
defaultValue: 'layout-engine-cloud-cli-template' | ||
} | ||
]); | ||
create({ | ||
template: options.template | ||
}).catch(error => { | ||
console.error((0, kolorist_1.red)(error)); | ||
process.exit(1); | ||
}); |
{ | ||
"name": "create-lecloud-app", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"main": "dist/index.js", | ||
@@ -21,3 +21,5 @@ "license": "MIT", | ||
"axios": "^0.24.0", | ||
"command-line-args": "^5.2.1", | ||
"compressing": "^1.5.1", | ||
"create-lecloud-app": "^0.0.0", | ||
"del": "^6.0.0", | ||
@@ -34,2 +36,3 @@ "download": "^8.0.0", | ||
"devDependencies": { | ||
"@types/command-line-args": "^5.2.0", | ||
"@types/download": "^8.0.1", | ||
@@ -36,0 +39,0 @@ "@types/fs-extra": "^9.0.13", |
7120
111
13
7
+ Addedcommand-line-args@^5.2.1
+ Addedcreate-lecloud-app@^0.0.0
+ Addedarray-back@3.1.0(transitive)
+ Addedcommand-line-args@5.2.1(transitive)
+ Addedcreate-lecloud-app@0.0.0(transitive)
+ Addedfind-replace@3.0.0(transitive)
+ Addedlodash.camelcase@4.3.0(transitive)
+ Addedtypical@4.0.0(transitive)