-
Notifications
You must be signed in to change notification settings - Fork 30
/
package.json
69 lines (69 loc) · 4.78 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "pact",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test:web:consumer": "jest consumer-web/consumer-contract.spec.js",
"can:i:deploy:consumer": "pact-broker can-i-deploy --pacticipant WebConsumer --version=$GITHUB_SHA --to-environment production",
"record:web:consumer:deployment": "pact-broker record-deployment --pacticipant WebConsumer --version $GITHUB_SHA --environment production",
"publish:pact": "pact-broker publish ./pacts --consumer-app-version=$GITHUB_SHA --branch=$GITHUB_BRANCH --broker-base-url=$PACT_BROKER_BASE_URL --broker-token=$PACT_BROKER_TOKEN",
"start:provider": "cross-env PORT=3001 node provider/provider-service.js",
"test:provider": "jest provider/provider-contract.spec.js --testTimeout=20000 --forceExit",
"integration:test:provider": "jest provider/integration-tests/",
"can:i:deploy:provider": "pact-broker can-i-deploy --pacticipant MoviesAPI --version=$GITHUB_SHA --to-environment production",
"record:provider:deployment": "pact-broker record-deployment --pacticipant MoviesAPI --version $GITHUB_SHA --environment production",
"start:graphql:server": "npm run start:provider & node graphql/provider/graphql-server.js",
"test:graphql:consumer": "jest graphql/consumer/graphql-client-contract.spec.js",
"can:i:deploy:graphql:consumer": "pact-broker can-i-deploy --pacticipant GraphQLConsumer --version=$GITHUB_SHA --to-environment production",
"record:graphql:consumer:deployment": "pact-broker record-deployment --pacticipant GraphQLConsumer --version $GITHUB_SHA --environment production",
"test:graphql:provider": "npm run start:graphql:server & jest graphql/provider/graphql-server-contract.spec.js --testTimeout=20000",
"can:i:deploy:graphql:provider": "pact-broker can-i-deploy --pacticipant GraphQLProvider --version=$GITHUB_SHA --to-environment production",
"record:graphql:provider:deployment": "pact-broker record-deployment --pacticipant GraphQLProvider --version $GITHUB_SHA --environment production",
"start:kafka": "docker compose -f ./events/kafka-cluster.yml up -d",
"produce:kafka:message": "node events/event-producer/index.js",
"consume:kafka:message": "node events/consumer-event/server.js",
"test:event:consumer": "jest ./events/consumer-event/src/movies/movie.handler.pact.test.js",
"test:event:producer": "jest --testTimeout 30000 ./events/event-producer/src/movie.event.pact.test.js",
"start:bi:web": "node consumer-bi-directional/index.js",
"bi:consumer:cy:open": "cypress open",
"bi:consumer:cy:run": "cypress run",
"bi:consumer:cy:publish": "pact-broker publish ./cypress/pacts --consumer-app-version=0.0.1 --branch=bi-directional-chapter --broker-base-url=$PACT_BROKER_BASE_URL --broker-token=$PACT_BROKER_TOKEN",
"bi:can:i:deploy:consumer": "pact-broker can-i-deploy --pacticipant BiWebConsumer --version=0.0.1 --to-environment production",
"bi:provider:dredd": "dredd",
"bi:swagger": "curl -X GET 'http://localhost:3001/swagger.json' > ./output/movies-api.json",
"prebi:provider:publish:dredd:contract": "npm run bi:swagger",
"bi:provider:publish:dredd:contract": "pactflow publish-provider-contract ./output/movies-api.json --provider BiDreddMoviesAPI --provider-app-version $(npx -y absolute-version) --branch $(git rev-parse --abbrev-ref HEAD) --content-type application/json --verification-exit-code=0 --verification-results ./output/dredd-report.md --verification-results-content-type text/plain --verifier dredd",
"bi:provider:newman": "newman run ./provider/postman-tests/chapter-11.postman_collection.json -r cli,json --reporter-json-export ./output/newman-report.json",
"prebi:provider:publish:postman:contract": "npm run bi:swagger",
"bi:provider:publish:postman:contract": "pactflow publish-provider-contract ./output/movies-api.json --provider BiPostmanMoviesAPI --provider-app-version $(npx -y absolute-version) --branch $(git rev-parse --abbrev-ref HEAD) --content-type application/json --verification-exit-code=0 --verification-results ./output/newman-report.json --verification-results-content-type json --verifier postman"
},
"author": "",
"license": "ISC",
"dependencies": {
"@apollo/client": "3.8.8",
"@apollo/datasource-rest": "6.2.2",
"@apollo/server": "4.9.5",
"axios": "1.5.1",
"cors": "2.8.5",
"express": "4.18.2",
"graphql": "16.8.1",
"graphql-tag": "2.12.6",
"joi": "17.10.2",
"kafkajs": "2.2.4",
"react": "18.2.0",
"swagger-jsdoc": "6.2.8",
"swagger-ui-express": "5.0.0",
"uuid": "9.0.1"
},
"devDependencies": {
"@pact-foundation/pact": "12.1.0",
"@pactflow/pact-cypress-adapter": "1.3.0",
"cross-env": "7.0.3",
"cypress": "13.7.3",
"dredd": "14.1.0",
"jest": "29.7.0",
"newman": "6.1.2",
"supertest": "6.3.4"
}
}