From 287bb49c884d080466fca384816be83f1622906e Mon Sep 17 00:00:00 2001 From: Jack Koppa Date: Mon, 6 Jan 2020 14:06:52 -0500 Subject: [PATCH 1/2] fix (#1): Switch to HTML after @zeplin/cli fix for Prism parsing --- src/index.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4b90e43..43c5851 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,14 +12,7 @@ export default class implements ConnectPlugin { } async process(context: ComponentConfig): Promise { - /** - * @TODO Determine if we can switch to `PrismLang.HTML` - * Vue templates have no perfect analog in Prism-supported languages, - * though they're more similar to HTML than JSX. - * For now, `PrismLang.Markup` is a great solution; - * see https://github.com/zeplin/connected-components-beta-issues/issues/4#issuecomment-562738427 - */ - const lang = PrismLang.Markup + const lang = PrismLang.HTML const componentInfo = await parse(context.path) From 75c3c85ef8ee738eafd4accff106aba755d5fd3a Mon Sep 17 00:00:00 2001 From: Jack Koppa Date: Mon, 6 Jan 2020 14:19:02 -0500 Subject: [PATCH 2/2] chore: Ignore .tgz zip files generated by 'npm pack' for local testing --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2482fe6..6fe1950 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ node_modules/ dist/ # Editor -.vscode/ \ No newline at end of file +.vscode/ + +# For local testing w/ `npm pack` +*.tgz \ No newline at end of file