forked from jolyndenning/openmrs-esm-hackathon-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccacf8d
commit 3b4ea7e
Showing
13 changed files
with
10,301 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": [ | ||
"react-important-stuff", | ||
"plugin:prettier/recommended" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,5 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"transform": { | ||
"^.+\\.tsx?$": "babel-jest" | ||
} | ||
} |
Oops, something went wrong.