-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yarn -> pnpm, remove husky/lint-staged. add github action for linting (…
…#101) * Switched to pnpm to fix prettier issues * Upgraded tasks to use pnpm * fix pnpm setup * fixed package.json tasks * undo changes to package.json * Caching pnpm install * added lint github action. intentionally breaking zora contract ot test it * fix pnpm install * remove husky * fixed lint task * fix prettier check command * fix file
- Loading branch information
Showing
10 changed files
with
2,233 additions
and
2,079 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
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,39 @@ | ||
name: Lint | ||
on: [pull_request] | ||
|
||
jobs: | ||
inspect-storage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.13.2" | ||
|
||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 7 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Run prettier | ||
run: pnpm prettier:check |
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
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
{ | ||
"plugins": ["prettier-plugin-solidity"], | ||
"overrides": [ | ||
{ | ||
"files": "*.sol", | ||
|
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 |
---|---|---|
|
@@ -10,13 +10,13 @@ | |
"scripts": { | ||
"test": "forge test", | ||
"test-gas": "forge test --gas-report", | ||
"prettier:check": "prettier --check 'src/**/*.sol' 'test/**/*.sol' 'package/**/*.ts' 'wagmi.config.ts'", | ||
"prettier": "prettier --write 'src/**/*.sol' 'test/**/*.sol' 'package/**/*.ts' 'wagmi.config.ts'", | ||
"coverage": "forge coverage --report lcov", | ||
"write-gas-report": "forge test --gas-report > gasreport.ansi", | ||
"prepack": "node script/copy-deployed-contracts.mjs && yarn run wagmi && yarn bundle-configs && yarn build-ts && yarn copy-addresses-and-configs", | ||
"prepare": "husky install", | ||
"prepack": "node script/copy-deployed-contracts.mjs && pnpm wagmi && pnpm bundle-configs && pnpm build-ts && pnpm copy-addresses-and-configs", | ||
"build-ts": "tsup package/index.ts --format cjs --dts --sourcemap", | ||
"bundle-configs": "node script/bundle-chainConfigs.mjs && yarn prettier", | ||
"bundle-configs": "node script/bundle-chainConfigs.mjs && pnpm prettier:fix", | ||
"copy-addresses-and-configs": "cp -r addresses/ dist/addresses && cp -r chainConfigs/ dist/chainConfigs", | ||
"wagmi": "wagmi generate", | ||
"storage-inspect:check": "./script/storage-check.sh check ZoraCreator1155Impl ZoraCreator1155FactoryImpl", | ||
|
@@ -36,15 +36,11 @@ | |
"@wagmi/cli": "^1.0.1", | ||
"es-main": "^1.2.0", | ||
"glob": "^10.2.2", | ||
"husky": ">=6", | ||
"lint-staged": "^13.2.2", | ||
"listr2": "^6.4.2", | ||
"prettier": "^2.8.8", | ||
"prettier-plugin-solidity": "^1.1.1", | ||
"prettier-plugin-solidity": "^1.1.3", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.4" | ||
}, | ||
"lint-staged": { | ||
"*.{sol,json}": "prettier --write" | ||
} | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.