Skip to content

Commit 7490f99

Browse files
VerasThiagoJoão Marcos Gris
andauthored
Release v0.1.2 (#3)
* Add lint files * CHANGELOG * Automatic update on Toolbelt plugin documentation * CHANGELOG * Release v0.1.2 * Automatic update on Toolbelt plugin documentation Co-authored-by: João Marcos Gris <joao.gris@vtex.com.br>
1 parent cada22f commit 7490f99

File tree

10 files changed

+61
-10
lines changed

10 files changed

+61
-10
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/build
2+
**/*.test.ts
3+
/src/__tests__
4+
**/__mocks__

.eslintrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": ["vtex"],
3+
"root": true,
4+
"env": {
5+
"node": true,
6+
"es6": true,
7+
"jest": true
8+
},
9+
"rules": {
10+
"@typescript-eslint/ban-ts-comment": "warn",
11+
"@typescript-eslint/explicit-member-accessibility": "off",
12+
"@typescript-eslint/interface-name-prefix": "off",
13+
"@typescript-eslint/no-explicit-any": "off",
14+
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "_+" }],
15+
"default-case": "off",
16+
"global-require": "off",
17+
"import/order": "off",
18+
"no-console": "off",
19+
"no-shadow": "off"
20+
},
21+
"overrides": [
22+
{
23+
"files": ["*.ts"],
24+
"rules": {
25+
"no-dupe-class-members": "off"
26+
}
27+
}
28+
]
29+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
2+
.eslintcache
23
build
34
node_modules

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"printWidth": 120,
6+
"endOfLine": "auto"
7+
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.1.2] - 2021-03-30
10+
11+
### Fixed
12+
13+
-[oclif-dev manifest] Add `--color=256` to force using collor on file
14+
915
## [0.1.1] - 2021-03-10
1016

17+
### Changed
18+
1119
- [Messages] Change messages color
1220
### Changed
1321
- First release.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ npm install -g @vtex/cli-plugin-url
2929
$ vtex COMMAND
3030
running command...
3131
$ vtex (-v|--version|version)
32-
@vtex/cli-plugin-url/0.1.1 linux-x64 node-v12.21.0
32+
@vtex/cli-plugin-url/0.1.2 linux-x64 node-v12.21.0
3333
$ vtex --help [COMMAND]
3434
USAGE
3535
$ vtex COMMAND
@@ -42,7 +42,7 @@ USAGE
4242

4343
## `vtex url`
4444

45-
Prints the base URL for the current account, workspace and environment
45+
Prints the base URL for the current [38;5;149maccount, [38;5;149mworkspace and [38;5;149menvironment
4646

4747
```
4848
USAGE
@@ -57,5 +57,5 @@ EXAMPLE
5757
vtex url
5858
```
5959

60-
_See code: [build/commands/url.ts](https://github.com/vtex/cli-plugin-url/blob/v0.1.1/build/commands/url.ts)_
60+
_See code: [build/commands/url.ts](https://github.com/vtex/cli-plugin-url/blob/v0.1.2/build/commands/url.ts)_
6161
<!-- commandsstop -->

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vtex/cli-plugin-url",
33
"description": "vtex plugin url",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"bugs": "https://github.com/vtex/cli-plugin-url/issues",
66
"dependencies": {
77
"@oclif/command": "^1",
@@ -56,15 +56,15 @@
5656
"scripts": {
5757
"build-clean": "rm -rf build",
5858
"build-incremental": "tsc --incremental",
59-
"build": "yarn build-clean && yarn tsc && OCLIF_COMPILATION=true yarn oclif-dev manifest",
59+
"build": "yarn build-clean && yarn tsc && OCLIF_COMPILATION=true yarn oclif-dev manifest --color=256",
6060
"ci:prettier-check": "prettier --check --config ./.prettierrc \"./src/**/*.{ts,tsx,js,jsx,json}\"",
6161
"ci:test": "yarn test --ci",
6262
"format-lint": "yarn format && yarn lint",
6363
"format": "prettier --config ./.prettierrc --write \"**/*.{ts,js,json}\"",
6464
"lint": "eslint ./src --cache --ext .ts --config .eslintrc",
6565
"postpack": "rm -f oclif.manifest.json",
6666
"posttest": "eslint . --ext .ts --config .eslintrc",
67-
"prepack": "rm -rf build && tsc -b && oclif-dev manifest && oclif-dev readme",
67+
"prepack": "rm -rf build && tsc -b && oclif-dev manifest --color=256 && oclif-dev readme",
6868
"prepublishOnly": "bash ./scripts/publishLock.sh",
6969
"test": "jest --passWithNoTests",
7070
"version": "oclif-dev readme && git add README.md",

src/commands/url.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { CustomCommand, ColorifyConstants } from 'vtex'
22
import authUrl from '../modules/url'
33

44
export default class URL extends CustomCommand {
5-
static description = `Prints the base URL for the current ${ColorifyConstants.ID(
6-
'account'
7-
)}, ${ColorifyConstants.ID('workspace')} and ${ColorifyConstants.ID('environment')}`;
5+
static description = `Prints the base URL for the current ${ColorifyConstants.ID('account')}, ${ColorifyConstants.ID(
6+
'workspace'
7+
)} and ${ColorifyConstants.ID('environment')}`
88

9-
static examples = [ `${ColorifyConstants.COMMAND_OR_VTEX_REF('vtex url')}` ];
9+
static examples = [`${ColorifyConstants.COMMAND_OR_VTEX_REF('vtex url')}`]
1010

1111
static flags = {
1212
...CustomCommand.globalFlags,

src/modules/url.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ import { clusterIdDomainInfix, publicEndpoint, SessionManager } from 'vtex'
22

33
export default () => {
44
const { account, workspace } = SessionManager.getSingleton()
5+
56
return `https://${workspace}--${account}${clusterIdDomainInfix()}.${publicEndpoint()}`
67
}

0 commit comments

Comments
 (0)