Socket
Socket
Sign inDemoInstall

@zeplin/cli

Package Overview
Dependencies
Maintainers
5
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeplin/cli - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0

docs/cli.styleguidistcomponentconfig.name.md

2

dist/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc