@candlerip/shared3 0.0.18 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/_devops/docker/docker-publish.sh +1 -1
  2. package/package.json +1 -1
  3. package/src/environment/environment-variables/domains/index.d.ts +1 -1
  4. package/src/project/index.d.ts +3 -3
  5. package/src/project/index.js +3 -3
  6. package/src/project/project-config/domains/backend-init-project-config/index.d.ts +2 -0
  7. package/src/project/project-config/domains/backend-project-config/index.d.ts +2 -0
  8. package/src/project/project-config/domains/cache-service-project-config/index.d.ts +2 -0
  9. package/src/project/project-config/domains/dictionary-service-poject-config/index.d.ts +2 -0
  10. package/src/project/project-config/domains/index.d.ts +5 -0
  11. package/src/project/project-config/domains/index.js +5 -0
  12. package/src/project/project-config/domains/redis-project-config/index.d.ts +2 -0
  13. package/src/project/project-config-name/configs/index.d.ts +1 -0
  14. package/src/project/project-config-name/configs/index.js +7 -0
  15. package/src/project/project-config-name/domains/index.d.ts +2 -0
  16. package/src/project/project-name/configs/index.d.ts +1 -0
  17. package/src/project/project-name/configs/index.js +1 -0
  18. package/src/project/project-name/domains/index.d.ts +2 -0
  19. package/src/project/{config → project-name}/index.d.ts +1 -0
  20. package/src/project/{config → project-name}/index.js +1 -0
  21. package/src/project/config/domains/backend-init-config/index.d.ts +0 -2
  22. package/src/project/config/domains/cache-service-config/index.d.ts +0 -2
  23. package/src/project/config/domains/dictionary-service-config/index.d.ts +0 -2
  24. package/src/project/config/domains/index.d.ts +0 -4
  25. package/src/project/config/domains/index.js +0 -4
  26. package/src/project/config/domains/redis-config/index.d.ts +0 -2
  27. package/src/project/config-name/domains/config-name/index.d.ts +0 -2
  28. package/src/project/config-name/domains/config-name-type-map/index.d.ts +0 -7
  29. package/src/project/config-name/domains/index.d.ts +0 -2
  30. package/src/project/config-name/domains/index.js +0 -2
  31. package/src/project/sub-project/index.d.ts +0 -3
  32. package/src/project/sub-project/index.js +0 -3
  33. package/src/project/sub-project/sub-project-name/configs/index.d.ts +0 -1
  34. package/src/project/sub-project/sub-project-name/configs/index.js +0 -1
  35. package/src/project/sub-project/sub-project-name/domains/index.d.ts +0 -2
  36. /package/src/project/{config-name/domains/config-name → project-config/domains/backend-init-project-config}/index.js +0 -0
  37. /package/src/project/{config/domains/backend-init-config → project-config/domains/backend-project-config}/index.js +0 -0
  38. /package/src/project/{config/domains/cache-service-config → project-config/domains/cache-service-project-config}/index.js +0 -0
  39. /package/src/project/{config/domains/dictionary-service-config → project-config/domains/dictionary-service-poject-config}/index.js +0 -0
  40. /package/src/project/{config/domains/redis-config → project-config/domains/redis-project-config}/index.js +0 -0
  41. /package/src/project/{config-name → project-config}/index.d.ts +0 -0
  42. /package/src/project/{config-name → project-config}/index.js +0 -0
  43. /package/src/project/{config-name/domains/config-name-type-map → project-config-name/domains}/index.js +0 -0
  44. /package/src/project/{sub-project/sub-project-name → project-config-name}/index.d.ts +0 -0
  45. /package/src/project/{sub-project/sub-project-name → project-config-name}/index.js +0 -0
  46. /package/src/project/{sub-project/sub-project-name → project-name}/domains/index.js +0 -0
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/bash
2
2
 
3
- docker build -t reveszimre/$1 .
3
+ docker build -t reveszimre/$1 --build-arg ENVIRONMENT_MODE=production .
4
4
  docker push reveszimre/$1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,8 +1,8 @@
1
1
  export interface EnvironmentVariables {
2
+ APP_NAME: string;
2
3
  DATABASE_URL: string;
3
4
  DICTIONARY_SERVICE_PORT: number;
4
5
  DOMAIN_NAME: string;
5
- PROJECT_NAME: string;
6
6
  REDIS_PORT: number;
7
7
  REDIS_PWD: string;
8
8
  REDIS_URL: string;
@@ -1,3 +1,3 @@
1
- export * from './config/index.js';
2
- export * from './config-name/index.js';
3
- export * from './sub-project/index.js';
1
+ export * from './project-config/index.js';
2
+ export * from './project-config-name/index.js';
3
+ export * from './project-name/index.js';
@@ -1,3 +1,3 @@
1
- export * from './config/index.js';
2
- export * from './config-name/index.js';
3
- export * from './sub-project/index.js';
1
+ export * from './project-config/index.js';
2
+ export * from './project-config-name/index.js';
3
+ export * from './project-name/index.js';
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type BackendInitProjectConfig = Pick<EnvironmentVariables, 'APP_NAME' | 'DOMAIN_NAME' | 'S3_IMAGES_BUCKET_NAME'>;
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type BackendProjectConfig = Pick<EnvironmentVariables, 'REDIS_PORT'>;
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type CacheServiceProjectConfig = Pick<EnvironmentVariables, 'DATABASE_URL' | 'REDIS_PWD' | 'REDIS_URL'>;
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type DictionaryServiceProjectConfig = Pick<EnvironmentVariables, 'DICTIONARY_SERVICE_PORT'>;
@@ -0,0 +1,5 @@
1
+ export * from './backend-project-config/index.js';
2
+ export * from './backend-init-project-config/index.js';
3
+ export * from './cache-service-project-config/index.js';
4
+ export * from './dictionary-service-poject-config/index.js';
5
+ export * from './redis-project-config/index.js';
@@ -0,0 +1,5 @@
1
+ export * from './backend-project-config/index.js';
2
+ export * from './backend-init-project-config/index.js';
3
+ export * from './cache-service-project-config/index.js';
4
+ export * from './dictionary-service-poject-config/index.js';
5
+ export * from './redis-project-config/index.js';
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type RedisProjectConfig = Pick<EnvironmentVariables, 'REDIS_PORT' | 'REDIS_PWD'>;
@@ -0,0 +1 @@
1
+ export declare const PROJECT_CONFIG_NAMES: readonly ["backend-init-project-config", "backend-project-config", "dictionary-service-project-config", "cache-service-project-config", "redis-project-config"];
@@ -0,0 +1,7 @@
1
+ export const PROJECT_CONFIG_NAMES = [
2
+ 'backend-init-project-config',
3
+ 'backend-project-config',
4
+ 'dictionary-service-project-config',
5
+ 'cache-service-project-config',
6
+ 'redis-project-config',
7
+ ];
@@ -0,0 +1,2 @@
1
+ import { PROJECT_CONFIG_NAMES } from '../configs/index.js';
2
+ export type ProjectConfigName = (typeof PROJECT_CONFIG_NAMES)[number];
@@ -0,0 +1 @@
1
+ export declare const PROJECT_NAMES: readonly ["backend-init", "backend", "dictionary-service", "cache-service", "config", "redis", "shared", "shared-aws"];
@@ -0,0 +1 @@
1
+ export const PROJECT_NAMES = ['backend-init', 'backend', 'dictionary-service', 'cache-service', 'config', 'redis', 'shared', 'shared-aws'];
@@ -0,0 +1,2 @@
1
+ import { PROJECT_NAMES } from '../configs/index.js';
2
+ export type ProjectName = (typeof PROJECT_NAMES)[number];
@@ -1 +1,2 @@
1
+ export * from './configs/index.js';
1
2
  export * from './domains/index.js';
@@ -1 +1,2 @@
1
+ export * from './configs/index.js';
1
2
  export * from './domains/index.js';
@@ -1,2 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- export type BackendInitConfig = Pick<EnvironmentVariables, 'DOMAIN_NAME' | 'PROJECT_NAME' | 'S3_IMAGES_BUCKET_NAME'>;
@@ -1,2 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- export type CacheServiceConfig = Pick<EnvironmentVariables, 'DATABASE_URL' | 'REDIS_PWD' | 'REDIS_URL'>;
@@ -1,2 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- export type DictionaryServiceConfig = Pick<EnvironmentVariables, 'DICTIONARY_SERVICE_PORT'>;
@@ -1,4 +0,0 @@
1
- export * from './backend-init-config/index.js';
2
- export * from './cache-service-config/index.js';
3
- export * from './dictionary-service-config/index.js';
4
- export * from './redis-config/index.js';
@@ -1,4 +0,0 @@
1
- export * from './backend-init-config/index.js';
2
- export * from './cache-service-config/index.js';
3
- export * from './dictionary-service-config/index.js';
4
- export * from './redis-config/index.js';
@@ -1,2 +0,0 @@
1
- import { EnvironmentVariables } from '../../../../environment/index.js';
2
- export type RedisConfig = Pick<EnvironmentVariables, 'REDIS_PORT' | 'REDIS_PWD'>;
@@ -1,2 +0,0 @@
1
- import { SubProjectName } from '../../../sub-project/index.js';
2
- export type ConfigName = Exclude<SubProjectName, 'backend' | 'config'>;
@@ -1,7 +0,0 @@
1
- import { BackendInitConfig, CacheServiceConfig, DictionaryServiceConfig, RedisConfig } from '../../../sub-project/index.js';
2
- export type ConfigNameTypeMap = {
3
- 'backend-init': BackendInitConfig;
4
- 'cache-service': CacheServiceConfig;
5
- 'dictionary-service': DictionaryServiceConfig;
6
- redis: RedisConfig;
7
- };
@@ -1,2 +0,0 @@
1
- export * from './config-name/index.js';
2
- export * from './config-name-type-map/index.js';
@@ -1,2 +0,0 @@
1
- export * from './config-name/index.js';
2
- export * from './config-name-type-map/index.js';
@@ -1,3 +0,0 @@
1
- export * from '../config/index.js';
2
- export * from '../config-name/index.js';
3
- export * from './sub-project-name/index.js';
@@ -1,3 +0,0 @@
1
- export * from '../config/index.js';
2
- export * from '../config-name/index.js';
3
- export * from './sub-project-name/index.js';
@@ -1 +0,0 @@
1
- export declare const SUB_PROJECT_NAMES: readonly ["backend-init", "backend", "dictionary-service", "cache-service", "config", "redis"];
@@ -1 +0,0 @@
1
- export const SUB_PROJECT_NAMES = ['backend-init', 'backend', 'dictionary-service', 'cache-service', 'config', 'redis'];
@@ -1,2 +0,0 @@
1
- import { SUB_PROJECT_NAMES } from '../configs/index.js';
2
- export type SubProjectName = (typeof SUB_PROJECT_NAMES)[number];