tt-ide-cli
Advanced tools
Comparing version 0.0.14-beta1 to 0.0.14
@@ -87,4 +87,3 @@ #!/usr/bin/env node | ||
.description('Preview project by remote') | ||
.option('-f, --force', 'Preview project without local cache(deprecated)') | ||
.option('--disable-cache', 'Preview project without local cache') | ||
.option('-f, --force', 'Preview project without local cache') | ||
.option('-s, --small', 'Use small QR Code, but it does not take effect in some environments') | ||
@@ -99,18 +98,2 @@ .option('-c, --copy', 'Copy remote url to clipboard') | ||
program | ||
.command('build-npm [projectPath]') | ||
.description('build npm packages in node_modules') | ||
// 后面需要支持一下下方的两个选项 | ||
// .option('--package-json-path'); | ||
// .options('-i, --ignores', 'npm packages to be ignored') | ||
.action((projectPath, cmd) => { | ||
const options = cleanArgs(cmd); | ||
require('../lib/index') | ||
.buildNpm({ | ||
projectPath, | ||
...options | ||
}); | ||
}); | ||
// Tma upload | ||
@@ -117,0 +100,0 @@ program |
@@ -16,3 +16,3 @@ // 创建小程序模版 | ||
const targetDir = path.resolve(cwd, projectName || '.'); | ||
clearConsole(chalk.bold.green(`miniprogram ide CLI v${getVersion()}`)); | ||
clearConsole(chalk.bold.green(`Libra CLI v${getVersion()}`)); | ||
if (fs.existsSync(targetDir)) { | ||
@@ -19,0 +19,0 @@ if (options.force) { |
@@ -5,6 +5,5 @@ const _preview = require('./preview'); | ||
const _auth = require('./auth'); | ||
const buildNpm = require('./build-npm'); | ||
function create(projectName, { force = false }) { | ||
return _create(projectName, { | ||
_create(projectName, { | ||
force, | ||
@@ -62,3 +61,2 @@ }); | ||
upload, | ||
buildNpm, | ||
}; |
@@ -20,4 +20,4 @@ // Preview project | ||
const dirHash = await hashElement(entry, { folders: { exclude: ['node_modules'] } }); | ||
const cacheDisabled = options.force || options.disableCache; | ||
if (!cacheDisabled) { | ||
if (!options.force) { | ||
// check local cache | ||
@@ -24,0 +24,0 @@ const cacheRet = getCachedPreviewResult('native', dirHash.hash); |
{ | ||
"name": "tt-ide-cli", | ||
"version": "0.0.14-beta1", | ||
"version": "0.0.14", | ||
"description": "Command line interface for micro app development", | ||
@@ -13,3 +13,2 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@byted/ext-pack": "^1.0.12", | ||
"address": "^1.1.2", | ||
@@ -28,3 +27,2 @@ "archiver": "^3.1.1", | ||
"qrcode-terminal": "^0.12.0", | ||
"semver": "^7.3.5", | ||
"unzipper": "^0.10.11" | ||
@@ -31,0 +29,0 @@ }, |
Sorry, the diff of this file is not supported yet
14
75306
25
1423
- Removed@byted/ext-pack@^1.0.12
- Removedsemver@^7.3.5
- Removedsemver@7.6.3(transitive)