Skip to content

Commit 40f98db

Browse files
authored
aws-lambda-ric 3.0.0 release (#70)
* Update to aws-lambda-ric 3.0.0 release
1 parent 8d1ff4c commit 40f98db

File tree

122 files changed

+7292
-8010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+7292
-8010
lines changed

.dockerignore

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
node_modules
22
**/node_modules
33

4+
# Required for the async_init_with_node_modules unit test
5+
!test/handlers/async_init_with_node_modules/node_modules
6+
47
build
58
**/build
69

7-
lib
8-
**/lib
10+
dist
11+
**/dist
912

1013
.idea
1114
**/.idea
1215

1316
package-lock.json
1417
**/package-lock.json
1518

16-
test/integration/*.ts
17-
1819
.git
1920
.DS_STORE

.eslintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
**/node_modules
3+
4+
async_init_package
5+
test-handlers
6+
7+
dist/**

.eslintrc

+19-26
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,31 @@
11
{
2-
"parser": "@typescript-eslint/parser",
32
"parserOptions": {
4-
"project": ["src/tsconfig.json", "test/unit/tsconfig.json"]
3+
"ecmaVersion": 2022
54
},
6-
"plugins": ["@typescript-eslint", "prettier"],
75
"extends": [
8-
"eslint:recommended",
9-
"plugin:@typescript-eslint/eslint-recommended",
10-
"plugin:@typescript-eslint/recommended",
11-
"prettier"
6+
"plugin:prettier/recommended"
127
],
138
"env": {
149
"node": true,
10+
"mocha": true,
1511
"es6": true
1612
},
1713
"rules": {
18-
"@typescript-eslint/restrict-plus-operands": "error",
19-
"@typescript-eslint/interface-name-prefix": "off",
20-
"no-async-promise-executor": "warn",
21-
"@typescript-eslint/explicit-function-return-type": "off",
22-
"@typescript-eslint/indent": "off",
23-
"@typescript-eslint/ban-types": "warn",
24-
"no-console": "warn",
25-
"no-shadow": "warn"
26-
},
27-
"overrides": [
28-
{
29-
"files":["test/**/*.ts"],
30-
"rules": {
31-
"no-console": "off",
32-
"@typescript-eslint/no-explicit-any": "off",
33-
"no-prototype-builtins": "off",
34-
"strictBindCallApply": "off"
14+
"strict": [
15+
"error",
16+
"global"
17+
],
18+
"indent": [
19+
"error",
20+
2
21+
],
22+
"camelcase": "error",
23+
"no-console": "off",
24+
"no-unused-vars": [
25+
"error",
26+
{
27+
"argsIgnorePattern": "^_"
3528
}
36-
}
37-
]
29+
]
30+
}
3831
}

.gitignore

+5-77
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ test/integration/resources/init
77
logs
88
*.log
99
npm-debug.log*
10-
yarn-debug.log*
11-
yarn-error.log*
12-
lerna-debug.log*
1310

1411
# Diagnostic reports (https://nodejs.org/api/report.html)
1512
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -20,103 +17,34 @@ pids
2017
*.seed
2118
*.pid.lock
2219

23-
# Directory for instrumented libs generated by jscoverage/JSCover
24-
lib-cov
25-
2620
# Coverage directory used by tools like istanbul
2721
coverage
2822
*.lcov
2923

3024
# nyc test coverage
3125
.nyc_output
3226

33-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34-
.grunt
35-
36-
# Bower dependency directory (https://bower.io/)
37-
bower_components
38-
39-
# node-waf configuration
40-
.lock-wscript
41-
4227
# Compiled binary addons (https://nodejs.org/api/addons.html)
4328
build/Release
4429

4530
# Dependency directories
4631
node_modules/
47-
jspm_packages/
48-
49-
# Snowpack dependency directory (https://snowpack.dev/)
50-
web_modules/
5132

52-
# TypeScript cache
53-
*.tsbuildinfo
33+
# Required for the async_init_with_node_modules unit test
34+
!test/handlers/async_init_with_node_modules/node_modules
5435

5536
# Optional npm cache directory
5637
.npm
5738

5839
# Optional eslint cache
5940
.eslintcache
60-
61-
# Microbundle cache
62-
.rpt2_cache/
63-
.rts2_cache_cjs/
64-
.rts2_cache_es/
65-
.rts2_cache_umd/
66-
67-
# Optional REPL history
68-
.node_repl_history
41+
.eslintignore
6942

7043
# Output of 'npm pack'
7144
*.tgz
7245

73-
# Yarn Integrity file
74-
.yarn-integrity
75-
76-
# dotenv environment variables file
77-
.env
78-
.env.test
79-
80-
# parcel-bundler cache (https://parceljs.org/)
81-
.cache
82-
.parcel-cache
83-
84-
# Next.js build output
85-
.next
86-
out
87-
88-
# Nuxt.js build / generate output
89-
.nuxt
90-
lib/
91-
92-
# Gatsby files
93-
.cache/
94-
# Comment in the public line in if your project uses Gatsby and not Next.js
95-
# https://nextjs.org/blog/next-9-1#public-directory-support
96-
# public
97-
98-
# vuepress build output
99-
.vuepress/dist
100-
101-
# Serverless directories
102-
.serverless/
103-
104-
# FuseBox cache
105-
.fusebox/
106-
107-
# DynamoDB Local files
108-
.dynamodb/
109-
110-
# TernJS port file
111-
.tern-port
46+
# Build
47+
dist/
11248

11349
# Stores VSCode versions used for testing VSCode extensions
11450
.vscode-test
115-
116-
# yarn v2
117-
.yarn/cache
118-
.yarn/unplugged
119-
.yarn/build-state.yml
120-
.yarn/install-state.gz
121-
.pnp.*
122-
.idea/

.npmignore

+4-75
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
build
22
.DS_Store
33

4-
src
4+
src/*
5+
# Rapid-client.c to be used with node-gyp
6+
!src/rapid-client.cc
57
test
68

79
# Logs
810
logs
911
*.log
1012
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
13-
lerna-debug.log*
1413

1514
# IDEs
1615
.idea
@@ -35,96 +34,26 @@ coverage
3534
# nyc test coverage
3635
.nyc_output
3736

38-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
39-
.grunt
40-
41-
# Bower dependency directory (https://bower.io/)
42-
bower_components
43-
44-
# node-waf configuration
45-
.lock-wscript
46-
4737
# Compiled binary addons (https://nodejs.org/api/addons.html)
4838
build/Release
4939

5040
# Dependency directories
5141
node_modules/
52-
jspm_packages/
53-
54-
# Snowpack dependency directory (https://snowpack.dev/)
55-
web_modules/
56-
57-
# TypeScript cache
58-
*.tsbuildinfo
5942

6043
# Optional npm cache directory
6144
.npm
6245

6346
# Optional eslint config & cache
6447
.eslintrc
6548
.eslintcache
66-
67-
# Microbundle cache
68-
.rpt2_cache/
69-
.rts2_cache_cjs/
70-
.rts2_cache_es/
71-
.rts2_cache_umd/
72-
73-
# Optional REPL history
74-
.node_repl_history
49+
.eslintignore
7550

7651
# Output of 'npm pack'
7752
*.tgz
7853

79-
# Yarn Integrity file
80-
.yarn-integrity
81-
82-
# dotenv environment variables file
83-
.env
84-
.env.test
85-
86-
# parcel-bundler cache (https://parceljs.org/)
87-
.cache
88-
.parcel-cache
89-
90-
# Next.js build output
91-
.next
92-
out
93-
94-
# Nuxt.js build / generate output
95-
.nuxt
96-
97-
# Gatsby files
98-
.cache/
99-
# Comment in the public line in if your project uses Gatsby and not Next.js
100-
# https://nextjs.org/blog/next-9-1#public-directory-support
101-
# public
102-
103-
# vuepress build output
104-
.vuepress/dist
105-
106-
# Serverless directories
107-
.serverless/
108-
109-
# FuseBox cache
110-
.fusebox/
111-
112-
# DynamoDB Local files
113-
.dynamodb/
114-
115-
# TernJS port file
116-
.tern-port
117-
11854
# Stores VSCode versions used for testing VSCode extensions
11955
.vscode-test
12056

121-
# yarn v2
122-
.yarn/cache
123-
.yarn/unplugged
124-
.yarn/build-state.yml
125-
.yarn/install-state.gz
126-
.pnp.*
127-
12857
# git
12958
.git*
13059

Makefile

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,49 @@
1-
.PHONY: target
21
target:
32
$(info ${HELP_MESSAGE})
43
@exit 0
54

6-
.PHONY: init
75
init:
86
npm install
97

10-
.PHONY: test
118
test:
129
npm run test
1310

14-
.PHONY: setup-codebuild-agent
1511
setup-codebuild-agent:
1612
docker build -t codebuild-agent - < test/integration/codebuild-local/Dockerfile.agent
1713

18-
.PHONY: test-smoke
1914
test-smoke: setup-codebuild-agent
2015
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.16 18
2116

22-
.PHONY: test-integ
2317
test-integ: setup-codebuild-agent
2418
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_all.sh test/integration/codebuild
2519

26-
.PHONY: copy-files
2720
copy-files:
2821
npm run copy-files
2922

30-
.PHONY: install
3123
install:
3224
BUILD=$(BUILD) npm install
3325

34-
.PHONY: format
3526
format:
3627
npm run format
3728

3829
# Command to run everytime you make changes to verify everything works
39-
.PHONY: dev
4030
dev: init test
4131

4232
# Verifications to run before sending a pull request
43-
.PHONY: pr
4433
pr: build dev test-smoke
4534

46-
.PHONY: clean
4735
clean:
4836
npm run clean
4937

50-
.PHONY: build
5138
build: copy-files
5239
make install BUILD=1
5340
npm run build
5441

55-
.PHONY: pack
5642
pack: build
5743
npm pack
5844

45+
.PHONY: target init test setup-codebuild-agent test-smoke test-integ install format dev pr clean build pack copy-files
46+
5947
define HELP_MESSAGE
6048

6149
Usage: $ make [TARGETS]

0 commit comments

Comments
 (0)