@jaypie/express 1.2.4-rc17 → 1.2.4-rc19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/express",
3
- "version": "1.2.4-rc17",
3
+ "version": "1.2.4-rc19",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/finlaysonstudio/jaypie.git"
@@ -24,10 +24,19 @@
24
24
  ],
25
25
  "scripts": {
26
26
  "build": "rollup --config",
27
+ "docker:build": "npm run build && docker build -f docker/Dockerfile -t jaypie-express-lambda .",
28
+ "docker:invoke": "curl -s -X POST 'http://localhost:9000/2015-03-31/functions/function/invocations' -d @docker/events/api-gateway-v1-get.json",
29
+ "docker:invoke:404": "curl -s -X POST 'http://localhost:9000/2015-03-31/functions/function/invocations' -d @docker/events/api-gateway-v1-404.json",
30
+ "docker:invoke:echo": "curl -s -X POST 'http://localhost:9000/2015-03-31/functions/function/invocations' -d @docker/events/api-gateway-v1-post.json",
31
+ "docker:invoke:v2": "curl -s -X POST 'http://localhost:9000/2015-03-31/functions/function/invocations' -d @docker/events/function-url-v2.json",
32
+ "docker:run": "docker run --rm -p 9000:8080 jaypie-express-lambda",
27
33
  "format": "npm run format:package && npm run format:lint",
28
34
  "format:lint": "eslint --fix .",
29
35
  "format:package": "sort-package-json ./package.json",
30
36
  "lint": "eslint .",
37
+ "sam:build": "npm run build && cp -r dist docker/ && cd docker && sam build",
38
+ "sam:invoke": "cd docker && sam local invoke ExpressFunction -e events/api-gateway-v1-get.json",
39
+ "sam:start": "cd docker && sam local start-api --warm-containers EAGER",
31
40
  "test": "vitest run .",
32
41
  "test:spec:constants": "vitest run ./src/__tests__/constants.spec.ts",
33
42
  "test:spec:cors.helper": "vitest run ./src/__tests__/cors.helper.spec.ts",