Skip to content

Commit 3e000a4

Browse files
committed
initailzie project form scaffold
0 parents  commit 3e000a4

26 files changed

+19588
-0
lines changed

.circleci/config.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# https://circleci.com/docs/2.0/language-javascript/
2+
version: 2
3+
jobs:
4+
'node-10':
5+
docker:
6+
- image: circleci/node:10
7+
steps:
8+
- checkout
9+
# Download and cache dependencies
10+
- restore_cache:
11+
keys:
12+
- v1-dependencies-{{ checksum "package.json" }}
13+
# fallback to using the latest cache if no exact match is found
14+
- v1-dependencies-
15+
- run: npm install
16+
- save_cache:
17+
paths:
18+
- node_modules
19+
key: v1-dependencies-{{ checksum "package.json" }}
20+
- run: npm test
21+
- run: npm run cov:send
22+
- run: npm run cov:check
23+
'node-12':
24+
docker:
25+
- image: circleci/node:12
26+
steps:
27+
- checkout
28+
- restore_cache:
29+
keys:
30+
- v1-dependencies-{{ checksum "package.json" }}
31+
- v1-dependencies-
32+
- run: npm install
33+
- save_cache:
34+
paths:
35+
- node_modules
36+
key: v1-dependencies-{{ checksum "package.json" }}
37+
- run: npm test
38+
- run: npm run cov:send
39+
- run: npm run cov:check
40+
'node-latest':
41+
docker:
42+
- image: circleci/node:latest
43+
steps:
44+
- checkout
45+
- restore_cache:
46+
keys:
47+
- v1-dependencies-{{ checksum "package.json" }}
48+
- v1-dependencies-
49+
- run: npm install
50+
- save_cache:
51+
paths:
52+
- node_modules
53+
key: v1-dependencies-{{ checksum "package.json" }}
54+
- run: npm test
55+
- run: npm run cov:send
56+
- run: npm run cov:check
57+
58+
workflows:
59+
version: 2
60+
build:
61+
jobs:
62+
- 'node-10'
63+
- 'node-12'
64+
- 'node-latest'

.cspell.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": "0.1",
3+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json",
4+
"language": "en",
5+
"words": [
6+
"bitjson",
7+
"bitauth",
8+
"cimg",
9+
"circleci",
10+
"codecov",
11+
"commitlint",
12+
"dependabot",
13+
"editorconfig",
14+
"esnext",
15+
"execa",
16+
"exponentiate",
17+
"globby",
18+
"libauth",
19+
"mkdir",
20+
"prettierignore",
21+
"sandboxed",
22+
"transpiled",
23+
"typedoc",
24+
"untracked"
25+
],
26+
"flagWords": [],
27+
"ignorePaths": [
28+
"package.json",
29+
"package-lock.json",
30+
"yarn.lock",
31+
"tsconfig.json",
32+
"node_modules/**"
33+
]
34+
}

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
max_line_length = 80
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
max_line_length = 0
15+
trim_trailing_whitespace = false

.eslintrc.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": { "project": "./tsconfig.json" },
5+
"env": { "es6": true },
6+
"ignorePatterns": ["node_modules", "build", "coverage"],
7+
"plugins": ["import", "eslint-comments", "functional"],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:eslint-comments/recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:import/typescript",
13+
"plugin:functional/lite",
14+
"prettier",
15+
"prettier/@typescript-eslint"
16+
],
17+
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
18+
"rules": {
19+
"@typescript-eslint/explicit-module-boundary-types": "off",
20+
"eslint-comments/disable-enable-pair": [
21+
"error",
22+
{ "allowWholeFile": true }
23+
],
24+
"eslint-comments/no-unused-disable": "error",
25+
"import/order": [
26+
"error",
27+
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
28+
],
29+
"sort-imports": [
30+
"error",
31+
{ "ignoreDeclarationSort": true, "ignoreCase": true }
32+
]
33+
}
34+
}

.github/CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Example Contributing Guidelines
2+
3+
This is an example of GitHub's contributing guidelines file. Check out GitHub's [CONTRIBUTING.md help center article](https://help.github.com/articles/setting-guidelines-for-repository-contributors/) for more information.

.github/ISSUE_TEMPLATE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- **I'm submitting a ...**
2+
[ ] bug report
3+
[ ] feature request
4+
[ ] question about the decisions made in the repository
5+
[ ] question about how to use this project
6+
7+
- **Summary**
8+
9+
- **Other information** (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

.github/PULL_REQUEST_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
2+
3+
- **What is the current behavior?** (You can also link to an open issue here)
4+
5+
- **What is the new behavior (if this is a feature change)?**
6+
7+
- **Other information**:

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.idea/*
2+
.nyc_output
3+
build
4+
node_modules
5+
test
6+
src/**.js
7+
coverage
8+
*.log
9+
yarn.lock

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# package.json is formatted by package managers, so we ignore it here
2+
package.json

.vscode/extensions.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"eamodio.gitlens",
6+
"streetsidesoftware.code-spell-checker",
7+
]
8+
}

.vscode/launch.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
// To debug, make sure a *.spec.ts file is active in the editor, then run a configuration
5+
{
6+
"type": "node",
7+
"request": "launch",
8+
"name": "Debug Active Spec",
9+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
10+
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
11+
"port": 9229,
12+
"outputCapture": "std",
13+
"skipFiles": ["<node_internals>/**/*.js"],
14+
"preLaunchTask": "npm: build"
15+
// "smartStep": true
16+
},
17+
{
18+
// Use this one if you're already running `yarn watch`
19+
"type": "node",
20+
"request": "launch",
21+
"name": "Debug Active Spec (no build)",
22+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
23+
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
24+
"port": 9229,
25+
"outputCapture": "std",
26+
"skipFiles": ["<node_internals>/**/*.js"]
27+
// "smartStep": true
28+
}]
29+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"cSpell.userWords": [], // only use words from .cspell.json
3+
"cSpell.enabled": true,
4+
"editor.formatOnSave": true,
5+
"typescript.tsdk": "node_modules/typescript/lib",
6+
"typescript.enablePromptUseWorkspaceTsdk": true
7+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 naftalimurgor
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# bglsdk
2+
3+
A comprehensive library for Bitgesell API

0 commit comments

Comments
 (0)