Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-lambda-ric 3.0.0 release #70

Merged
merged 6 commits into from
Jun 22, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -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
@@ -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
@@ -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*

18 changes: 3 additions & 15 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
pr: build dev test-integ

.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]
Loading