declapract-typescript-ehmpathy 0.20.13 → 0.21.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.
- package/dist/practices/artifact/best-practice/package.json +1 -1
- package/dist/practices/cicd-deploy-package/best-practice/.github/workflows/publish-on-tag.yml +1 -1
- package/dist/practices/cicd-integrate/best-practice/.github/workflows/test-on-commit.yml +1 -1
- package/dist/practices/lambda-handlers/best-practice/package.json +1 -1
- package/dist/practices/persist-with-dynamodb/best-practice/codegen.dynamodb.dao.ts +16 -0
- package/dist/practices/persist-with-dynamodb/best-practice/package.json +6 -2
- package/dist/practices/serverless/best-practice/serverless.yml +1 -1
- package/dist/practices/testing/best-practice/package.json +1 -1
- package/dist/practices/typescript/best-practice/tsconfig.build.json +3 -1
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeclaredDaoSpecification,
|
|
3
|
+
DeclaredDomainObjectIntrospectionPaths,
|
|
4
|
+
DeclaredOutputDirectories,
|
|
5
|
+
} from 'dynamodb-dao-generator';
|
|
6
|
+
|
|
7
|
+
export const introspect: DeclaredDomainObjectIntrospectionPaths = [
|
|
8
|
+
'./src/domain/index.ts',
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export const directories: DeclaredOutputDirectories = {
|
|
12
|
+
terraform: `provision/aws/product`,
|
|
13
|
+
dao: `src/data/dao`,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const specifications: DeclaredDaoSpecification[] = [];
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"simple-dynamodb-client": "@declapract{check.minVersion('0.10.0')}"
|
|
4
4
|
},
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"dynamodb-dao-generator": "@declapract{check.minVersion('1.0.0')}"
|
|
7
|
+
},
|
|
5
8
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"provision:docker:
|
|
9
|
+
"generate:dao:dynamodb": "npx dynamodb-dao-generator generate && npm run fix:format",
|
|
10
|
+
"provision:docker:up": "docker-compose -f ./provision/docker/integration-test-db/docker-compose.yml up -d --force-recreate --build --renew-anon-volumes",
|
|
11
|
+
"provision:docker:down": "docker-compose -f ./provision/docker/integration-test-db/docker-compose.yml down",
|
|
8
12
|
"provision:dynamodb:schema": "terraform -chdir=provision/aws/environments/test apply -auto-approve",
|
|
9
13
|
"provision:integration-test-db": "npm run provision:docker:up && npm run provision:dynamodb:schema"
|
|
10
14
|
}
|
|
@@ -48,7 +48,7 @@ provider:
|
|
|
48
48
|
- s3:ListObject
|
|
49
49
|
- s3:GetObject
|
|
50
50
|
- s3:PutObject
|
|
51
|
-
Resource: arn:aws:s3
|
|
51
|
+
Resource: arn:aws:s3:::${self:service}-* # note, region and account can not be included in this resource arn, otherwise aws throws error
|
|
52
52
|
# allow reading and writing to sqs queues namespaced to this service
|
|
53
53
|
- Effect: Allow
|
|
54
54
|
Action:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"ts-jest": "@declapract{check.minVersion('29.0.3')}",
|
|
6
6
|
"ts-node": "@declapract{check.minVersion('10.9.1')}",
|
|
7
7
|
"core-js": "@declapract{check.minVersion('3.26.1')}",
|
|
8
|
-
"simple-lambda-testing-methods": "@declapract{check.minVersion('0.
|
|
8
|
+
"simple-lambda-testing-methods": "@declapract{check.minVersion('0.4.1')}"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"domain-objects": "0.7.5",
|
|
35
|
+
"dynamodb-dao-generator": "1.0.0",
|
|
35
36
|
"expect": "29.4.2",
|
|
36
37
|
"lodash.uniq": "4.5.0",
|
|
37
38
|
"type-fns": "0.7.0",
|