Skip to content

Commit

Permalink
Setup files and folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay Kumar committed Sep 28, 2020
1 parent feda265 commit 73aa9ee
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

.DS_Store

# 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/

# TypeScript v1 declaration files
typings/

# 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

# --------------- #
# IntelliJ #
# --------------- #
.idea/
**/*.iml

# VSCode directory
.vscode
jsconfig.json

# Executables from pkg if any
*.exe
10 changes: 10 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# LICENSE

Copyright © 2017 Bill & Melinda Gates Foundation

The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0
(the "License") and you may not use these files except in compliance with the [License](http://www.apache.org/licenses/LICENSE-2.0). You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the [License](http://www.apache.org/licenses/LICENSE-2.0).
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
verbose: true,
collectCoverageFrom: [
'**/src/**/**/*.js'
],
coverageThreshold: {
global: {
statements: 95,
functions: 95,
branches: 95,
lines: 95
}
},
modulePathIgnorePatterns: [],
testEnvironment: 'node'
}
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "ml-testing-toolkit-shared-lib",
"version": "11.0.0",
"description": "Shared library for ml-testing-toolkit re-usable functions",
"main": "index.js",
"pre-commit": [
"standard"
],
"scripts": {
"start": "node src/index.js",
"standard": "standard",
"test": "npm run test:unit",
"test:unit": "jest --testMatch '**/test/unit/**/*.test.js'",
"test:int": "jest --reporters=default --reporters=jest-junit --testMatch '**/test/integration/**/*.test.js'",
"test:coverage": "jest --coverage --coverageThreshold='{}' --testMatch '**/test/unit/**/*.test.js'",
"test:coverage-check": "jest --coverage --testMatch '**/test/unit/**/*.test.js'",
"test:junit": "jest --reporters=default --reporters=jest-junit --testMatch '**/test/unit/**/*.test.js'",
"test:integration": "./test/integration-runner.sh ",
"cover": "npx nyc --all report --reporter=lcov npm run test",
"lint": "eslint --ignore-path ../.eslintignore .",
"audit:resolve": "SHELL=sh resolve-audit",
"audit:check": "SHELL=sh check-audit",
"dep:check": "npx ncu -e 2",
"dep:update": "npx ncu -u"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mojaloop/ml-testing-toolkit-shared-lib.git"
},
"author": "Vijaya Kumar Guthi, ModusBox Inc.",
"contributors": [
"Vijaya Kumar <[email protected]>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/mojaloop/ml-testing-toolkit-shared-lib/issues"
},
"homepage": "https://github.com/mojaloop/ml-testing-toolkit-shared-lib#readme"
}

0 comments on commit 73aa9ee

Please sign in to comment.