From e50b3f150aacbd7ceed96dc9755692e1d629e346 Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Mon, 17 Jul 2023 01:36:49 +0200 Subject: [PATCH] build(readme): add README compatibility switching during bundling --- .vscodeignore | 2 ++ README.github.md => README.dist.md | 9 ++++++--- README.md | 9 ++++----- package.json | 3 ++- 4 files changed, 14 insertions(+), 9 deletions(-) rename README.github.md => README.dist.md (70%) diff --git a/.vscodeignore b/.vscodeignore index c4343c9..b6d76a8 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -21,5 +21,7 @@ dist/test/** dist/**/*.js.map src/** +!README.github.md + **/*.svg **/*.vsix diff --git a/README.github.md b/README.dist.md similarity index 70% rename from README.github.md rename to README.dist.md index af91df5..b1132ee 100644 --- a/README.github.md +++ b/README.dist.md @@ -1,13 +1,16 @@

- OpenAI Forge Logo - OpenAI Forge Header + OpenAI Forge Logo +

OpenAI Forge

+

Visual Studio Code Extension

--- > OpenAI Forge automates your communication between Visual Studio Code and ChatGPT 🤖. -https://github.com/ivangabriele/openai-forge-vsce/assets/5957876/fbb5ba36-a9b5-4251-868c-0fa6ef1676b5 +## Screencast + + ## Requirements diff --git a/README.md b/README.md index e1ab748..af91df5 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@

- OpenAI Forge Logo -

-

OpenAI Forge

-

Visual Studio Code Extension

-
+ OpenAI Forge Logo + OpenAI Forge Header

--- > OpenAI Forge automates your communication between Visual Studio Code and ChatGPT 🤖. +https://github.com/ivangabriele/openai-forge-vsce/assets/5957876/fbb5ba36-a9b5-4251-868c-0fa6ef1676b5 + ## Requirements **YOU MUST INSTALL OpenAI Forge Browser Extension or this extension can't work.** diff --git a/package.json b/package.json index 0eb6a35..de21376 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "main": "./dist/extension.js", "scripts": { "build": "rollup -c", - "bundle": "yarn clean && yarn build && (rm -Rf *.vsix || true) && vsce package --yarn", + "build:readme": "mv ./README.md ./README.github.md && mv ./README.dist.md ./README.md", + "bundle": "yarn clean && yarn build && yarn build:readme && (rm -Rf *.vsix || true) && vsce package --yarn", "clean": "rm -Rf ./dist", "release": "semantic-release && vsce publish --yarn", "test:lint": "eslint .",