Skip to content

Commit

Permalink
Things working
Browse files Browse the repository at this point in the history
  • Loading branch information
jolyndenning committed Jun 12, 2019
1 parent ccacf8d commit 3b4ea7e
Show file tree
Hide file tree
Showing 13 changed files with 10,301 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-typescript",
"@emotion/babel-preset-css-prop",
],
}
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"react-important-stuff",
"plugin:prettier/recommended"
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ typings/

# next.js build output
.next

dist/
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: node_js
node_js:
- node
script:
- npm run lint
- npm test
- npm run typescript
- npm run build
- echo "Folder name in Digital Ocean Spaces - $TRAVIS_COMMIT"
- mkdir -p dist/login/$TRAVIS_COMMIT
- mv dist/*.* dist/login/$TRAVIS_COMMIT/
deploy:
provider: s3
access_key_id: "$DIGITAL_OCEAN_SPACES_KEY_ID"
secret_access_key: "$DIGITAL_OCEAN_SPACES_ACCESS_KEY"
bucket: "$DIGITAL_OCEAN_SPACES_BUCKET"
endpoint: "$DIGITAL_OCEAN_SPACES_ENDPOINT"
cache-control: "max-age=31536000"
local_dir: dist
skip_cleanup: true
acl: public_read
on:
branch: master
after_deploy:
- echo "Updating import map to point to new version of @openmrs/login"
- curl -u $DEPLOYER_USERNAME:$DEPLOYER_PASSWORD -d '{ "service":"@openmrs/login","url":"https://spa-modules.nyc3.digitaloceanspaces.com/login/'$TRAVIS_COMMIT'/login.js" }' -X PATCH $DEPLOYER_HOST/services\?env=prod -H "Accept:application/json" -H "Content-Type:application/json" --fail
5 changes: 5 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"transform": {
"^.+\\.tsx?$": "babel-jest"
}
}
Loading

0 comments on commit 3b4ea7e

Please sign in to comment.