Skip to content

Commit

Permalink
build(readme): add README compatibility switching during bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Jul 16, 2023
1 parent 71446a5 commit e50b3f1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ dist/test/**
dist/**/*.js.map
src/**

!README.github.md

**/*.svg
**/*.vsix
9 changes: 6 additions & 3 deletions README.github.md → README.dist.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<p align="center">
<img alt="OpenAI Forge Logo" height="128" src="assets/icons/icon.svg" />
<img alt="OpenAI Forge Header" width="100%" src="assets/docs/readme-header.svg" />
<img alt="OpenAI Forge Logo" height="128" src="assets/icons/x512.png" />
<h3 align="center">OpenAI Forge</h3>
<p align="center"><b>Visual Studio Code Extension</b></p>
</p>

---

> 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

<video src="https://github.com/ivangabriele/openai-forge-vsce/assets/5957876/fbb5ba36-a9b5-4251-868c-0fa6ef1676b5" width="100%"></video>

## Requirements

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<p align="center">
<img alt="OpenAI Forge Logo" height="128" src="assets/icons/x512.png" />
<hgroup>
<p align="center" style="color: #e52b50; font-size: 250%; linee-height: 0; margin-bottom: 0">OpenAI Forge</p>
<p align="center" style="font-size: 125%">Visual Studio Code Extension</p>
</hgroup>
<img alt="OpenAI Forge Logo" height="128" src="assets/icons/icon.svg" />
<img alt="OpenAI Forge Header" width="100%" src="assets/docs/readme-header.svg" />
</p>

---

> 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.**
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down

0 comments on commit e50b3f1

Please sign in to comment.