@zeplin/cli
Advanced tools
Comparing version 0.5.0 to 1.0.0
{ | ||
"name": "@zeplin/cli", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"description": "Zeplin CLI", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/app", |
@@ -36,3 +36,3 @@ "use strict"; | ||
styleguidist: joi_1.default.object({ | ||
kind: joi_1.default.string() | ||
name: joi_1.default.string() | ||
}).optional() | ||
@@ -39,0 +39,0 @@ }); |
@@ -23,2 +23,3 @@ "use strict"; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const path_1 = __importDefault(require("path")); | ||
const ts_dedent_1 = __importDefault(require("ts-dedent")); | ||
@@ -96,8 +97,8 @@ const url_join_1 = __importDefault(require("url-join")); | ||
const branch = gitConfig.branch || repoDefaults.branch; | ||
const path = encodeURIComponent(gitConfig.path || ""); | ||
const encodedPath = encodeURIComponent(componentPath); | ||
const basePath = gitConfig.path || ""; | ||
const prefix = repoDefaults.prefix || ""; | ||
const filePath = componentPath.split(path_1.default.sep); | ||
return { | ||
type: repoDefaults.type, | ||
url: url_join_1.default(url, repository, prefix, branch, path, encodedPath) | ||
url: encodeURI(url_join_1.default(url, repository, prefix, branch, basePath, ...filePath)) | ||
}; | ||
@@ -150,3 +151,3 @@ }; | ||
if (type === "styleguidist" && component.styleguidist) { | ||
const encodedKind = encodeURIComponent(component.styleguidist.kind); | ||
const encodedKind = encodeURIComponent(component.styleguidist.name); | ||
urlPaths.push({ name, type: "styleguidist" /* styleguidist */, url: url_join_1.default(url, `#${encodedKind}`) }); | ||
@@ -153,0 +154,0 @@ } |
@@ -263,5 +263,5 @@ | ||
export declare interface StyleguidistComponentConfig { | ||
kind: string; | ||
name: string; | ||
} | ||
export { } |
@@ -18,3 +18,3 @@ <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
| --- | --- | --- | | ||
| [kind](./cli.styleguidistcomponentconfig.kind.md) | <code>string</code> | | | ||
| [name](./cli.styleguidistcomponentconfig.name.md) | <code>string</code> | | | ||
{ | ||
"name": "@zeplin/cli", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"description": "Zeplin CLI", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/app", |
@@ -17,7 +17,7 @@ # Zeplin CLI | ||
[Connected Components](https://blog.zeplin.io/introducing-connected-components-components-in-design-and-code-in-harmony-aa894ed5bd95) in Zeplin lets you access components in your codebase directly on designs in Zeplin, with links to Storybook, GitHub and any other source of documentation based on your workflow. 🧩 | ||
[Connected Components](https://zpl.io/connected-components) in Zeplin lets you access components in your codebase directly on designs in Zeplin, with links to Storybook, GitHub and any other source of documentation based on your workflow. 🧩 | ||
CLI `connect` command uses plugins to analyze component source code and publishes a high-level overview to be displayed in Zeplin. You can either publish changes to your components manually, or better yet, you can always keep them in sync by running the CLI as a step in your CI workflow. | ||
Make sure that you created a configuration file (`.zeplin/components.json`) following [Connected Components documentation]() and run the `connect` command: | ||
Make sure that you created a configuration file (`.zeplin/components.json`) following [Connected Components documentation](https://github.com/zeplin/connected-components-docs) and run the `connect` command: | ||
@@ -24,0 +24,0 @@ ```sh |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
222453
4029
0