@candlerip/shared3 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/_devops/docker/docker-publish.sh +4 -0
- package/_devops/ec2/ec2-deploy.sh +8 -0
- package/package.json +3 -3
- package/src/aws/index.d.ts +1 -0
- package/src/aws/index.js +1 -0
- package/src/aws/region/configs/aws-regions/index.d.ts +1 -0
- package/src/aws/region/configs/aws-regions/index.js +1 -0
- package/src/aws/region/configs/default-aws-region/index.d.ts +2 -0
- package/src/aws/region/configs/default-aws-region/index.js +1 -0
- package/src/aws/region/configs/index.d.ts +2 -0
- package/src/aws/region/configs/index.js +2 -0
- package/src/aws/region/domains/index.d.ts +2 -0
- package/src/aws/region/domains/index.js +1 -0
- package/src/aws/region/index.d.ts +2 -0
- package/src/aws/region/index.js +2 -0
- package/src/environment/environment-variables/domains/index.d.ts +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/project/config/domains/backend-init-config/index.d.ts +1 -1
- package/_devops/docker/.dockerignore.sample +0 -2
- package/_devops/docker/docker.sh +0 -12
- package/_devops/ec2/ec2.sh +0 -10
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@candlerip/shared3",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.12",
|
4
4
|
"type": "module",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"bin": {
|
7
7
|
"crs-cdk-deploy": "./_devops/cdk/cdk-deploy.sh",
|
8
|
-
"crs-docker": "./_devops/docker/docker.sh",
|
9
|
-
"crs-ec2": "./_devops/ec2/ec2.sh",
|
8
|
+
"crs-docker-publish": "./_devops/docker/docker-publish.sh",
|
9
|
+
"crs-ec2-deploy": "./_devops/ec2/ec2-deploy.sh",
|
10
10
|
"crs-eslint": "./_devops/eslint/eslint.sh",
|
11
11
|
"crs-git-push": "./_devops/git/git-push.sh",
|
12
12
|
"crs-npm-patch-version": "./_devops/npm/npm-patch-version.sh",
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './region/index.js';
|
package/src/aws/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './region/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const AWS_REGIONS: readonly ["eu-central-1", "us-east-1"];
|
@@ -0,0 +1 @@
|
|
1
|
+
export const AWS_REGIONS = ['eu-central-1', 'us-east-1'];
|
@@ -0,0 +1 @@
|
|
1
|
+
export const DEFAULT_AWS_REGION = 'eu-central-1';
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import { EnvironmentVariables } from '../../../../environment/index.js';
|
2
|
-
export type BackendInitConfig = Pick<EnvironmentVariables, 'PROJECT_NAME' | 'S3_IMAGES_BUCKET_NAME'>;
|
2
|
+
export type BackendInitConfig = Pick<EnvironmentVariables, 'DOMAIN_NAME' | 'PROJECT_NAME' | 'S3_IMAGES_BUCKET_NAME'>;
|
package/_devops/docker/docker.sh
DELETED
package/_devops/ec2/ec2.sh
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
if [[ $1 = 'deploy' ]]; then
|
5
|
-
EC2_IP=$(aws ec2 describe-instances \
|
6
|
-
--filters "Name=tag:Name,Values=backend" \
|
7
|
-
--query 'Reservations[*].Instances[*].[PublicIpAddress]' \
|
8
|
-
--output text)
|
9
|
-
ssh -o StrictHostKeyChecking=no ubuntu@$EC2_IP "npm run prod $2"
|
10
|
-
fi
|