-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 🤖 Linear Closes ZKS-XXX ## Description
- Loading branch information
Showing
55 changed files
with
833 additions
and
1,699 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
name: Run Build | ||
runs-on: ubuntu-latest | ||
build: | ||
name: Run Build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out github repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
steps: | ||
- name: Check out github repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable | ||
- name: Install dependencies | ||
run: yarn --immutable | ||
|
||
- name: Run Build | ||
run: yarn build | ||
- name: Run Build | ||
run: yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_call: | ||
workflow_call: | ||
|
||
jobs: | ||
commitlint: | ||
name: Lint Commit Messages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 | ||
|
||
lint: | ||
name: Run Linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable | ||
|
||
- name: Run Prettier | ||
run: yarn format | ||
|
||
- name: Run Linter | ||
run: yarn lint | ||
commitlint: | ||
name: Lint Commit Messages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 | ||
|
||
lint: | ||
name: Run Linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn --immutable | ||
|
||
- name: Run Prettier | ||
run: yarn format | ||
|
||
- name: Run Linter | ||
run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
name: Main Workflow | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches: | ||
- dev | ||
- main | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches: | ||
- dev | ||
- main | ||
|
||
concurrency: | ||
group: ${{github.workflow}}-${{github.ref}} | ||
cancel-in-progress: true | ||
group: ${{github.workflow}}-${{github.ref}} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
|
||
lint: | ||
uses: ./.github/workflows/lint.yml | ||
needs: build | ||
lint: | ||
uses: ./.github/workflows/lint.yml | ||
needs: build | ||
|
||
test: | ||
uses: ./.github/workflows/test.yml | ||
needs: lint | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
needs: lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
name: Tests | ||
|
||
on: | ||
workflow_call: | ||
workflow_call: | ||
|
||
jobs: | ||
unit: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Log Not Implemented Message | ||
run: echo "Not implemented yet" | ||
# - name: Check out github repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 1 | ||
unit: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log Not Implemented Message | ||
run: echo "Not implemented yet" | ||
# - name: Check out github repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 1 | ||
|
||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18.x | ||
# cache: "yarn" | ||
# - name: Use Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18.x | ||
# cache: "yarn" | ||
|
||
# - name: Install dependencies | ||
# run: yarn --immutable | ||
# - name: Install dependencies | ||
# run: yarn --immutable | ||
|
||
# - name: Run tests | ||
# run: yarn test | ||
# - name: Run tests | ||
# run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
*.tsbuildinfo | ||
|
||
# Dependencies | ||
node_modules | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
// Lint then format TypeScript and JavaScript files | ||
"(packages)/**/*.(ts|tsx|js)": (filenames) => [`yarn lint`, `yarn format`], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
{ | ||
"name": "zkChainHub", | ||
"private": true, | ||
"scripts": { | ||
"build": "turbo build", | ||
"dev": "turbo dev", | ||
"lint": "turbo lint", | ||
"prepare": "husky", | ||
"test": "turbo run test", | ||
"test:watch": "turbo run test:watch", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"" | ||
}, | ||
"workspaces": [ | ||
"packages/**", | ||
"tooling/**" | ||
], | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "19.2.2", | ||
"@types/node": "18.13.0", | ||
"@zkChainHub/eslint-config": "workspace:*", | ||
"@zkChainHub/prettier-config": "workspace:*", | ||
"@zkChainHub/test-config": "workspace:*", | ||
"@zkChainHub/typescript-config": "workspace:*", | ||
"commitlint": "19.3.0", | ||
"husky": "9.0.11", | ||
"lint-staged": "15.2.4", | ||
"prettier": "3.2.5", | ||
"ts-node-dev": "2.0.0", | ||
"turbo": "1.13.3", | ||
"typescript": "4.9.4" | ||
}, | ||
"lint-staged": { | ||
"**/*.{js,jsx,ts,tsx}": "eslint --cache --fix", | ||
"**/*.{md,json,yml,yaml}": "prettier --write" | ||
}, | ||
"packageManager": "[email protected]" | ||
"name": "zkchainhub", | ||
"private": true, | ||
"scripts": { | ||
"build": "turbo build", | ||
"dev": "turbo dev", | ||
"lint": "turbo lint", | ||
"prepare": "husky", | ||
"test": "turbo test", | ||
"format": "prettier --write \"**/*.{js,ts,md,json,yml,yaml}\"", | ||
"clean": "rimraf **/*.tsbuildinfo & rimraf **/dist & rimraf **/.turbo & rimraf **/.cache & rimraf **/node_modules " | ||
}, | ||
"workspaces": [ | ||
"packages/**", | ||
"tooling/**" | ||
], | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "19.2.2", | ||
"@total-typescript/tsconfig": "1.0.4", | ||
"@types/node": "18.13.0", | ||
"@zkchainhub/eslint-config": "workspace:*", | ||
"@zkchainhub/prettier-config": "workspace:*", | ||
"@zkchainhub/test-config": "workspace:*", | ||
"commitlint": "19.3.0", | ||
"eslint": "8.56.0", | ||
"husky": "9.0.11", | ||
"lint-staged": "13.2.3", | ||
"prettier": "3.2.5", | ||
"rimraf": "5.0.7", | ||
"ts-node-dev": "2.0.0", | ||
"turbo": "1.13.3", | ||
"typescript": "5.4.5", | ||
"vitest": "1.6.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"prettier": "@zkchainhub/prettier-config" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { describe, expect, test } from "vitest"; | ||
|
||
describe("exampleHandler", () => { | ||
test("Sample exampleHandler test", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import parentConfig from "@zkchainhub/eslint-config"; | ||
|
||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
export default [ | ||
...parentConfig, | ||
{ | ||
files: ["src/**/*.ts"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "_+" }], | ||
}, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.