Skip to content

Commit 9d0667c

Browse files
committed
feat: initial commit
0 parents  commit 9d0667c

20 files changed

+16225
-0
lines changed

.eslintrc.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"settings": {
3+
"react": {
4+
"version": "16.12.0"
5+
}
6+
},
7+
"env": {
8+
"browser": true,
9+
"es6": true,
10+
"jest": true
11+
},
12+
"extends": [
13+
"eslint:recommended",
14+
"plugin:react/recommended"
15+
],
16+
"globals": {
17+
"Atomics": "readonly",
18+
"SharedArrayBuffer": "readonly",
19+
"process": true
20+
},
21+
"parserOptions": {
22+
"ecmaFeatures": {
23+
"jsx": true
24+
},
25+
"ecmaVersion": 2018,
26+
"sourceType": "module"
27+
},
28+
"plugins": [
29+
"react"
30+
],
31+
"rules": {
32+
}
33+
}

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
.idea/
4+
5+
# dependencies
6+
node_modules/
7+
.pnp/
8+
.pnp.js
9+
10+
# testing
11+
coverage
12+
13+
# production
14+
build/
15+
16+
# misc
17+
.DS_Store
18+
.env.local
19+
.env.development.local
20+
.env.test.local
21+
.env.production.local
22+
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
pacts/
28+
logs/

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: node_js
2+
node_js:
3+
- 10
4+
services:
5+
- docker
6+
env:
7+
global:
8+
- PACT_BROKER_BASE_URL=https://test.pact.dius.com.au
9+
- PACT_BROKER_USERNAME=dXfltyFMgNOFZAxr8io9wJ37iUpY42M
10+
- PACT_BROKER_PASSWORD=O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1
11+
script:
12+
- make

Makefile

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
PACTICIPANT := "pactflow-example-consumer"
2+
3+
all: test deploy
4+
5+
test:
6+
npm run test:pact
7+
8+
can_i_deploy:
9+
docker run --rm \
10+
-e PACT_BROKER_BASE_URL \
11+
-e PACT_BROKER_USERNAME \
12+
-e PACT_BROKER_PASSWORD \
13+
pactfoundation/pact-cli:latest \
14+
broker can-i-deploy \
15+
--pacticipant ${PACTICIPANT} \
16+
--version ${TRAVIS_COMMIT} \
17+
--to
18+
19+
deploy_app:
20+
echo "Deploying to prod"
21+
22+
tag_as_prod:
23+
docker run --rm \
24+
-e PACT_BROKER_BASE_URL \
25+
-e PACT_BROKER_USERNAME \
26+
-e PACT_BROKER_PASSWORD \
27+
pactfoundation/pact-cli:latest \
28+
broker create-version-tag \
29+
--pacticipant ${PACTICIPANT} \
30+
--version ${TRAVIS_COMMIT} \
31+
--tag prod
32+
33+
deploy: can_i_deploy deploy_app tag_as_prod

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Example Consumer

0 commit comments

Comments
 (0)