-
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.
- Loading branch information
0 parents
commit 6986751
Showing
12 changed files
with
304 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
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,35 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
// ignorePatterns: ['**/fixtures/*', '**/schemaTypes.ts'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
rules: { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
quotes: ['warn', 'single'], | ||
'member-access': 'off', | ||
'sort-imports': ['warn', { memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'] }], | ||
'interface-name': 'off', | ||
'arrow-parens': 'off', | ||
'object-literal-sort-keys': 'off', | ||
}, | ||
}; |
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,116 @@ | ||
.cache | ||
**/.DS_Store | ||
|
||
# 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 | ||
# temporary leave dist until npm package ready | ||
# 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 | ||
|
||
junit.xml | ||
|
||
dist | ||
dist.browser | ||
|
||
# Output of 'ax apps package' | ||
*.tar.gz |
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,14 @@ | ||
src | ||
test | ||
tsconfig.json | ||
tsconfig.module.json | ||
.eslintrc.js | ||
.prettierrc.js | ||
.github | ||
.prettierignore | ||
.vscode | ||
build/docs | ||
**/*.spec.* | ||
coverage | ||
.nyc_output | ||
*.log |
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 @@ | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN |
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 @@ | ||
module.exports = { | ||
arrowParens: 'always', | ||
bracketSpacing: true, | ||
endOfLine: 'auto', | ||
useTabs: false, | ||
semi: true, | ||
trailingComma: 'all', | ||
singleQuote: true, | ||
tabWidth: 2, | ||
printWidth: 120, | ||
}; |
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,10 @@ | ||
# JS-BigChainDB-wallets | ||
|
||
[](https://lerna.js.org/) | ||
[](https://github.com/prettier/prettier) | ||
|
||
This repository contains a suite of components and modules to ease the creation of wallets for BigChainDB. | ||
|
||
### List of packages | ||
|
||
- [Key-Derivation](https://github.com/s1seven/schema-tools/tree/master/packages/key-derivation#readme) |
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,13 @@ | ||
{ | ||
"verbose": true, | ||
"collectCoverage": true, | ||
"coverageReporters": ["lcov", "json"], | ||
"collectCoverageFrom": ["**/src/**", "!**/test/**"], | ||
"reporters": ["default", "jest-junit"], | ||
"testResultsProcessor": "jest-junit", | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"] | ||
} |
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,6 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "independent" | ||
} |
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,63 @@ | ||
{ | ||
"name": "root", | ||
"private": true, | ||
"homepage": "https://github.com/s1seven/js-bigchaindb-wallets#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/s1seven/js-bigchaindb-wallets.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/s1seven/js-bigchaindb-wallets/issues" | ||
}, | ||
"engines": { | ||
"node": ">=12", | ||
"npm": ">=6" | ||
}, | ||
"scripts": { | ||
"set-env": "read -p 'NPM_TOKEN: ' NPM_TOKEN && echo NPM_TOKEN=$NPM_TOKEN > .env", | ||
"bootstrap": "npm install lerna && lerna bootstrap && npm install", | ||
"format": "prettier --write \"packages/**/*.{ts,json}\"", | ||
"reset": "npm run cleanup && rimraf -rf node_modules && npm run bootstrap", | ||
"test": "lerna run test", | ||
"test:key-derivation": "lerna run --scope @s1seven/js-bigchain-key-derivation test", | ||
"build": "npm run cleanup && lerna run compile", | ||
"cleanup": "lerna run cleanup --stream --parallel", | ||
"lint": "lerna run lint", | ||
"lint:staged": "lint-staged", | ||
"prepare": "npm run format && npm run lint", | ||
"prepublishOnly": "npm run build", | ||
"version": "lerna version" | ||
}, | ||
"devDependencies": { | ||
"@lerna/publish": "3.22.1", | ||
"@lerna/run": "3.21.0", | ||
"@types/jest": "26.0.12", | ||
"@types/node": "14.0.27", | ||
"@typescript-eslint/eslint-plugin": "^4.6.1", | ||
"@typescript-eslint/parser": "^4.6.1", | ||
"eslint": "^7.11.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"jest": "26.4.2", | ||
"jest-junit": "11.1.0", | ||
"lerna": "^3.22.1", | ||
"lint-staged": "^10.5.1", | ||
"npm-run-all": "^4.1.5", | ||
"pre-commit": "^1.2.2", | ||
"prettier": "2.1.1", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "26.3.0", | ||
"ts-node": "9.0.0", | ||
"tsconfig-paths": "3.9.0", | ||
"typescript": "4.0.2" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"eslint" | ||
] | ||
}, | ||
"pre-commit": [ | ||
"lint:staged", | ||
"test" | ||
] | ||
} |
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,5 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["src"], | ||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] | ||
} |
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,28 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"declaration": true, | ||
"removeComments": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"target": "es2017", | ||
"sourceMap": true, | ||
"outDir": "dist/", | ||
"baseUrl": "./packages", | ||
"incremental": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"noUnusedLocals": true /* Report errors on unused locals. */, | ||
"noUnusedParameters": true /* Report errors on unused parameters. */, | ||
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */, | ||
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */, | ||
"traceResolution": false /* Report module resolution log messages. */, | ||
"listEmittedFiles": false /* Print names of generated files part of the compilation. */, | ||
"listFiles": false /* Print names of files part of the compilation. */, | ||
"pretty": true /* Stylize errors and messages using color and context. */, | ||
"lib": ["DOM", "ES2016"], | ||
"types": ["node", "jest"], | ||
"typeRoots": ["node_modules/@types", "../node_modules/@types"] | ||
}, | ||
"exclude": ["node_modules", "dist"] | ||
} |