Skip to content

Commit

Permalink
Split out DynamoDM for publication.
Browse files Browse the repository at this point in the history
  • Loading branch information
autopulated committed Jan 29, 2024
1 parent b93d5f8 commit 0cc7979
Show file tree
Hide file tree
Showing 8 changed files with 10,547 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"env": {
"node": true,
"es2022": true,
"mocha": true
},
"parserOptions": {
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"no-console": 0,
"no-class-assign": 1,
"no-cond-assign": 1,
"no-const-assign": 1,
"no-constant-condition": [1, {"checkLoops": false}],
"no-constant-binary-expression": 1,
"no-control-regex": 1,
"no-debugger": 1,
"no-delete-var": 1,
"no-dupe-args": 1,
"no-dupe-class-members": 1,
"no-dupe-keys": 1,
"no-duplicate-case": 1,
"no-empty": 1,
"no-empty-character-class": 1,
"no-empty-pattern": 1,
"no-eval": 1,
"no-ex-assign": 1,
"no-extra-boolean-cast": 1,
"no-extra-semi": 1,
"no-fallthrough": 1,
"no-func-assign": 1,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-inner-declarations": 1,
"no-invalid-regexp": 1,
"no-invalid-this": 1,
"no-irregular-whitespace": 1,
"no-mixed-spaces-and-tabs": 1,
"no-native-reassign": 1,
"no-negated-in-lhs": 1,
"no-obj-calls": 1,
"no-octal": 1,
"no-redeclare": 1,
"no-regex-spaces": 1,
"no-sparse-arrays": 1,
"no-trailing-spaces": 1,
"no-this-before-super": 1,
"no-throw-literal": 1,
"no-undef": 1,
"no-undef-init": 1,
"no-unexpected-multiline": 1,
"no-unreachable": 1,
"no-unused-vars": [1, {"argsIgnorePattern":"^ignored"}],
"no-useless-call": 1,
"no-useless-computed-key": 1,
"no-useless-concat": 1,
"no-useless-constructor": 1,
"no-useless-escape": 1,
"no-useless-rename": 1,
"block-scoped-var": 1,
"callback-return": 1,
"complexity": 1,
"constructor-super": 1,
"default-case": 1,
"handle-callback-err": 1,
"require-yield": 1,
"semi": 1,
"use-isnan": 1,
"valid-typeof": 1,
"arrow-spacing": [1, {"before":true, "after":true}],
"func-call-spacing": [1, "never"],
"semi-spacing": [1, {"before": false, "after": true}],
"space-before-function-paren": [1, {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"brace-style": [1, "1tbs", {"allowSingleLine": true}],
"quotes": [1, "single", { "avoidEscape": true }]
}
}

38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test

on:
workflow_dispatch:
push:
branches: [ "*" ]

jobs:
test:
runs-on: ubuntu-latest

services:
dynamodb-local:
image: amazon/dynamodb-local:latest
ports:
- 8000:8000

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: '18'

- name: install deps
run: npm ci

- name: lint
run: npm run-script lint

- name: test
run: npm run-script test
env:
AWS_REGION: eu-west-1
AWS_ACCESS_KEY_ID: dummy
AWS_SECRET_ACCESS_KEY: dummy

118 changes: 118 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Logs
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

# Runtime data
pids
*.pid
*.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/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# 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

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

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

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# 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

# dynamodb-local database
api/test/dynamodb-local/docker/dynamodb/shared-local-instance.db

# static site build
site/build
site/deploy
site/old

# .tap files
.tap/

# inkscape backups
*.svg.*.svg
Loading

0 comments on commit 0cc7979

Please sign in to comment.