update all todos
This commit is contained in:
parent
1420418268
commit
c329245917
19
DELETE_ME.md
19
DELETE_ME.md
|
@ -1,19 +0,0 @@
|
||||||
## Checklist
|
|
||||||
|
|
||||||
- [ ] Update all `TODO:`
|
|
||||||
- [ ] Update all `package-name` occurences
|
|
||||||
- [ ] Add a LICENSE.md at the root
|
|
||||||
- [ ] Have gh cli installed
|
|
||||||
- [ ] Work on the integration logic
|
|
||||||
- [ ] Work on docs
|
|
||||||
- [ ] JSDoc
|
|
||||||
- [ ] Package README
|
|
||||||
- [ ] Format/lint (`pnpm lint:fix`)
|
|
||||||
- [ ] Setup GitHub repository
|
|
||||||
- [ ] Release (see below)
|
|
||||||
- [ ] Share!
|
|
||||||
|
|
||||||
To create a release:
|
|
||||||
- [ ] `pnpm run changeset`
|
|
||||||
- [ ] Commit and push
|
|
||||||
- [ ] `pnpm release`
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 MatthiesenXYZ
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
27
README.md
27
README.md
|
@ -1,9 +1,30 @@
|
||||||
# package-name
|
# `Astro-Gists`
|
||||||
|
|
||||||
TODO:description
|
Allows the user to import GitHub Gists by ID through an Astro Component and Octokit
|
||||||
|
|
||||||
To see how to get started, check out the [package README](./package/README.md)
|
To see how to get started, check out the [package README](./package/README.md)
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
This package is structured as a monorepo:
|
||||||
|
|
||||||
|
- `playground` contains code for testing the package
|
||||||
|
- `package` contains the actual package
|
||||||
|
|
||||||
|
Install dependencies using pnpm:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pnpm i --frozen-lockfile
|
||||||
|
```
|
||||||
|
|
||||||
|
Start the playground:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pnpm playground:dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You can now edit files in `package`. Please note that making changes to those files may require restarting the playground dev server.
|
||||||
|
|
||||||
## Licensing
|
## Licensing
|
||||||
|
|
||||||
[MIT Licensed](./LICENSE). Made with ❤️ by [TODO:user](https://github.com/TODO:github-user).
|
[MIT Licensed](./LICENSE). Made with ❤️ by [AdamMatthiesen](https://github.com/AdamMatthiesen) Under [MatthiesenXYZ](https://github.com/MatthiesenXYZ).
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"playground:dev": "pnpm --filter playground dev",
|
"playground:dev": "pnpm --filter playground dev",
|
||||||
"changeset": "changeset",
|
"changeset": "changeset",
|
||||||
"release": "node scripts/release.mjs",
|
|
||||||
"lint": "biome check .",
|
"lint": "biome check .",
|
||||||
"lint:fix": "biome check --apply ."
|
"lint:fix": "biome check --apply ."
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 MatthiesenXYZ
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -1,6 +1,6 @@
|
||||||
# `package-name`
|
# `Astro-Gists`
|
||||||
|
|
||||||
This is an [Astro integration](https://docs.astro.build/en/guides/integrations-guide/) that TODO:description
|
This is an [Astro integration](https://docs.astro.build/en/guides/integrations-guide/) that allows the user to import GitHub Gists by ID through an Astro Component and Octokit
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -13,15 +13,15 @@ TODO:
|
||||||
Install the integration **automatically** using the Astro CLI:
|
Install the integration **automatically** using the Astro CLI:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm astro add package-name
|
pnpm astro add @matthiesenxyz/astro-gists
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx astro add package-name
|
npx astro add @matthiesenxyz/astro-gists
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn astro add package-name
|
yarn astro add @matthiesenxyz/astro-gists
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it **manually**:
|
Or install it **manually**:
|
||||||
|
@ -29,21 +29,21 @@ Or install it **manually**:
|
||||||
1. Install the required dependencies
|
1. Install the required dependencies
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm add package-name
|
pnpm add @matthiesenxyz/astro-gists
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install package-name
|
npm install @matthiesenxyz/astro-gists
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add package-name
|
yarn add @matthiesenxyz/astro-gists
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Add the integration to your astro config
|
2. Add the integration to your astro config
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
+import integration from "package-name";
|
+import integration from "@matthiesenxyz/astro-gists";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [
|
integrations: [
|
||||||
|
@ -56,30 +56,9 @@ export default defineConfig({
|
||||||
|
|
||||||
TODO:configuration
|
TODO:configuration
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
This package is structured as a monorepo:
|
|
||||||
|
|
||||||
- `playground` contains code for testing the package
|
|
||||||
- `package` contains the actual package
|
|
||||||
|
|
||||||
Install dependencies using pnpm:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pnpm i --frozen-lockfile
|
|
||||||
```
|
|
||||||
|
|
||||||
Start the playground:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pnpm playground:dev
|
|
||||||
```
|
|
||||||
|
|
||||||
You can now edit files in `package`. Please note that making changes to those files may require restarting the playground dev server.
|
|
||||||
|
|
||||||
## Licensing
|
## Licensing
|
||||||
|
|
||||||
[MIT Licensed](https://github.com/TODO:/blob/main/LICENSE). Made with ❤️ by [TODO:](https://github.com/TODO:).
|
[MIT Licensed](./LICENSE). Made with ❤️ by [AdamMatthiesen](https://github.com/AdamMatthiesen) Under [MatthiesenXYZ](https://github.com/MatthiesenXYZ).
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/astro-gists",
|
"name": "@matthiesenxyz/astro-gists",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "TODO:",
|
"description": "Allows the user to import GitHub Gists by ID through an Astro Component and Octokit",
|
||||||
"author": {
|
"author": {
|
||||||
"email": "adam@matthiesen.xyz",
|
"email": "adam@matthiesen.xyz",
|
||||||
"name": "Adam Matthiesen",
|
"name": "Adam Matthiesen",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { AstroIntegration } from "astro";
|
||||||
|
|
||||||
export const integration = (): AstroIntegration => {
|
export const integration = (): AstroIntegration => {
|
||||||
return {
|
return {
|
||||||
name: "package-name",
|
name: "@matthiesenxyz/astro-gists",
|
||||||
hooks: {},
|
hooks: {},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import tailwind from "@astrojs/tailwind";
|
import tailwind from "@astrojs/tailwind";
|
||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
import packageName from "package-name";
|
import integration from "@matthiesenxyz/astro-gists";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [tailwind(), packageName()],
|
integrations: [tailwind(), integration()],
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/tailwind": "^5.1.0",
|
"@astrojs/tailwind": "^5.1.0",
|
||||||
"astro": "^4.4.0",
|
"astro": "^4.4.4",
|
||||||
"package-name": "workspace:*",
|
"@matthiesenxyz/astro-gists": "workspace:*",
|
||||||
"tailwindcss": "^3.4.1"
|
"tailwindcss": "^3.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "^0.5.4",
|
"@astrojs/check": "^0.5.5",
|
||||||
"@types/node": "^20.11.19",
|
"@types/node": "^20.11.20",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,23 +28,23 @@ importers:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/tailwind':
|
'@astrojs/tailwind':
|
||||||
specifier: ^5.1.0
|
specifier: ^5.1.0
|
||||||
version: 5.1.0(astro@4.4.0)(tailwindcss@3.4.1)
|
version: 5.1.0(astro@4.4.4)(tailwindcss@3.4.1)
|
||||||
astro:
|
'@matthiesenxyz/astro-gists':
|
||||||
specifier: ^4.4.0
|
|
||||||
version: 4.4.0(@types/node@20.11.19)(typescript@5.3.3)
|
|
||||||
package-name:
|
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../package
|
version: link:../package
|
||||||
|
astro:
|
||||||
|
specifier: ^4.4.4
|
||||||
|
version: 4.4.4(@types/node@20.11.20)(typescript@5.3.3)
|
||||||
tailwindcss:
|
tailwindcss:
|
||||||
specifier: ^3.4.1
|
specifier: ^3.4.1
|
||||||
version: 3.4.1
|
version: 3.4.1
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@astrojs/check':
|
'@astrojs/check':
|
||||||
specifier: ^0.5.4
|
specifier: ^0.5.5
|
||||||
version: 0.5.4(typescript@5.3.3)
|
version: 0.5.5(typescript@5.3.3)
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^20.11.19
|
specifier: ^20.11.20
|
||||||
version: 20.11.19
|
version: 20.11.20
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.3.3
|
specifier: ^5.3.3
|
||||||
version: 5.3.3
|
version: 5.3.3
|
||||||
|
@ -64,13 +64,13 @@ packages:
|
||||||
'@jridgewell/trace-mapping': 0.3.21
|
'@jridgewell/trace-mapping': 0.3.21
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/check@0.5.4(typescript@5.3.3):
|
/@astrojs/check@0.5.5(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-BFClaLEuRzpfF9wrmh9KDS5gmRHGhkVN7qvm6tWPBvUxOADXiNz+hzrYFvZVqXTXhHjS0Ern1g3yHifgu0zsmw==}
|
resolution: {integrity: sha512-05LjyUB14Cv2mkLNqY4r2igI2eu0bq/HcKCfFNIoBPLyNW7VUDr9tciD9VJXXT3s0e6JHneIs6bQW5ipjmaRcw==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
typescript: ^5.0.0
|
typescript: ^5.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/language-server': 2.7.4(typescript@5.3.3)
|
'@astrojs/language-server': 2.7.5(typescript@5.3.3)
|
||||||
chokidar: 3.5.3
|
chokidar: 3.5.3
|
||||||
fast-glob: 3.3.2
|
fast-glob: 3.3.2
|
||||||
kleur: 4.1.5
|
kleur: 4.1.5
|
||||||
|
@ -92,8 +92,8 @@ packages:
|
||||||
resolution: {integrity: sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A==}
|
resolution: {integrity: sha512-06DD2ZnItMwUnH81LBLco3tWjcZ1lGU9rLCCBaeUCGYe9cI0wKyY2W3kDyoW1I6GmcWgt1fu+D1CTvz+FIKf8A==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/language-server@2.7.4(typescript@5.3.3):
|
/@astrojs/language-server@2.7.5(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-U317ZKx5VXg2Sy6iPgYOliOZ10Ji/eo8MGFCry2/yT+rYTfb81HbrSWUu9nsZzpFK66So5aprQutRWWM/m7mPQ==}
|
resolution: {integrity: sha512-iMfZ3UaqTgIL+z/eUDOppRa1bGUAteWRihbWq5mGAgvr/hu384ZXUKJcqV3BBux0MBsRXwjxzrC2dJu9IpAaoA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
prettier: ^3.0.0
|
prettier: ^3.0.0
|
||||||
|
@ -112,12 +112,12 @@ packages:
|
||||||
'@volar/language-service': 2.0.4
|
'@volar/language-service': 2.0.4
|
||||||
'@volar/typescript': 2.0.4
|
'@volar/typescript': 2.0.4
|
||||||
fast-glob: 3.3.2
|
fast-glob: 3.3.2
|
||||||
volar-service-css: 0.0.29(@volar/language-service@2.0.4)
|
volar-service-css: 0.0.30(@volar/language-service@2.0.4)
|
||||||
volar-service-emmet: 0.0.29(@volar/language-service@2.0.4)
|
volar-service-emmet: 0.0.30(@volar/language-service@2.0.4)
|
||||||
volar-service-html: 0.0.29(@volar/language-service@2.0.4)
|
volar-service-html: 0.0.30(@volar/language-service@2.0.4)
|
||||||
volar-service-prettier: 0.0.29(@volar/language-service@2.0.4)
|
volar-service-prettier: 0.0.30(@volar/language-service@2.0.4)
|
||||||
volar-service-typescript: 0.0.29(@volar/language-service@2.0.4)(@volar/typescript@2.0.4)
|
volar-service-typescript: 0.0.30(@volar/language-service@2.0.4)(@volar/typescript@2.0.4)
|
||||||
volar-service-typescript-twoslash-queries: 0.0.29(@volar/language-service@2.0.4)
|
volar-service-typescript-twoslash-queries: 0.0.30(@volar/language-service@2.0.4)
|
||||||
vscode-html-languageservice: 5.1.2
|
vscode-html-languageservice: 5.1.2
|
||||||
vscode-uri: 3.0.8
|
vscode-uri: 3.0.8
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -173,13 +173,13 @@ packages:
|
||||||
prismjs: 1.29.0
|
prismjs: 1.29.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/tailwind@5.1.0(astro@4.4.0)(tailwindcss@3.4.1):
|
/@astrojs/tailwind@5.1.0(astro@4.4.4)(tailwindcss@3.4.1):
|
||||||
resolution: {integrity: sha512-BJoCDKuWhU9FT2qYg+fr6Nfb3qP4ShtyjXGHKA/4mHN94z7BGcmauQK23iy+YH5qWvTnhqkd6mQPQ1yTZTe9Ig==}
|
resolution: {integrity: sha512-BJoCDKuWhU9FT2qYg+fr6Nfb3qP4ShtyjXGHKA/4mHN94z7BGcmauQK23iy+YH5qWvTnhqkd6mQPQ1yTZTe9Ig==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
astro: ^3.0.0 || ^4.0.0
|
astro: ^3.0.0 || ^4.0.0
|
||||||
tailwindcss: ^3.0.24
|
tailwindcss: ^3.0.24
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: 4.4.0(@types/node@20.11.19)(typescript@5.3.3)
|
astro: 4.4.4(@types/node@20.11.20)(typescript@5.3.3)
|
||||||
autoprefixer: 10.4.16(postcss@8.4.33)
|
autoprefixer: 10.4.16(postcss@8.4.33)
|
||||||
postcss: 8.4.33
|
postcss: 8.4.33
|
||||||
postcss-load-config: 4.0.2(postcss@8.4.33)
|
postcss-load-config: 4.0.2(postcss@8.4.33)
|
||||||
|
@ -1191,8 +1191,8 @@ packages:
|
||||||
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
|
resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/node@20.11.19:
|
/@types/node@20.11.20:
|
||||||
resolution: {integrity: sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==}
|
resolution: {integrity: sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 5.26.5
|
undici-types: 5.26.5
|
||||||
|
|
||||||
|
@ -1506,8 +1506,8 @@ packages:
|
||||||
- typescript
|
- typescript
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/astro@4.4.0(@types/node@20.11.19)(typescript@5.3.3):
|
/astro@4.4.4(@types/node@20.11.20)(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-JAsMrm1Z6W4Iqg9Q7LW/6lCXrqa4jndEOlR/yu7NGNP0BrPwSM8i4+yzya6hxgsNvyyVK8ywthaNhFmqd8Z+cg==}
|
resolution: {integrity: sha512-EZrDTN888w4sFKqavGsHu8jSaymyxNwnoqIq5NKlMG9WNU/Xn4Yn41pUdBuAOrgNzRp1NyXXhhV6GV1pN71V2Q==}
|
||||||
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
|
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1563,7 +1563,6 @@ packages:
|
||||||
rehype: 13.0.1
|
rehype: 13.0.1
|
||||||
resolve: 1.22.8
|
resolve: 1.22.8
|
||||||
semver: 7.5.4
|
semver: 7.5.4
|
||||||
server-destroy: 1.0.1
|
|
||||||
shikiji: 0.9.19
|
shikiji: 0.9.19
|
||||||
shikiji-core: 0.9.19
|
shikiji-core: 0.9.19
|
||||||
string-width: 7.0.0
|
string-width: 7.0.0
|
||||||
|
@ -1571,7 +1570,7 @@ packages:
|
||||||
tsconfck: 3.0.1(typescript@5.3.3)
|
tsconfck: 3.0.1(typescript@5.3.3)
|
||||||
unist-util-visit: 5.0.0
|
unist-util-visit: 5.0.0
|
||||||
vfile: 6.0.1
|
vfile: 6.0.1
|
||||||
vite: 5.1.3(@types/node@20.11.19)
|
vite: 5.1.3(@types/node@20.11.20)
|
||||||
vitefu: 0.2.5(vite@5.1.3)
|
vitefu: 0.2.5(vite@5.1.3)
|
||||||
which-pm: 2.1.1
|
which-pm: 2.1.1
|
||||||
yargs-parser: 21.1.1
|
yargs-parser: 21.1.1
|
||||||
|
@ -5292,13 +5291,13 @@ packages:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.19.11
|
esbuild: 0.19.11
|
||||||
postcss: 8.4.33
|
postcss: 8.4.35
|
||||||
rollup: 4.9.5
|
rollup: 4.9.5
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.3
|
fsevents: 2.3.3
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/vite@5.1.3(@types/node@20.11.19):
|
/vite@5.1.3(@types/node@20.11.20):
|
||||||
resolution: {integrity: sha512-UfmUD36DKkqhi/F75RrxvPpry+9+tTkrXfMNZD+SboZqBCMsxKtO52XeGzzuh7ioz+Eo/SYDBbdb0Z7vgcDJew==}
|
resolution: {integrity: sha512-UfmUD36DKkqhi/F75RrxvPpry+9+tTkrXfMNZD+SboZqBCMsxKtO52XeGzzuh7ioz+Eo/SYDBbdb0Z7vgcDJew==}
|
||||||
engines: {node: ^18.0.0 || >=20.0.0}
|
engines: {node: ^18.0.0 || >=20.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -5326,7 +5325,7 @@ packages:
|
||||||
terser:
|
terser:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 20.11.19
|
'@types/node': 20.11.20
|
||||||
esbuild: 0.19.11
|
esbuild: 0.19.11
|
||||||
postcss: 8.4.35
|
postcss: 8.4.35
|
||||||
rollup: 4.9.5
|
rollup: 4.9.5
|
||||||
|
@ -5353,11 +5352,11 @@ packages:
|
||||||
vite:
|
vite:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
vite: 5.1.3(@types/node@20.11.19)
|
vite: 5.1.3(@types/node@20.11.20)
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/volar-service-css@0.0.29(@volar/language-service@2.0.4):
|
/volar-service-css@0.0.30(@volar/language-service@2.0.4):
|
||||||
resolution: {integrity: sha512-2kNdgEYEiLeeer3wkagNBVDPa3Zj7mBDeM7D3iYmBXA0LCwd2tQL3eASzcDW9Gvac1g478UtptK468GxzUAEcA==}
|
resolution: {integrity: sha512-jui+1N0HBfjW43tRfhyZp0axhBee4997BRyX4os8xQm/7cjD2KjAuyz92nMIPRt1QDoG4/7uQT28xNhy0TPJTA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@volar/language-service': ~2.0.1
|
'@volar/language-service': ~2.0.1
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
|
@ -5369,8 +5368,8 @@ packages:
|
||||||
vscode-uri: 3.0.8
|
vscode-uri: 3.0.8
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/volar-service-emmet@0.0.29(@volar/language-service@2.0.4):
|
/volar-service-emmet@0.0.30(@volar/language-service@2.0.4):
|
||||||
resolution: {integrity: sha512-sXRMfQ970lpOQxUcKH9B4DqE7FCNhPy6V4m3gw+kgH17mADQ2rdL63b8osXFy5bnAMBcsXRhtJXJPmh/LgZXEw==}
|
resolution: {integrity: sha512-HEeIrmqQ/DTfuQDI9ER5+YReXXjE9f7W6MlBmn5biUuPyizVTGfuILN8pJhmYvmPHCA7qHhU7CJqwE9DAh9AJg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@volar/language-service': ~2.0.1
|
'@volar/language-service': ~2.0.1
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
|
@ -5379,11 +5378,11 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@volar/language-service': 2.0.4
|
'@volar/language-service': 2.0.4
|
||||||
'@vscode/emmet-helper': 2.9.2
|
'@vscode/emmet-helper': 2.9.2
|
||||||
volar-service-html: 0.0.29(@volar/language-service@2.0.4)
|
volar-service-html: 0.0.30(@volar/language-service@2.0.4)
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/volar-service-html@0.0.29(@volar/language-service@2.0.4):
|
/volar-service-html@0.0.30(@volar/language-service@2.0.4):
|
||||||
resolution: {integrity: sha512-ctTSU46KCLxcaR53mAod2wBWSEIXGdXdejqHEDPSX33H5rA2X89zyYEpuk9BOVzIHG8G8rggVXCGnGaXxmYrCw==}
|
resolution: {integrity: sha512-wW3TEeRTeHv/3mC8Ik6T62SwewMWFungb8ydyEK/2GDHEntBEG/J9wtuh01/J0kYqPerhlT9zhdGB6PGYHAGuA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@volar/language-service': ~2.0.1
|
'@volar/language-service': ~2.0.1
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
|
@ -5395,8 +5394,8 @@ packages:
|
||||||
vscode-uri: 3.0.8
|
vscode-uri: 3.0.8
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/volar-service-prettier@0.0.29(@volar/language-service@2.0.4):
|
/volar-service-prettier@0.0.30(@volar/language-service@2.0.4):
|
||||||
resolution: {integrity: sha512-GxcDKfiVv3fc4XUtUOkQpX0QlFjWppRCVWIBp751gOKJwDex142xMlbTxP9la9tollbmj2O/tVUrqqLDGQ+Lsg==}
|
resolution: {integrity: sha512-Qdc5Zc0y4hJmJbpIQ52cSDjs0uvVug/e2nuL/XZWPJM6Cr5/3RjjoRVKtDQbKItFYlGk+JH+LSXvwQeD5TXZqg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@volar/language-service': ~2.0.1
|
'@volar/language-service': ~2.0.1
|
||||||
prettier: ^2.2 || ^3.0
|
prettier: ^2.2 || ^3.0
|
||||||
|
@ -5410,8 +5409,8 @@ packages:
|
||||||
vscode-uri: 3.0.8
|
vscode-uri: 3.0.8
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/volar-service-typescript-twoslash-queries@0.0.29(@volar/language-service@2.0.4):
|
/volar-service-typescript-twoslash-queries@0.0.30(@volar/language-service@2.0.4):
|
||||||
resolution: {integrity: sha512-hdI8ZO1Wc/I5+iwKKnOfXW7ktpBe0qLoXz5+8viS6aV9gycKSAKAs6sayLTATQZcZ1EAESUqTqGS/vJOUgZOsg==}
|
resolution: {integrity: sha512-ahj6woBxhkZu7icQR58x5TnUaS8ZRKn7a+UvY+andmiTWsOaSu85zj36+LPZgZQi1MG+BtjNwUjKoxtZiN51PA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@volar/language-service': ~2.0.1
|
'@volar/language-service': ~2.0.1
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
|
@ -5421,8 +5420,8 @@ packages:
|
||||||
'@volar/language-service': 2.0.4
|
'@volar/language-service': 2.0.4
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/volar-service-typescript@0.0.29(@volar/language-service@2.0.4)(@volar/typescript@2.0.4):
|
/volar-service-typescript@0.0.30(@volar/language-service@2.0.4)(@volar/typescript@2.0.4):
|
||||||
resolution: {integrity: sha512-ssBhGT0Wrh670NRTrLoikzoRbszd72jIa02IKbrfI9QIIONvygOmIJ9jSqj4jxHEWz/KSCgCEhCyR7hEH80kGg==}
|
resolution: {integrity: sha512-jA8c0Mhy9rgAsrgtwocK95Smws1M2E0MxlQ/SVo/rmOGH32cX9UGgI0IENWKa3yagp/khfoemOIQDz/KNhI3zg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@volar/language-service': ~2.0.1
|
'@volar/language-service': ~2.0.1
|
||||||
'@volar/typescript': ~2.0.1
|
'@volar/typescript': ~2.0.1
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
import { spawn } from "node:child_process";
|
|
||||||
import { resolve } from "node:path";
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {string} command
|
|
||||||
* @param {...Array<string>} args
|
|
||||||
*
|
|
||||||
* @returns {Promise<string>}
|
|
||||||
*/
|
|
||||||
const run = async (command, ...args) => {
|
|
||||||
const cwd = resolve();
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
const cmd = spawn(command, args, {
|
|
||||||
stdio: ["inherit", "pipe", "pipe"], // Inherit stdin, pipe stdout, pipe stderr
|
|
||||||
shell: true,
|
|
||||||
cwd,
|
|
||||||
});
|
|
||||||
|
|
||||||
let output = "";
|
|
||||||
|
|
||||||
cmd.stdout.on("data", (data) => {
|
|
||||||
process.stdout.write(data.toString());
|
|
||||||
output += data.toString();
|
|
||||||
});
|
|
||||||
|
|
||||||
cmd.stderr.on("data", (data) => {
|
|
||||||
process.stderr.write(data.toString());
|
|
||||||
});
|
|
||||||
|
|
||||||
cmd.on("close", () => {
|
|
||||||
resolve(output);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const main = async () => {
|
|
||||||
await run("pnpm changeset version");
|
|
||||||
await run("git add .");
|
|
||||||
await run('git commit -m "chore: update version"');
|
|
||||||
await run("git push");
|
|
||||||
await run("pnpm changeset publish");
|
|
||||||
await run("git push --follow-tags");
|
|
||||||
const tag = (await run("git describe --abbrev=0")).replace("\n", "");
|
|
||||||
await run(
|
|
||||||
`gh release create ${tag} --title ${tag} --notes "Please refer to [CHANGELOG.md](https://github.com/TODO:update/blob/main/package/CHANGELOG.md) for details."`,
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
main();
|
|
Loading…
Reference in New Issue