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

Cleanup scripts #588

Merged
merged 10 commits into from
Jan 28, 2021
2 changes: 1 addition & 1 deletion examples/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Given an animal profile, recommends a suitable partner based on similar interest
## Running the tests

1. `npm install` (on the root project directory)
1. `npm run compile` (on the root project directory)
1. `npm run dist` (on the root project directory)
1. `npm run test:consumer` (from e2e directory) - Run consumer tests
1. `npm run test:publish` (from e2e directory) - Publish contracts to the broker
1. `npm run test:provider` (from e2e directory) - Run provider tests
Expand Down
206 changes: 206 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@
"main": "./pact.js",
"types": "./pact.d.ts",
"scripts": {
"build": "npm run lint && npm run compile",
"compile": "rimraf dist && tsc",
"clean": "rimraf docs dist dist-web coverage .nyc_output logs pacts jscpd.json",
"coverage": "nyc report --reporter=lcov",
"deploy:package": "tar -czf pactjs.tar.gz config dist src package.json README.md LICENSE",
"deploy:prepare": "npm i --production && npm run deploy:package",
TimothyJones marked this conversation as resolved.
Show resolved Hide resolved
"dist": "npm run compile && webpack --config ./config/webpack.web.config.js && cp package.json ./dist",
"dist": "tsc && webpack --config ./config/webpack.web.config.js && copyfiles package.json ./dist",
"jscpd": "jscpd -p src -r json -o jscpd.json",
"lint": "npm run lint:prettier:ts && npm run lint:prettier:js && tslint -c tslint.json '{src,test,examples}/**/*.ts' -e '**/node_modules/**/*.ts'",
"lint:fix": "prettier --parser typescript --write \"{src,test,examples}/**/*.ts\" && prettier --write \"{src,test,examples}/**/*.js\"",
"lint:prettier:ts": "prettier --parser typescript --check \"{src,test,examples}/**/*.ts\"",
"lint:prettier:js": "prettier --check \"{src,test,examples}/**/*.js\"",
"lint": "tslint -c tslint.json '{src,test,examples}/**/*.ts' -e '**/node_modules/**/*.ts'",
"lint:fix": "npm run lint -- --fix",
"format:base": "prettier \"{src,test,examples}/**/*.{ts,js}\"",
"format:fix": "npm run format:base -- --fix",
TimothyJones marked this conversation as resolved.
Show resolved Hide resolved
"format:check": "npm run format:base -- --check",
"postdist": "npm test",
"predist": "npm run clean && npm run lint && npm run jscpd",
"predist": "npm run clean && npm run format:check && npm run lint && npm run jscpd",
"release": "standard-version",
"test": "nyc --check-coverage --reporter=html --reporter=text-summary mocha",
"test:examples": "npm run test:e2e-examples && npm run test:jest-examples && npm run test:mocha-examples && npm run test:ava-examples && npm run test:ts-examples && npm run test:message-examples && npm run test:serverless-examples && npm run test:graphql-examples",
Expand Down Expand Up @@ -159,6 +156,7 @@
"babel-loader": "^8.0.6",
"chai": "~4.1.2",
"chai-as-promised": "^7.1.1",
"copyfiles": "^2.4.1",
"coveralls": "^3.0.2",
"enhanced-resolve": "^3.4.1",
"eslint": "^5.6.1",
Expand Down
1 change: 0 additions & 1 deletion scripts/ci/release-beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ echo "::set-output name=notes::$RELEASE_NOTES"
npm ci
"$SCRIPT_DIR"/build-and-test.sh
npm run release
npm run deploy:prepare

# Emit version to next step
VERSION="$("$SCRIPT_DIR/lib/get-version.sh")"
Expand Down
1 change: 0 additions & 1 deletion scripts/ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ echo "::set-output name=notes::$RELEASE_NOTES"
npm ci
"$SCRIPT_DIR"/build-and-test.sh
npm run release
npm run deploy:prepare

# Emit version to next step
VERSION="$("$SCRIPT_DIR/lib/get-version.sh")"
Expand Down