-
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.
completing installation and delivering sources
- Loading branch information
Showing
69 changed files
with
6,161 additions
and
5 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
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,44 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z $1 ]]; then | ||
echo ERROR : give the name of your ludion environment | ||
echo example | ||
echo amplify_init prod | ||
exit 1 | ||
echo $1 > .stack_name | ||
fi | ||
|
||
set -e | ||
IFS='|' | ||
|
||
REACTCONFIG="{\ | ||
\"SourceDir\":\"src\",\ | ||
\"DistributionDir\":\"build\",\ | ||
\"BuildCommand\":\"npm run-script build\",\ | ||
\"StartCommand\":\"npm run-script start\"\ | ||
}" | ||
AWSCLOUDFORMATIONCONFIG="{\ | ||
\"configLevel\":\"project\",\ | ||
\"useProfile\":true,\ | ||
\"profileName\":\"default\"\ | ||
}" | ||
AMPLIFY="{\ | ||
\"projectName\":\"ludion\",\ | ||
\"envName\":\"test\",\ | ||
\"defaultEditor\":\"none\"\ | ||
}" | ||
FRONTEND="{\ | ||
\"frontend\":\"javascript\",\ | ||
\"framework\":\"react\",\ | ||
\"config\":$REACTCONFIG\ | ||
}" | ||
PROVIDERS="{\ | ||
\"awscloudformation\":$AWSCLOUDFORMATIONCONFIG\ | ||
}" | ||
|
||
amplify init \ | ||
--amplify $AMPLIFY \ | ||
--frontend $FRONTEND \ | ||
--providers $PROVIDERS \ | ||
--yes | ||
|
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,13 @@ | ||
#!/bin/bash | ||
set -e | ||
IFS='|' | ||
CODEGEN="{\ | ||
\"generateCode\":true,\ | ||
\"codeLanguage\":\"javascript\",\ | ||
\"fileNamePattern\":\"src/graphql/**/*.graphql\",\ | ||
\"generateDocs\":true,\ | ||
\"maxDepth\":2\ | ||
}" | ||
amplify push \ | ||
--codegen $CODEGEN \ | ||
--yes |
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,19 @@ | ||
/* eslint-disable */ | ||
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten. | ||
|
||
const awsmobile = { | ||
"aws_project_region": "__region__", | ||
"aws_appsync_graphqlEndpoint": "__GraphQLAPIEndpointOutput__", | ||
"aws_appsync_region": "__region__", | ||
"aws_appsync_authenticationType": "API_KEY", | ||
"aws_appsync_apiKey": "__GraphQLAPIKeyOutput__", | ||
"aws_appsync_dangerously_connect_to_http_endpoint_for_testing": true, | ||
"aws_cognito_identity_pool_id": "__IdentityPoolId__", | ||
"aws_cognito_region": "__region__", | ||
"aws_user_pools_id": "__UserPoolId__", | ||
"aws_user_pools_web_client_id": "34aqudgo3im9rkdqhgcg083k6p", | ||
"oauth": {} | ||
}; | ||
|
||
|
||
export default awsmobile; |
Oops, something went wrong.