-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updates the base node image to 12.18.0-alpine - Updates versions of the project dependencies - Adds routine to load mongodb and rabbitmq client certificates - Updates the CustomLogger class - Updates the Query class to return the created_at classification as a default in toJSON - Change the .mocharc.yml file to the project root - Adds support for ES2020 - Adds settings for the travis service - Updates README - Adds new unit and integration tests
- Loading branch information
1 parent
b5d23ab
commit cc70ff0
Showing
29 changed files
with
2,608 additions
and
2,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,85 @@ | ||
node_modules | ||
npm-debug.log | ||
# ignore .git and .cache folders | ||
.git | ||
.cache | ||
|
||
# Docker files | ||
.dockerignore | ||
Dockerfile | ||
Dockerfile.archive | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# 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 | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://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/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# IDE | ||
.idea | ||
|
||
# Docs | ||
docs | ||
|
||
# Bash | ||
bash.exe.stackdump | ||
|
||
# certificates and keys directories and files | ||
.certs | ||
*.pem | ||
*.crt | ||
*.key | ||
*.csr | ||
*.cert | ||
certs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extension: | ||
- ts | ||
exit: true # could be expressed as "no-exit: true" | ||
recursive: true | ||
reporter: spec | ||
require: | ||
- 'test/helpers.ts' | ||
- 'ts-node/register' | ||
- 'reflect-metadata/Reflect' | ||
slow: 8000 | ||
timeout: 30000 # same as "no-timeout: true" or "timeout: 0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: node_js | ||
node_js: | ||
- "12" | ||
- "13" | ||
env: | ||
- NODE_ENV=test RABBITMQ_URI=amqp://guest:guest@localhost:5672/haniot MONGODB_ENABLE_TLS=false MONGODB_URI_TEST=mongodb://localhost:27017/notification-test | ||
addons: | ||
apt: | ||
packages: | ||
- rabbitmq-server | ||
services: | ||
- rabbitmq | ||
- mongodb | ||
sudo: false | ||
before_script: | ||
- sudo rabbitmqctl add_vhost haniot | ||
- sudo rabbitmqctl set_permissions -p haniot guest ".*" ".*" ".*" | ||
- npm install && npm install coveralls mocha-lcov-reporter --save-dev | ||
script: | ||
- npm test | ||
after_success: | ||
- nyc report --reporter=text-lcov | coveralls | ||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.