Skip to content

Commit 590607f

Browse files
committed
Migrate to turborepo
1 parent d552a56 commit 590607f

File tree

326 files changed

+6322
-23251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+6322
-23251
lines changed

.config/bundlewatch.config.js

-13
This file was deleted.

.config/husky/pre-commit

-4
This file was deleted.

.eslintrc

-69
This file was deleted.

.eslintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
module.exports = {
3+
root: true,
4+
extends: ["@repo/eslint-config/index.js"],
5+
};

.github/workflows/ci.yml

+21-43
Original file line numberDiff line numberDiff line change
@@ -14,66 +14,44 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
node-version: [16.x]
18-
pnpm-version: [7.19.x]
17+
node-version: [18.x]
18+
bun-version: [1.x]
1919
os: [ubuntu-latest]
2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: pnpm/[email protected]
21+
- uses: actions/checkout@v4
22+
- name: Set up Bun
23+
uses: oven-sh/setup-bun@v2
2324
with:
24-
version: ${{ matrix.pnpm-version }}
25+
bun-version: latest
2526
- name: Set up Node ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2728
with:
28-
cache: 'pnpm'
2929
node-version: ${{ matrix.node-version }}
30-
- name: Cache pnpm
31-
uses: actions/cache@v3
32-
with:
33-
path: ~/.pnpm-store
34-
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
35-
restore-keys: pnpm-
36-
- name: Cache node_modules
37-
uses: actions/cache@v3
38-
id: cache-node-modules
39-
with:
40-
path: |
41-
node_modules
42-
packages/*/node_modules
43-
packages/**/dist
44-
key: modules-${{ hashFiles('pnpm-lock.yaml') }}
4530
- name: Install Dependencies
46-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
47-
run: pnpm i
31+
run: bun i
4832

4933
- name: Get changed files from evmcrispr
5034
id: changed-files
51-
uses: tj-actions/changed-files@v20
35+
uses: tj-actions/changed-files@v44
5236
with:
53-
files: 'packages/evmcrispr/src/**'
37+
files: "packages/evmcrispr/{src,test}/**"
5438

55-
- name: Link Dependencies
56-
if: steps.cache-node-modules.outputs.cache-hit == 'true'
57-
run: pnpm dev
39+
- name: Build
40+
run: bun run build
5841

5942
- name: Lint code
60-
run: pnpm lint
43+
run: bun lint
6144

6245
- name: Check evmcrispr types
63-
run: pnpm lint:evmcrispr:types
64-
65-
- name: Build
66-
run: pnpm build
67-
68-
- name: Check size
69-
run: pnpm size
70-
env:
71-
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
72-
CI_BRANCH_BASE: master
46+
run: bun type-check
7347

7448
- name: Tests
7549
if: steps.changed-files.outputs.any_changed == 'true'
76-
run: pnpm test:coverage
50+
run: |
51+
echo "ARCHIVE_NODE_ENDPOINT=${{ secrets.ARCHIVE_NODE_ENDPOINT }}" >> packages/evmcrispr/.env
52+
echo "VITE_PINATA_JWT=${{ secrets.VITE_PINATA_JWT }}" >> packages/evmcrispr/.env
53+
echo "ETHERSCAN_API=${{ secrets.ETHERSCAN_API }}" >> packages/evmcrispr/.env
54+
bun test:coverage
7755
env:
7856
ARCHIVE_NODE_ENDPOINT: ${{ secrets.ARCHIVE_NODE_ENDPOINT }}
7957
VITE_PINATA_JWT: ${{ secrets.VITE_PINATA_JWT }}
@@ -85,5 +63,5 @@ jobs:
8563
with:
8664
github-token: ${{ secrets.GITHUB_TOKEN }}
8765
flag-name: ${{matrix.os}}-node-${{ matrix.node-version }}
88-
base-path: 'packages/evmcrispr'
89-
path-to-lcov: 'packages/evmcrispr/coverage/lcov.info'
66+
base-path: "packages/evmcrispr"
67+
path-to-lcov: "packages/evmcrispr/coverage/lcov.info"

.github/workflows/docs.yml

-39
This file was deleted.

.github/workflows/release.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [master]
66
paths:
7-
- 'packages/evmcrispr/**'
7+
- "packages/evmcrispr/**"
88

99
jobs:
1010
release:
@@ -13,35 +13,32 @@ jobs:
1313
strategy:
1414
matrix:
1515
node-version: [16.x]
16-
pnpm-version: [7.x]
1716
os: [ubuntu-latest]
1817
steps:
1918
- uses: actions/checkout@v3
2019
with:
2120
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2221
fetch-depth: 0
2322

24-
- uses: pnpm/[email protected]
25-
with:
26-
version: ${{ matrix.pnpm-version }}
23+
- uses: oven-sh/setup-bun@v1
2724

2825
- name: Set up Node ${{ matrix.node-version }}
2926
uses: actions/setup-node@v3
3027
with:
31-
cache: 'pnpm'
28+
cache: "bun"
3229
node-version: ${{ matrix.node-version }}
3330

3431
- name: Install Dependencies
35-
run: pnpm i
32+
run: bun i
3633

3734
- name: Create Release Pull Request or Publish to npm
3835
id: changesets
3936
uses: changesets/action@v1
4037
with:
41-
title: 'chore: version packages'
42-
commit: 'chore: version packages'
43-
version: pnpm changeset:version
44-
publish: pnpm changeset:release
38+
title: "chore: version packages"
39+
commit: "chore: version packages"
40+
version: bun changeset:version
41+
publish: bun changeset:release
4542
env:
4643
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4744
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+11-44
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,14 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
node_modules
4-
package-lock.json
5-
yarn.lock
6-
7-
.pnp
8-
.pnp.js
9-
10-
./artifacts
11-
deployments
12-
cache
13-
typechain
14-
15-
*.txt
16-
tenderly.yaml
17-
18-
.eslintcache
19-
20-
# compilation output
21-
dist/
22-
23-
# testing
24-
coverage
25-
coverage.json
26-
27-
# production
28-
build
29-
30-
# misc
311
.DS_Store
2+
node_modules
3+
.turbo
4+
*.log
5+
dist
6+
dist-ssr
7+
*.local
328
.env
33-
34-
# debug
35-
.pnpm-debug.log
36-
37-
.idea
38-
39-
# github actions local tester
40-
act.secrets
41-
9+
.cache
10+
server/dist
11+
public/dist
4212
.nyc_output
43-
44-
tsconfig.tsbuildinfo
45-
46-
# typedocs
47-
docs
13+
cache
14+
coverage

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
bunx lint-staged

.pretierrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@repo/prettier-config"

.prettierrc

-8
This file was deleted.

.vscode/settings.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"editor.formatOnSave": true,
33
"editor.codeActionsOnSave": {
4-
"source.fixAll.eslint": true
4+
"source.fixAll.eslint": "always"
55
},
66
"eslint.options": {
77
"extensions": [".js", ".ts", ".tsx"]
88
},
99
"eslint.validate": ["javascript", "typescript", "typescriptreact"],
10-
"eslint.packageManager": "pnpm",
1110
"solidity.packageDefaultDependenciesContractsDirectory": "",
1211
"solidity.packageDefaultDependenciesDirectory": "packages/hardhat/node_modules",
1312
"solidity.enabledAsYouTypeCompilationErrorCheck": true,

0 commit comments

Comments
 (0)