@candlerip/shared3 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/bash
2
+
3
+ docker build -t reveszimre/$2 .
4
+ docker push reveszimre/$2
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ EC2_IP=$(aws ec2 describe-instances \
5
+ --filters "Name=tag:Name,Values=backend" \
6
+ --query 'Reservations[*].Instances[*].[PublicIpAddress]' \
7
+ --output text)
8
+ ssh -o StrictHostKeyChecking=no ubuntu@$EC2_IP "npm run prod $2"
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
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",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "scripts": {
19
19
  "pub": "./devops/publish.sh",
20
- "start": "sh ./_devops/typescript/tsc-watch.sh"
20
+ "start": "./_devops/typescript/tsc-watch.sh"
21
21
  },
22
22
  "dependencies": {
23
23
  "@types/node": "^22.5.5",
@@ -0,0 +1 @@
1
+ export * from './region/index.js';
@@ -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,2 @@
1
+ import { AwsRegion } from '../../domains/index.js';
2
+ export declare const DEFAULT_AWS_REGION: AwsRegion;
@@ -0,0 +1 @@
1
+ export const DEFAULT_AWS_REGION = 'eu-central-1';
@@ -0,0 +1,2 @@
1
+ export * from './aws-regions/index.js';
2
+ export * from './default-aws-region/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './aws-regions/index.js';
2
+ export * from './default-aws-region/index.js';
@@ -0,0 +1,2 @@
1
+ import { AWS_REGIONS } from '../configs/index.js';
2
+ export type AwsRegion = (typeof AWS_REGIONS)[number];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './configs/index.js';
2
+ export * from './domains/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs/index.js';
2
+ export * from './domains/index.js';
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './aws/index.js';
1
2
  export * from './environment/index.js';
2
3
  export * from './error/index.js';
3
4
  export * from './project/index.js';
package/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './aws/index.js';
1
2
  export * from './environment/index.js';
2
3
  export * from './error/index.js';
3
4
  export * from './project/index.js';
@@ -0,0 +1,2 @@
1
+ import { SubProjectName } from '../../../sub-project/index.js';
2
+ export type ConfigName = Exclude<SubProjectName, 'config'>;
@@ -0,0 +1,5 @@
1
+ import { BackendInitConfig, DictionaryServiceConfig } from '../../../sub-project/index.js';
2
+ export type ConfigNameTypeMap = {
3
+ 'backend-init': BackendInitConfig;
4
+ 'dictionary-service': DictionaryServiceConfig;
5
+ };
@@ -1,2 +1,2 @@
1
- import { SubProjectName } from '../../sub-project/index.js';
2
- export type ConfigName = Exclude<SubProjectName, 'config'>;
1
+ export * from './config-name/index.js';
2
+ export * from './config-name-type-map/index.js';
@@ -1 +1,2 @@
1
- export {};
1
+ export * from './config-name/index.js';
2
+ export * from './config-name-type-map/index.js';
@@ -1,2 +0,0 @@
1
- node_modules
2
- .gitignore
@@ -1,12 +0,0 @@
1
- #!/usr/bin/bash
2
-
3
- CURR_DIR=$(dirname $(realpath "$0"))
4
-
5
- if [[ $1 = 'init' ]]; then
6
- cp $CURR_DIR/.dockerignore.sample .dockerignore
7
- fi
8
-
9
- if [[ $1 = 'publish' ]]; then
10
- docker build -t reveszimre/$2 .
11
- docker push reveszimre/$2
12
- fi
@@ -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