Skip to content

Commit

Permalink
aws-lambda-ric 3.0.0 release (#70)
Browse files Browse the repository at this point in the history
* Update to aws-lambda-ric 3.0.0 release
  • Loading branch information
andclt committed Jun 22, 2023
1 parent 8d1ff4c commit 40f98db
Show file tree
Hide file tree
Showing 122 changed files with 7,292 additions and 8,010 deletions.
9 changes: 5 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
node_modules
**/node_modules

# Required for the async_init_with_node_modules unit test
!test/handlers/async_init_with_node_modules/node_modules

build
**/build

lib
**/lib
dist
**/dist

.idea
**/.idea

package-lock.json
**/package-lock.json

test/integration/*.ts

.git
.DS_STORE
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
**/node_modules

async_init_package
test-handlers

dist/**
45 changes: 19 additions & 26 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["src/tsconfig.json", "test/unit/tsconfig.json"]
"ecmaVersion": 2022
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
"plugin:prettier/recommended"
],
"env": {
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/interface-name-prefix": "off",
"no-async-promise-executor": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/ban-types": "warn",
"no-console": "warn",
"no-shadow": "warn"
},
"overrides": [
{
"files":["test/**/*.ts"],
"rules": {
"no-console": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-prototype-builtins": "off",
"strictBindCallApply": "off"
"strict": [
"error",
"global"
],
"indent": [
"error",
2
],
"camelcase": "error",
"no-console": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
}
]
]
}
}
82 changes: 5 additions & 77 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ test/integration/resources/init
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

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

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo
# Required for the async_init_with_node_modules unit test
!test/handlers/async_init_with_node_modules/node_modules

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history
.eslintignore

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
lib/

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
# Build
dist/

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.idea/
79 changes: 4 additions & 75 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
build
.DS_Store

src
src/*
# Rapid-client.c to be used with node-gyp
!src/rapid-client.cc
test

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# IDEs
.idea
Expand All @@ -35,96 +34,26 @@ coverage
# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint config & cache
.eslintrc
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history
.eslintignore

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# git
.git*

Expand Down
16 changes: 2 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,61 +1,49 @@
.PHONY: target
target:
$(info ${HELP_MESSAGE})
@exit 0

.PHONY: init
init:
npm install

.PHONY: test
test:
npm run test

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

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

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

.PHONY: copy-files
copy-files:
npm run copy-files

.PHONY: install
install:
BUILD=$(BUILD) npm install

.PHONY: format
format:
npm run format

# Command to run everytime you make changes to verify everything works
.PHONY: dev
dev: init test

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

.PHONY: clean
clean:
npm run clean

.PHONY: build
build: copy-files
make install BUILD=1
npm run build

.PHONY: pack
pack: build
npm pack

.PHONY: target init test setup-codebuild-agent test-smoke test-integ install format dev pr clean build pack copy-files

define HELP_MESSAGE

Usage: $ make [TARGETS]
Expand Down
Loading

0 comments on commit 40f98db

Please sign in to comment.