Skip to content

Commit

Permalink
feat: first blood, rename to workerkit
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 29, 2023
1 parent 0bc3098 commit 663c2b3
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"changelog": [
"@changesets/changelog-github",
{
"repo": "un-ts/lib-boilerplate"
"repo": "un-ts/workerkit"
}
],
"commit": false,
Expand Down
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"node": "16",
"node": "18",
"sandboxes": []
}
11 changes: 0 additions & 11 deletions .github/FUNDING.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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()
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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) <admin@1stg.me>",
"funding": "https://opencollective.com/unts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion test/basic.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import echo from 'lib-boilerplate'
import echo from 'workerkit'

test('it should just work', () => {
expect(echo()).toBe('Hello World!')
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@1stg/tsconfig/node16",
"compilerOptions": {
"module": "Node16",
"rootDir": "."
}
}
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"alias": [
"lib-boilerplate.vercel.app"
"workerkit.vercel.app"
],
"github": {
"silent": true
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
78 changes: 39 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 663c2b3

Please sign in to comment.