Comparing version 1.1.1 to 2.0.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0](https://github.com/barajs/bara/compare/v1.2.0...v2.0.0) (2019-04-04) | ||
**Note:** Version bump only for package bara-cli | ||
## [1.1.1](https://github.com/barajs/bara/compare/v1.1.0...v1.1.1) (2019-03-04) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Command, flags } from "@oclif/command"; | ||
import { Command, flags } from '@oclif/command'; | ||
export default class Create extends Command { | ||
@@ -3,0 +3,0 @@ static description: string; |
@@ -10,3 +10,3 @@ "use strict"; | ||
this.log(`Creating from template ${flags.template}: ${args.appName}...`); | ||
cli_ux_1.default.action.start("Cloning template repo..."); | ||
cli_ux_1.default.action.start('Cloning template repo...'); | ||
await cli_ux_1.default.wait(1500); | ||
@@ -17,18 +17,18 @@ cli_ux_1.default.action.stop(); | ||
} | ||
Create.description = "Create new Bara application"; | ||
Create.description = 'Create new Bara application'; | ||
Create.examples = [ | ||
`$ bara create | ||
Create new Bara application | ||
` | ||
`, | ||
]; | ||
Create.flags = { | ||
help: command_1.flags.help({ char: "h" }), | ||
help: command_1.flags.help({ char: 'h' }), | ||
// flag with no value (-t, --template) | ||
template: command_1.flags.string({ | ||
char: "t", | ||
options: ["backend", "frontend", "devops"], | ||
description: "Choose a template" | ||
}) | ||
char: 't', | ||
options: ['backend', 'frontend', 'devops'], | ||
description: 'Choose a template', | ||
}), | ||
}; | ||
Create.args = [{ name: "appName" }]; | ||
Create.args = [{ name: 'appName' }]; | ||
exports.default = Create; |
@@ -1,2 +0,2 @@ | ||
import { Command, flags } from "@oclif/command"; | ||
import { Command, flags } from '@oclif/command'; | ||
export default class Deploy extends Command { | ||
@@ -3,0 +3,0 @@ static description: string; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const { args, flags } = this.parse(Deploy); | ||
const name = flags.name || "world"; | ||
const name = flags.name || 'world'; | ||
this.log(`hello ${name} from /Users/nam/Projects/bara/bara/packages/cli/src/commands/deploy.ts`); | ||
@@ -15,11 +15,11 @@ if (args.file && flags.force) { | ||
} | ||
Deploy.description = "Deploy Bara application to Bara Space"; | ||
Deploy.description = 'Deploy Bara application to Bara Space'; | ||
Deploy.flags = { | ||
help: command_1.flags.help({ char: "h" }), | ||
help: command_1.flags.help({ char: 'h' }), | ||
// flag with a value (-n, --name=VALUE) | ||
name: command_1.flags.string({ char: "n", description: "name to print" }), | ||
name: command_1.flags.string({ char: 'n', description: 'name to print' }), | ||
// flag with no value (-f, --force) | ||
force: command_1.flags.boolean({ char: "f" }) | ||
force: command_1.flags.boolean({ char: 'f' }), | ||
}; | ||
Deploy.args = [{ name: "file" }]; | ||
Deploy.args = [{ name: 'file' }]; | ||
exports.default = Deploy; |
@@ -1,1 +0,1 @@ | ||
{"version":"1.1.1","commands":{"create":{"id":"create","description":"Create new Bara application","pluginName":"bara-cli","pluginType":"core","aliases":[],"examples":["$ bara create\n Create new Bara application\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"template":{"name":"template","type":"option","char":"t","description":"Choose a template","options":["backend","frontend","devops"]}},"args":[{"name":"appName"}]},"deploy":{"id":"deploy","description":"Deploy Bara application to Bara Space","pluginName":"bara-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"force":{"name":"force","type":"boolean","char":"f","allowNo":false}},"args":[{"name":"file"}]}}} | ||
{"version":"2.0.0","commands":{"create":{"id":"create","description":"Create new Bara application","pluginName":"bara-cli","pluginType":"core","aliases":[],"examples":["$ bara create\n Create new Bara application\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"template":{"name":"template","type":"option","char":"t","description":"Choose a template","options":["backend","frontend","devops"]}},"args":[{"name":"appName"}]},"deploy":{"id":"deploy","description":"Deploy Bara application to Bara Space","pluginName":"bara-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"name to print"},"force":{"name":"force","type":"boolean","char":"f","allowNo":false}},"args":[{"name":"file"}]}}} |
{ | ||
"name": "bara-cli", | ||
"description": "Bara CLI Application - Created For Creating", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"author": "nampdn @nampdn", | ||
"homepage": "https://barajs.dev", | ||
"repository": "barajs/bara", | ||
"bugs": "https://github.com/barajs/bara/issues", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"bin": { | ||
"bara": "./bin/run" | ||
}, | ||
"bugs": "https://github.com/barajs/bara/issues", | ||
"dependencies": { | ||
"@oclif/command": "^1", | ||
"@oclif/config": "^1", | ||
"@oclif/plugin-help": "^2", | ||
"cli-ux": "5.2.0", | ||
"tslib": "^1" | ||
}, | ||
"devDependencies": { | ||
"@oclif/dev-cli": "^1", | ||
"@oclif/tslint": "^3", | ||
"@types/node": "^10", | ||
"globby": "^8", | ||
"gts": "0.9.0", | ||
"ts-node": "^7", | ||
"tslint": "^5", | ||
"typescript": "^3.0" | ||
}, | ||
"engines": { | ||
@@ -36,3 +23,2 @@ "node": ">=8.0.0" | ||
], | ||
"homepage": "https://github.com/barajs/bara", | ||
"keywords": [ | ||
@@ -46,3 +32,2 @@ "bara", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"oclif": { | ||
@@ -55,13 +40,29 @@ "commands": "./lib/commands", | ||
}, | ||
"repository": "barajs/bara", | ||
"scripts": { | ||
"postpack": "rm -f oclif.manifest.json", | ||
"posttest": "tslint -p . -t stylish", | ||
"lint": "tslint -p .", | ||
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme", | ||
"test": "echo NO TESTS", | ||
"test": "echo NO TESTS && exit 0;", | ||
"version": "oclif-dev readme && git add README.md", | ||
"fix": "echo 'Fixing in nothing'" | ||
"format": "prettier --write '{.,src/**}/*.{js,jsx,ts,tsx}'" | ||
}, | ||
"types": "lib/index.d.ts", | ||
"gitHead": "8668b7d41f122e652c0cb1974f8669f59caacbe4" | ||
"dependencies": { | ||
"@oclif/command": "^1", | ||
"@oclif/config": "^1", | ||
"@oclif/plugin-help": "^2", | ||
"cli-ux": "5.2.0", | ||
"tslib": "^1" | ||
}, | ||
"devDependencies": { | ||
"@oclif/dev-cli": "^1", | ||
"@oclif/tslint": "^3", | ||
"@types/node": "^10", | ||
"globby": "^8", | ||
"gts": "0.9.0", | ||
"prettier": "1.16.4", | ||
"ts-node": "^7", | ||
"tslint": "^5", | ||
"typescript": "^3.0" | ||
}, | ||
"gitHead": "94ba37542277688a8e9bab46cc2de960ff8c5c83" | ||
} |
@@ -22,3 +22,3 @@ bara-cli | ||
$ bara (-v|--version|version) | ||
bara-cli/1.1.1 darwin-x64 node-v10.12.0 | ||
bara-cli/2.0.0 darwin-x64 node-v11.12.0 | ||
$ bara --help [COMMAND] | ||
@@ -53,3 +53,3 @@ USAGE | ||
_See code: [src/commands/create.ts](https://github.com/barajs/bara/blob/v1.1.1/src/commands/create.ts)_ | ||
_See code: [src/commands/create.ts](https://github.com/barajs/bara/blob/v2.0.0/src/commands/create.ts)_ | ||
@@ -70,3 +70,3 @@ ## `bara deploy [FILE]` | ||
_See code: [src/commands/deploy.ts](https://github.com/barajs/bara/blob/v1.1.1/src/commands/deploy.ts)_ | ||
_See code: [src/commands/deploy.ts](https://github.com/barajs/bara/blob/v2.0.0/src/commands/deploy.ts)_ | ||
@@ -73,0 +73,0 @@ ## `bara help [COMMAND]` |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
8189
9
2