-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor-packages
- Loading branch information
Showing
19 changed files
with
16,833 additions
and
14,062 deletions.
There are no files selected for viewing
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,35 @@ | ||
name: Lint, Build & Test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.ref_name }}-build-test-scan | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
name: Lint, Build & Test | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: "yarn" | ||
|
||
- name: Install | ||
run: yarn install:all | ||
|
||
- name: Lint | ||
run: yarn run lint | ||
|
||
- name: Build | ||
run: yarn run 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.16.1 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
module.exports = { | ||
extends: ["custom/react"], | ||
ignorePatterns: ["src/hardhat/**/*"], | ||
}; |
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 @@ | ||
node_modules | ||
.env | ||
coverage | ||
coverage.json | ||
typechain | ||
typechain-types | ||
|
||
# Hardhat files | ||
cache | ||
artifacts | ||
src/hardhat | ||
|
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,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
contract Counter { | ||
uint256 public count; | ||
|
||
event CounterUpdated(uint256 newValue); | ||
|
||
constructor() { | ||
count = 0; | ||
} | ||
|
||
function increment() public { | ||
count += 1; | ||
emit CounterUpdated(count); | ||
} | ||
|
||
function incrementBy(uint256 value) public { | ||
count += value; | ||
emit CounterUpdated(count); | ||
} | ||
} |
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,11 @@ | ||
import { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: "0.8.19", | ||
typechain: { | ||
outDir: "src/hardhat", | ||
}, | ||
}; | ||
|
||
export default 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
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 |
---|---|---|
@@ -1,29 +1,20 @@ | ||
{ | ||
"private": true, | ||
"workspaces": [ | ||
"apps/*", | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"clean": "turbo run clean; rm -rf node_modules .turbo", | ||
"build:deps": "turbo build --no-daemon --filter='@vechain/**'", | ||
"install:all": "pnpm i && pnpm run build:deps", | ||
"reinstall": "pnpm clean && pnpm i && pnpm run build:deps", | ||
"build": "turbo run build", | ||
"build:deps": "turbo build --no-daemon --filter='@vechain/*'", | ||
"clean": "npx turbo@latest run clean && rm -rf node_modules .turbo", | ||
"dev": "turbo run dev --no-daemon", | ||
"start": "turbo run start --no-daemon", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"install:all": "yarn && yarn run build:deps", | ||
"lint": "turbo run lint", | ||
"build": "turbo run build", | ||
"test": "turbo run test", | ||
"prepare": "husky install" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^18.0.0", | ||
"commitlint": "^18.0.0", | ||
"eslint": "^8.4.1", | ||
"eslint-config-custom": "workspace:*", | ||
"eslint-plugin-prefer-arrow": "1.2.3", | ||
"husky": "^8.0.0", | ||
"lint-staged": "^15.0.2", | ||
"prettier": "^2.5.1", | ||
"tsconfig": "workspace:*", | ||
"turbo": "latest" | ||
"prepare": "husky install", | ||
"reinstall": "yarn clean && yarn && yarn run build:deps", | ||
"test": "turbo run test" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
|
@@ -39,5 +30,17 @@ | |
"eslint" | ||
] | ||
}, | ||
"packageManager": "[email protected]" | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^18.0.0", | ||
"commitlint": "^18.0.0", | ||
"eslint": "^8.4.1", | ||
"eslint-config-custom": "*", | ||
"eslint-plugin-prefer-arrow": "1.2.3", | ||
"husky": "^8.0.0", | ||
"lint-staged": "^15.0.2", | ||
"prettier": "^2.5.1", | ||
"tsconfig": "*", | ||
"turbo": "latest" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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,10 +1,10 @@ | ||
{ | ||
"name": "eslint-config-custom", | ||
"license": "MIT", | ||
"version": "0.0.0", | ||
"private": true, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@vercel/style-guide": "^4.0.2", | ||
"eslint-config-turbo": "^1.10.12" | ||
"eslint-config-turbo": "latest" | ||
} | ||
} |
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
Oops, something went wrong.