create-wirejs-deploy-amplify-basic 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ version: 1
2
+ backend:
3
+ phases:
4
+ build:
5
+ commands:
6
+ - npx wirejs-deploy-amplify-basic@latest prebuild
7
+ - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
8
+ - npx ampx generate outputs --branch $AWS_BRANCH --app-id $AWS_APP_ID
9
+ frontend:
10
+ phases:
11
+ build:
12
+ commands:
13
+ - npx wirejs-deploy-amplify-basic@latest inject-backend
14
+ - npm run build
15
+ - npx wirejs-deploy-amplify-basic@latest build-hosting-artifacts
16
+ artifacts:
17
+ baseDirectory: .amplify-hosting
18
+ files:
19
+ - '**/*'
20
+ cache:
21
+ paths:
22
+ - node_modules/**/*
package/bin.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ const copy = require('recursive-copy');
4
+
5
+ (async () => {
6
+ console.log("Writing Amplify configuration.");
7
+ await copy(`${__dirname}/assets/amplify.yml`, `./amplify.yml`);
8
+
9
+ console.log(`
10
+ Amplify configuration written. Your next steps:
11
+
12
+ 1. Commit the new configuration file:
13
+
14
+ git add .
15
+ git commit -m "added amplify deployment config"
16
+ git push
17
+
18
+ 2. Visit hhttps://us-east-2.console.aws.amazon.com/amplify/create/add-repo
19
+ 3. Add your repository info and continue the setup.
20
+
21
+ After setup, Amplify will act as your CI/CD platform and deploy your app.
22
+
23
+ Happy building!
24
+ `);
25
+
26
+ })();
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "create-wirejs-deploy-amplify-basic",
3
+ "version": "1.0.0",
4
+ "description": "Initializes very basic Amplify deployment configuration.",
5
+ "author": "Jon Wire",
6
+ "license": "MIT",
7
+ "bin": {
8
+ "create-wirejs-deploy-amplify-basic": "./bin.js"
9
+ },
10
+ "dependencies": {
11
+ "recursive-copy": "^2.0.14"
12
+ },
13
+ "scripts": {
14
+ "build": "echo \"Nothing to build\"",
15
+ "clean": "echo \"Nothing to clean\""
16
+ },
17
+ "files": [
18
+ "bin.js",
19
+ "package.json",
20
+ "assets/*"
21
+ ]
22
+ }