Skip to content

Commit

Permalink
build: add trivago plugin and move prettier to global package
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Oct 18, 2023
1 parent 5faeea6 commit 7230b8d
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 31 deletions.
27 changes: 27 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# directories
.coverage_artifacts
.coverage_cache
.coverage_contracts
artifacts
build
cache
coverage
deployments
dist
node_modules
typechain
types
imported
generated
*/js-client/test/integration/*.test.ts

# files
*.env
*.log
.DS_Store
.pnp.*
coverage.json
package-lock.json
pnpm-lock.yaml
yarn.lock
extended-schema.ts
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,14 @@
"**/matchstick-as",
"**/matchstick-as/**"
]
},
"scripts": {
"prettier:check": "prettier --check '**/*.{js,json,md,sol,ts,yml}'",
"prettier:write": "prettier --write '**/*.{js,json,md,sol,ts,yml}'"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"prettier-plugin-solidity": "^1.1.3",
"prettier": "^2.8.8"
}
}
10 changes: 0 additions & 10 deletions packages/contracts/.prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"dev": "yarn hardhat node --hostname 0.0.0.0",
"prepublishOnly": "yarn build && yarn build:npm",
"docgen": "hardhat docgen",
"formatting:check": "prettier '**/*.{json,sol,ts,js,md}' -c",
"formatting:write": "prettier '**/*.{json,sol,ts,js,md}' --write",
"clean": "rm -rf artifacts cache deployments typechain"
},
"repository": {
Expand Down Expand Up @@ -75,8 +73,6 @@
"hardhat-deploy": "^0.9.26",
"hardhat-gas-reporter": "^1.0.4",
"ipfs-http-client": "51.0.0",
"prettier": "^2.4.1",
"prettier-plugin-solidity": "^1.1.1",
"rollup": "^2.70.1",
"rollup-plugin-dts": "^4.2.0",
"solhint": "^3.3.6",
Expand Down
4 changes: 1 addition & 3 deletions packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"buildAndStart:dev": "docker-compose -f docker/docker-compose.yml up -d --build hardhat && sleep 30 && yarn create:local && yarn deploy:local",
"test:fast": "graph test",
"test": "graph test -r",
"coverage": "graph test -c",
"formatting:check": "prettier '**/*.{json,ts,js}' -c",
"formatting:write": "prettier '**/*.{json,ts,js}' --write"
"coverage": "graph test -c"
},
"devDependencies": {
"@graphprotocol/graph-cli": "0.52.0",
Expand Down
Loading

0 comments on commit 7230b8d

Please sign in to comment.