Commit 5f2e00a9 authored by Georgios Konstantopoulos's avatar Georgios Konstantopoulos Committed by GitHub

perf: improve contracts build time (#24)

* perf: improve contracts build time

* chore: clean tsconfig.buildinfo

* ci: try running CI
parent 86f5ace2
name: optimism - lint, test
name: typescript / contracts
on:
push:
branches:
- master
paths:
- 'packages/**'
- 'packages/**/*.sol'
- 'packages/**/*.ts'
pull_request:
branches:
- master
paths:
- 'packages/**'
- 'packages/**/*.sol'
- 'packages/**/*.ts'
jobs:
build-test-lint:
......
......@@ -9,7 +9,7 @@
"license": "MIT",
"scripts": {
"all": "yarn clean && yarn build && yarn test && yarn lint:fix && yarn lint",
"build": "yarn run build:contracts && yarn run build:contracts:ovm && yarn run build:typescript && yarn run build:copy && yarn run build:dump && yarn run build:typechain",
"build": "./scripts/build.sh",
"build:kovan": "yarn run build:contracts && yarn run build:typescript && yarn run build:copy && CHAIN_ID=69 yarn run build:dump && yarn run build:typechain",
"build:mainnet": "yarn run build:contracts && yarn run build:typescript && yarn run build:copy && CHAIN_ID=10 yarn run build:dump && yarn run build:typechain",
"build:typescript": "tsc -p ./tsconfig.build.json",
......@@ -28,7 +28,7 @@
"lint:typescript": "tslint --format stylish --project .",
"lint:fix": "yarn run lint:fix:typescript",
"lint:fix:typescript": "prettier --config prettier-config.json --write \"hardhat.config.ts\" \"{src,test}/**/*.ts\"",
"clean": "rm -rf ./dist ./artifacts ./artifacts-ovm ./cache ./cache-ovm",
"clean": "rm -rf ./dist ./artifacts ./artifacts-ovm ./cache ./cache-ovm ./tsconfig.build.tsbuildinfo",
"deploy": "./bin/deploy.js",
"serve": "./bin/serve_dump.sh"
},
......
yarn run build:typescript &
yarn run build:contracts:ovm &
yarn run build:contracts &
wait
yarn run build:copy:artifacts &
yarn run build:copy:artifacts:ovm &
yarn run build:copy:contracts &
wait
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment