Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 #36

Merged
merged 16 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .eslintrc.json → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
module.exports = {
"root": true,
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
Expand All @@ -14,11 +14,18 @@
},
"ignorePatterns": [],
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": ["error", {
"packageDir": [".", __dirname] // This tells ESLint to check both the local and root package.json files
}],
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"max-len": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"object-curly-newline": "off"
}
}
};
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
version: 8
- run: pnpm install
- run: pnpm lint
- run: pnpm -r lint

test:
runs-on: ubuntu-latest
Expand All @@ -30,7 +30,10 @@ jobs:
with:
version: 8
- run: pnpm install
- run: pnpm test run
- run: pnpm -r test run -- --environment node
- run: pnpm -r test run -- --environment edge-runtime
- run: pnpm -r build # only necessary for miniflare
- run: pnpm -r test run -- --environment miniflare

build:
runs-on: ubuntu-latest
Expand All @@ -43,4 +46,4 @@ jobs:
with:
version: 8
- run: pnpm install
- run: pnpm build
- run: pnpm -r build
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
packages: write
contents: read
steps:
- name: Get tag name
uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
Expand All @@ -21,7 +24,8 @@ jobs:
with:
version: 8
- run: pnpm install
- run: pnpm build
- run: pnpm publish --no-git-checks --access public
- run: pnpm -r build
- run: /bin/bash set-version.sh ${{ steps.tagName.outputs.tag }}
- run: pnpm -r publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,32 @@
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
.DS_Store
*~
\#*
node_modules
.next
.env
.env*.local
.env.*
!.env.example
dist
build
.vscode

# vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

# sveltkit
.svelte-kit

# vercel
.vercel

# wrangler files
.wrangler
.dev.vars

# lerna
.nx
Loading