Add an example implementation for "my-bulk-command"
This commit is contained in:
Родитель
4144804bea
Коммит
52054cda87
|
@ -4,7 +4,8 @@
|
|||
"description": "An example application that consumes the my-controls library",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "node_modules/.bin/my-build"
|
||||
"build": "node_modules/.bin/my-build",
|
||||
"my-bulk-command": "node_modules/.bin/my-bulk-command"
|
||||
},
|
||||
"dependencies": {
|
||||
"my-controls": "^1.0.0",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This script provides the implementation for an example custom command that is
|
||||
// This script provides the implementation for the example custom command "my-global-command"
|
||||
// defined in common/config/rush/command-line.json.
|
||||
|
||||
console.log('Invoking ' + __filename);
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "node_modules/.bin/my-build"
|
||||
"build": "node_modules/.bin/my-build",
|
||||
"my-bulk-command": "node_modules/.bin/my-bulk-command"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env node
|
||||
require('../lib/startCommand.js')
|
|
@ -4,10 +4,12 @@
|
|||
"description": "An example toolchain used to build projects in this repo",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"my-build": "bin/my-build.js"
|
||||
"my-build": "bin/my-build.js",
|
||||
"my-bulk-command": "bin/my-bulk-command.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rimraf ./lib/ && tsc"
|
||||
"build": "rimraf ./lib/ && tsc",
|
||||
"my-bulk-command": ""
|
||||
},
|
||||
"dependencies": {
|
||||
"colors": "^1.3.2"
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
// This script provides the implementation for the example custom command "my-bulk-command"
|
||||
// that is defined in common/config/rush/command-line.json and launched via my-toolchain/bin/my-bulk-command.js
|
||||
|
||||
console.log('Invoking ' + __filename);
|
||||
|
||||
// The first two args will be node.exe and the script itself
|
||||
let args = process.argv.slice(2);
|
||||
|
||||
console.log('\nScript args are: ' + JSON.stringify(args));
|
Загрузка…
Ссылка в новой задаче