-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
82 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,3 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# dist | ||
packages/**/lib/ |
File renamed without changes.
19 changes: 10 additions & 9 deletions
19
packages/cli-shared-utils/package.json → ...ages/cli-plugin-command-help/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
{ | ||
"name": "@xus/cli-shared-utils", | ||
"name": "@xus/cli-plugin-command-help", | ||
"version": "0.0.1", | ||
"description": "xus cli-shared-utils", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"description": "xus cli plugin command-help", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"keywords": [ | ||
"cli-shared-utils" | ||
"cli", | ||
"rollup" | ||
], | ||
"author": "guo.xu <xuguo@outlook.it>", | ||
"homepage": "https://github.com/xus-code/bundle-tools/tree/master/packages/cli#readme", | ||
"license": "MIT", | ||
"files": [ | ||
"lib" | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/xus-code/bundle-tools.git" | ||
}, | ||
"scripts": { | ||
"dev:utils": "tsc --watch", | ||
"build:utils": "tsc" | ||
"dev:chelp": "tsc --watch", | ||
"build:chelp": "tsc" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/xus-code/bundle-tools/issues" | ||
}, | ||
"dependencies": { | ||
"joi": "^17.3.0" | ||
"@xus/cli": "^0.0.1" | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
...s/cli/src/builtInPlugins/commands/help.ts → ...ages/cli-plugin-command-help/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cli-shared-utils/tsconfig.json → ...ges/cli-plugin-command-help/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"outDir": "./dist" | ||
}, | ||
"extends": "../../tsconfig.json", | ||
"include": ["./src/**/*"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
require('../dist/xus') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
#!/usr/bin/env node | ||
import minimist from 'minimist' | ||
import Cli from './Cli' | ||
import { EnvEnum } from './utils/constants' | ||
|
||
// 1. init cli | ||
const cli = new Cli(process.env[EnvEnum.context] || process.cwd()) | ||
// 2. get args | ||
const rawArgs = process.argv.slice(2) | ||
const args = minimist(rawArgs) | ||
const commandName = args._[0] | ||
// 3. run commander | ||
cli.run(commandName, args, rawArgs).catch(() => { | ||
process.exit(1) | ||
}) | ||
export * from './types' | ||
export { IPluginAPI } from './PluginAPI' | ||
export * from './utils' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// export types | ||
import minimist from 'minimist' | ||
import Cli from './Cli' | ||
import { EnvEnum } from './utils/constants' | ||
// 1. init cli | ||
const cli = new Cli(process.env[EnvEnum.context] || process.cwd()) | ||
// 2. get args | ||
const rawArgs = process.argv.slice(2) | ||
const args = minimist(rawArgs) | ||
const commandName = args._[0] | ||
// 3. run commander | ||
cli.run(commandName, args, rawArgs).catch(() => { | ||
process.exit(1) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"outDir": "./dist" | ||
}, | ||
"extends": "../../tsconfig.json", | ||
"include": ["./src/**/*"] | ||
} | ||
} |