diff --git a/.changeset/config.json b/.changeset/config.json index 50ee5ae..c9095ac 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -3,7 +3,7 @@ "changelog": [ "@changesets/changelog-github", { - "repo": "un-ts/lib-boilerplate" + "repo": "un-ts/workerkit" } ], "commit": false, diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index 6589ed1..f39103e 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,4 +1,4 @@ { - "node": "16", + "node": "18", "sandboxes": [] } diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 663dc4b..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,11 +0,0 @@ -github: - - JounQin - - 1stG - - rx-ts - - un-ts -patreon: 1stG -open_collective: unts -custom: - - https://opencollective.com/1stG - - https://opencollective.com/rxts - - https://afdian.net/@JounQin diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 81c5d26..d29b246 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -30,15 +30,15 @@ jobs: uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: '/language:${{ matrix.language }}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4067e6..6b8fe31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,8 @@ jobs: with: publish: yarn release version: yarn run version - commit: 'chore: release lib-boilerplate' - title: 'chore: release lib-boilerplate' + commit: 'chore: release workerkit' + title: 'chore: release workerkit' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index 28a347c..1614aec 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# lib-boilerplate +# workerkit -[![GitHub Actions](https://github.com/un-ts/lib-boilerplate/workflows/CI/badge.svg)](https://github.com/un-ts/lib-boilerplate/actions/workflows/ci.yml) -[![Codecov](https://img.shields.io/codecov/c/github/un-ts/lib-boilerplate.svg)](https://codecov.io/gh/un-ts/lib-boilerplate) +[![GitHub Actions](https://github.com/un-ts/workerkit/workflows/CI/badge.svg)](https://github.com/un-ts/workerkit/actions/workflows/ci.yml) +[![Codecov](https://img.shields.io/codecov/c/github/un-ts/workerkit.svg)](https://codecov.io/gh/un-ts/workerkit) [![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Flib-boilerplate%2Fmain%2Fpackage.json)](https://github.com/plantain-00/type-coverage) -[![npm](https://img.shields.io/npm/v/lib-boilerplate.svg)](https://www.npmjs.com/package/lib-boilerplate) -[![GitHub Release](https://img.shields.io/github/release/un-ts/lib-boilerplate)](https://github.com/un-ts/lib-boilerplate/releases) +[![npm](https://img.shields.io/npm/v/workerkit.svg)](https://www.npmjs.com/package/workerkit) +[![GitHub Release](https://img.shields.io/github/release/un-ts/workerkit)](https://github.com/un-ts/workerkit/releases) [![Conventional Commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) @@ -30,19 +30,19 @@ A simple library boilerplate. ```sh # pnpm -pnpm add lib-boilerplate +pnpm add workerkit # yarn -yarn add lib-boilerplate +yarn add workerkit # npm -npm i lib-boilerplate +npm i workerkit ``` ### API ```js -import echo from 'lib-boilerplate' +import echo from 'workerkit' echo() ``` diff --git a/package.json b/package.json index d811f41..1faf21c 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "lib-boilerplate", - "version": "0.1.0", + "name": "workerkit", + "version": "0.0.0", "type": "module", "description": "A simple library boilerplate.", - "repository": "git+https://github.com/un-ts/lib-boilerplate.git", + "repository": "git+https://github.com/un-ts/workerkit.git", "author": "JounQin (https://www.1stG.me) ", "funding": "https://opencollective.com/unts", "license": "MIT", diff --git a/test/basic.spec.ts b/test/basic.spec.ts index 482d0dc..bee7b81 100644 --- a/test/basic.spec.ts +++ b/test/basic.spec.ts @@ -1,4 +1,4 @@ -import echo from 'lib-boilerplate' +import echo from 'workerkit' test('it should just work', () => { expect(echo()).toBe('Hello World!') diff --git a/tsconfig.json b/tsconfig.json index dd6cd35..cf038c3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@1stg/tsconfig/node16", "compilerOptions": { - "module": "Node16", "rootDir": "." } } diff --git a/vercel.json b/vercel.json index 47d9a4f..5dad338 100644 --- a/vercel.json +++ b/vercel.json @@ -1,7 +1,7 @@ { "version": 2, "alias": [ - "lib-boilerplate.vercel.app" + "workerkit.vercel.app" ], "github": { "silent": true diff --git a/vitest.config.ts b/vitest.config.ts index 8e2d29d..f9847ad 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ ], resolve: { alias: { - 'lib-boilerplate': new URL('src/index.ts', import.meta.url).pathname, + workerkit: new URL('src/index.ts', import.meta.url).pathname, }, }, test: { diff --git a/yarn.lock b/yarn.lock index 7b6917e..057fc1a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11948,45 +11948,6 @@ __metadata: languageName: node linkType: hard -"lib-boilerplate@workspace:.": - version: 0.0.0-use.local - resolution: "lib-boilerplate@workspace:." - dependencies: - "@1stg/app-config": "npm:^10.0.1" - "@changesets/changelog-github": "npm:^0.5.0" - "@changesets/cli": "npm:^2.27.1" - "@commitlint/cli": "npm:^18.4.3" - "@mdx-js/rollup": "npm:^3.0.0" - "@pkgr/rollup": "npm:^5.0.0" - "@size-limit/preset-small-lib": "npm:^11.0.1" - "@types/mdx": "npm:^2.0.10" - "@types/node": "npm:^20.10.5" - "@types/react": "npm:^18.2.46" - "@types/react-dom": "npm:^18.2.18" - "@types/web": "npm:^0.0.131" - "@vitejs/plugin-react-swc": "npm:^3.5.0" - "@vitest/coverage-v8": "npm:^1.1.0" - eslint: "npm:^8.56.0" - github-markdown-css: "npm:^5.5.0" - lint-staged: "npm:^15.2.0" - npm-run-all: "npm:^4.1.5" - react: "npm:^18.2.0" - react-dom: "npm:^18.2.0" - react-router-dom: "npm:^6.21.1" - rehype-slug: "npm:^6.0.0" - remark-gfm: "npm:^4.0.0" - simple-git-hooks: "npm:^2.9.0" - size-limit: "npm:^11.0.1" - stylelint: "npm:^16.1.0" - tslib: "npm:^2.6.2" - type-coverage: "npm:^2.27.1" - typescript: "npm:^5.3.3" - unplugin-auto-import: "npm:^0.17.3" - vite: "npm:^5.0.10" - vitest: "npm:^1.1.0" - languageName: unknown - linkType: soft - "lib-upng@npm:3.0.0": version: 3.0.0 resolution: "lib-upng@npm:3.0.0" @@ -21205,6 +21166,45 @@ __metadata: languageName: node linkType: hard +"workerkit@workspace:.": + version: 0.0.0-use.local + resolution: "workerkit@workspace:." + dependencies: + "@1stg/app-config": "npm:^10.0.1" + "@changesets/changelog-github": "npm:^0.5.0" + "@changesets/cli": "npm:^2.27.1" + "@commitlint/cli": "npm:^18.4.3" + "@mdx-js/rollup": "npm:^3.0.0" + "@pkgr/rollup": "npm:^5.0.0" + "@size-limit/preset-small-lib": "npm:^11.0.1" + "@types/mdx": "npm:^2.0.10" + "@types/node": "npm:^20.10.5" + "@types/react": "npm:^18.2.46" + "@types/react-dom": "npm:^18.2.18" + "@types/web": "npm:^0.0.131" + "@vitejs/plugin-react-swc": "npm:^3.5.0" + "@vitest/coverage-v8": "npm:^1.1.0" + eslint: "npm:^8.56.0" + github-markdown-css: "npm:^5.5.0" + lint-staged: "npm:^15.2.0" + npm-run-all: "npm:^4.1.5" + react: "npm:^18.2.0" + react-dom: "npm:^18.2.0" + react-router-dom: "npm:^6.21.1" + rehype-slug: "npm:^6.0.0" + remark-gfm: "npm:^4.0.0" + simple-git-hooks: "npm:^2.9.0" + size-limit: "npm:^11.0.1" + stylelint: "npm:^16.1.0" + tslib: "npm:^2.6.2" + type-coverage: "npm:^2.27.1" + typescript: "npm:^5.3.3" + unplugin-auto-import: "npm:^0.17.3" + vite: "npm:^5.0.10" + vitest: "npm:^1.1.0" + languageName: unknown + linkType: soft + "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0, wrap-ansi@npm:^7.0.0": version: 7.0.0 resolution: "wrap-ansi@npm:7.0.0"