@fy-stack/fullstack-construct 0.0.124 → 0.0.126
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullstack-construct.d.ts","sourceRoot":"","sources":["../../src/lib/fullstack-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EACL,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"fullstack-construct.d.ts","sourceRoot":"","sources":["../../src/lib/fullstack-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EACL,KAAK,YAAY,EAKlB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAW,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAS3D,qBAAa,kBAAmB,SAAQ,SAAS;IACxC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACpC,GAAG,CAAC,EAAE,YAAY,CAAC;IACnB,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,gBAAgB,CAAC;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB;CA2GzE"}
|
|
@@ -11,12 +11,11 @@ const secret_construct_1 = require("@fy-stack/secret-construct");
|
|
|
11
11
|
const storage_construct_1 = require("@fy-stack/storage-construct");
|
|
12
12
|
const constructs_1 = require("constructs");
|
|
13
13
|
const types_1 = require("./types");
|
|
14
|
-
const deno_api_construct_1 = require("@fy-stack/app-construct/dist/lib/deno-api-construct");
|
|
15
14
|
const AppBuilds = {
|
|
16
15
|
[types_1.AppType.NEXT_APP_ROUTER]: app_construct_1.NextAppRouterConstruct,
|
|
17
|
-
[types_1.AppType.
|
|
18
|
-
[types_1.AppType.
|
|
19
|
-
[types_1.AppType.
|
|
16
|
+
[types_1.AppType.NODE_APP]: app_construct_1.NodeAppConstruct,
|
|
17
|
+
[types_1.AppType.NODE_API]: app_construct_1.NodeApiConstruct,
|
|
18
|
+
[types_1.AppType.IMAGE_APP]: app_construct_1.ImageAppConstruct,
|
|
20
19
|
};
|
|
21
20
|
class FullStackConstruct extends constructs_1.Construct {
|
|
22
21
|
auth;
|
|
@@ -39,7 +38,7 @@ class FullStackConstruct extends constructs_1.Construct {
|
|
|
39
38
|
}
|
|
40
39
|
/* create secrets for test or production environments */
|
|
41
40
|
if (props.database) {
|
|
42
|
-
this.database = new database_construct_1.DatabaseConstruct(this, 'DatabaseConstruct');
|
|
41
|
+
this.database = new database_construct_1.DatabaseConstruct(this, 'DatabaseConstruct', props.database);
|
|
43
42
|
}
|
|
44
43
|
if (props.apps) {
|
|
45
44
|
const apps = {};
|
|
@@ -49,13 +48,8 @@ class FullStackConstruct extends constructs_1.Construct {
|
|
|
49
48
|
key,
|
|
50
49
|
new AppTypeConstruct(this, `${key}App`, {
|
|
51
50
|
queue: app.attachment?.queue,
|
|
52
|
-
output: app.
|
|
53
|
-
|
|
54
|
-
...('clean' in AppTypeConstruct
|
|
55
|
-
? AppTypeConstruct.clean(app.path, key, app.command)
|
|
56
|
-
: {}),
|
|
57
|
-
...app.buildPaths,
|
|
58
|
-
},
|
|
51
|
+
output: app.output,
|
|
52
|
+
buildParams: app.buildParams,
|
|
59
53
|
}),
|
|
60
54
|
];
|
|
61
55
|
})));
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { DatabaseConstructProps } from '@fy-stack/database-construct';
|
|
1
2
|
import { ResourceRef } from '@fy-stack/types';
|
|
2
3
|
import * as events from 'aws-cdk-lib/aws-events';
|
|
3
4
|
export declare enum AppType {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
NODE_APP = "nodeApp",
|
|
6
|
+
NODE_API = "nestApi",
|
|
7
|
+
IMAGE_APP = "imageApp",
|
|
7
8
|
NEXT_APP_ROUTER = "nextAppRouter"
|
|
8
9
|
}
|
|
9
10
|
export type AppAttachment = {
|
|
@@ -24,18 +25,13 @@ export declare enum AppGrant {
|
|
|
24
25
|
}
|
|
25
26
|
export type App = {
|
|
26
27
|
type: AppType;
|
|
27
|
-
|
|
28
|
+
output: string;
|
|
28
29
|
attachment?: AppAttachment;
|
|
29
30
|
grant?: AppGrant[];
|
|
30
|
-
|
|
31
|
-
buildPaths?: Record<string, string>;
|
|
31
|
+
buildParams?: Record<string, string>;
|
|
32
32
|
};
|
|
33
|
-
export type
|
|
34
|
-
$app: string;
|
|
35
|
-
};
|
|
36
|
-
export type AppMessage = AppRef & {
|
|
33
|
+
export type AppMessage = ResourceRef & {
|
|
37
34
|
messages: string[];
|
|
38
|
-
publish?: boolean;
|
|
39
35
|
};
|
|
40
36
|
export type AppCron = {
|
|
41
37
|
messages: string[];
|
|
@@ -49,7 +45,7 @@ export type FullStackConstructProps = {
|
|
|
49
45
|
storage?: {
|
|
50
46
|
retainOnDelete?: boolean;
|
|
51
47
|
};
|
|
52
|
-
database?:
|
|
48
|
+
database?: DatabaseConstructProps;
|
|
53
49
|
apps?: Record<string, App>;
|
|
54
50
|
events?: {
|
|
55
51
|
messages?: AppMessage[];
|
package/dist/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,oBAAY,OAAO;IACjB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,oBAAY,OAAO;IACjB,QAAQ,YAAY;IACpB,QAAQ,YAAY;IACpB,SAAS,aAAa;IACtB,eAAe,kBAAkB;CAClC;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC,CAAC;AAEF,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAC7B,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;QACxB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;KAAE,CAAC;IAC9C,GAAG,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;KAAE,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C,CAAC"}
|
package/dist/lib/types.js
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AppGrant = exports.AppType = void 0;
|
|
4
4
|
var AppType;
|
|
5
5
|
(function (AppType) {
|
|
6
|
-
AppType["
|
|
7
|
-
AppType["
|
|
8
|
-
AppType["
|
|
6
|
+
AppType["NODE_APP"] = "nodeApp";
|
|
7
|
+
AppType["NODE_API"] = "nestApi";
|
|
8
|
+
AppType["IMAGE_APP"] = "imageApp";
|
|
9
9
|
AppType["NEXT_APP_ROUTER"] = "nextAppRouter";
|
|
10
10
|
})(AppType || (exports.AppType = AppType = {}));
|
|
11
11
|
var AppGrant;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fy-stack/fullstack-construct",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.126",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
|
-
"@fy-stack/auth-construct": "0.0.
|
|
7
|
-
"@fy-stack/storage-construct": "0.0.
|
|
8
|
-
"@fy-stack/database-construct": "0.0.
|
|
9
|
-
"@fy-stack/event-construct": "0.0.
|
|
10
|
-
"@fy-stack/secret-construct": "0.0.
|
|
11
|
-
"@fy-stack/cdn-construct": "0.0.
|
|
12
|
-
"@fy-stack/apigateway-construct": "0.0.
|
|
13
|
-
"@fy-stack/types": "0.0.
|
|
14
|
-
"@fy-stack/app-construct": "0.0.
|
|
6
|
+
"@fy-stack/auth-construct": "0.0.126",
|
|
7
|
+
"@fy-stack/storage-construct": "0.0.126",
|
|
8
|
+
"@fy-stack/database-construct": "0.0.126",
|
|
9
|
+
"@fy-stack/event-construct": "0.0.126",
|
|
10
|
+
"@fy-stack/secret-construct": "0.0.126",
|
|
11
|
+
"@fy-stack/cdn-construct": "0.0.126",
|
|
12
|
+
"@fy-stack/apigateway-construct": "0.0.126",
|
|
13
|
+
"@fy-stack/types": "0.0.126",
|
|
14
|
+
"@fy-stack/app-construct": "0.0.126"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"aws-cdk-lib": "2.
|
|
17
|
+
"aws-cdk-lib": "2.166.0",
|
|
18
18
|
"constructs": "10.4.2"
|
|
19
19
|
},
|
|
20
20
|
"type": "commonjs",
|