Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove pretest and lint scripts from packages #2243

Merged
merged 3 commits into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions deprecated/core-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"test": "cross-env CORE_ENV=test jest --runInBand --forceExit",
"test:coverage": "cross-env CORE_ENV=test jest --coverage --coveragePathIgnorePatterns='/(defaults.ts|index.ts)$' --runInBand --forceExit",
"test:debug": "cross-env CORE_ENV=test node --inspect-brk ../../node_modules/.bin/jest --runInBand",
Expand Down
2 changes: 0 additions & 2 deletions deprecated/core-logger-winston/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"test": "cross-env CORE_ENV=test jest --runInBand --forceExit",
"test:coverage": "cross-env CORE_ENV=test jest --coverage --coveragePathIgnorePatterns='/(defaults.ts|index.ts)$' --runInBand --forceExit",
"test:debug": "cross-env CORE_ENV=test node --inspect-brk ../../node_modules/.bin/jest --runInBand",
Expand Down
2 changes: 0 additions & 2 deletions deprecated/core-snapshots-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@
"publish:rc": "npm publish --tag rc",
"publish:latest": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"prepack": "oclif-dev manifest && npm shrinkwrap",
"postpack": "rm -f oclif.manifest.json",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"debug": "node --inspect-brk ./dist/index.js",
"dump": "yarn snapshot dump",
"dump:mainnet": "yarn snapshot dump --network mainnet",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bootstrap": "yarn lerna bootstrap",
"clean": "yarn lerna clean --yes",
"build": "yarn lerna run build",
"lint": "yarn lerna run lint",
"lint": "./node_modules/tslint/bin/tslint -c ./tslint.json './packages/**/*/src/**/*.ts' --fix",
"format": "yarn lint && yarn prettier",
"prettier": "prettier --write \"./*.{ts,js,json,md}\" \"./packages/**/*.{ts,js,json,md}\"",
"lint:tests": "./node_modules/tslint/bin/tslint -c ./tslint.json '__tests__/**/*.ts' --fix",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-interfaces": "^2.2.1",
Expand Down
1 change: 0 additions & 1 deletion packages/core-database-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"build": "yarn clean && yarn copy && yarn compile",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../"
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/core-database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-elasticsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-error-tracker-bugsnag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-error-tracker-sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-event-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"eventemitter3": "^3.1.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/core-forger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-http-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/crypto": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-jest-matchers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-json-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-logger-pino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
"publish:rc": "npm publish --tag rc",
"publish:stable": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-interfaces": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-interfaces": "^2.2.1"
Expand Down
3 changes: 1 addition & 2 deletions packages/core-p2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-snapshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn copy && yarn compile",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"clean": "del dist",
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"copy": "cd src/ && cpy './**/*.sql' --parents ../dist/ && cd ../"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-tester-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-utils": "^2.2.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-transaction-pool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
"publish:rc": "npm publish --tag rc",
"publish:stable": "npm publish --tag latest",
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && tsc",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-interfaces": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/core-vote-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile && cp -r src/templates dist/templates",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/core-webhooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix"
"clean": "del dist"
},
"dependencies": {
"@arkecosystem/core-container": "^2.2.1",
Expand Down
2 changes: 0 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
},
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"prepack": "oclif-dev manifest && npm shrinkwrap",
"postpack": "rm -f oclif.manifest.json",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && yarn compile && yarn copy",
"build:watch": "yarn clean && yarn copy && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"copy": "cd ./src && cpy './config' '../dist/' --parents && cd ..",
"debug:start": "node --inspect-brk yarn ark core:run",
"debug:relay": "node --inspect-brk yarn ark relay:run",
Expand Down
2 changes: 0 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
],
"scripts": {
"prepublishOnly": "yarn build",
"pretest": "yarn lint && yarn build",
"compile": "../../node_modules/typescript/bin/tsc",
"build": "yarn clean && tsc",
"build:watch": "yarn clean && yarn compile -w",
"clean": "del dist",
"lint": "../../node_modules/tslint/bin/tslint -c ../../tslint.json 'src/**/*.ts' --fix",
"bundle": "rimraf dist && cross-env NODE_ENV=production webpack --config build/webpack.config.js"
},
"dependencies": {
Expand Down