Skip to content

Commit

Permalink
biomejs, ts 5.6.2, jest => vitest, use tsup to build packages (#78)
Browse files Browse the repository at this point in the history
* biome, ts, vitest, tsup

* remove build script

* refactor

* fix

* bump
  • Loading branch information
seokju-na authored Sep 21, 2024
1 parent 1e3db18 commit 1d9ad8b
Show file tree
Hide file tree
Showing 782 changed files with 2,421 additions and 25,552 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.yarn/releases/*.js binary linguist-generated=true
yarn.lock binary
8 changes: 8 additions & 0 deletions .github/actions/node-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "node setup"
description: "node setup"
runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
22 changes: 22 additions & 0 deletions .github/actions/yarn-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "yarn setup"
description: "yarn setup"
runs:
using: "composite"
steps:
- run: |
corepack enable
corepack prepare --activate
shell: bash
- id: yarn-cache-dir
run: |
echo "YARN_CACHE_DIR=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
save-always: true
- run: yarn install
shell: bash
47 changes: 10 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,40 @@ concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- uses: actions/cache@v4
with:
path: |
**/.eslintcache
key: lint-${{ hashFiles('**/.eslintcache') }}
restore-keys: |
lint-
- run: yarn install --immutable --immutable-cache
- run: yarn lint
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn check
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- uses: actions/cache@v4
with:
path: |
**/*.tsbuildinfo
key: typecheck-${{ hashFiles('**/*.tsbuildinfo') }}
restore-keys: |
typecheck-
- run: yarn install --immutable --immutable-cache
- run: yarn typecheck
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- run: yarn install --immutable --immutable-cache
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn test
version-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- run: yarn install --immutable --immutable-cache
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn version check
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
branches:
- main
jobs:
publish:
npm:
runs-on: ubuntu-latest
environment: production
concurrency:
group: publish-npm
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable --immutable-cache
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- name: bump version
run: |
# git user config
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@

# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
!.yarn/cache
#.pnp.*
.pnp.*

.idea/
node_modules/
dist/
esm/
*.tsbuildinfo
.eslintcache
.next
.DS_Store*
Loading

0 comments on commit 1d9ad8b

Please sign in to comment.