Skip to content

Commit 54a2a85

Browse files
committed
🎉 1.0.0 realease
1 parent 3e2f084 commit 54a2a85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+11339
-0
lines changed

‎.babelrc‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"plugins": [
3+
"@babel/plugin-transform-flow-strip-types",
4+
"@babel/plugin-proposal-class-properties",
5+
["@babel/plugin-proposal-object-rest-spread", { "useBuiltIns": true }],
6+
["@babel/plugin-transform-runtime", { "corejs": 2 }]
7+
],
8+
"presets": [
9+
[
10+
"@babel/preset-env",
11+
{
12+
"targets": {
13+
"node": "6.0"
14+
}
15+
}
16+
],
17+
"@babel/flow"
18+
]
19+
}

‎.eslintrc.js‎

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
const off = 0;
2+
const warn = 1;
3+
const error = 2;
4+
5+
module.exports = {
6+
extends: [
7+
'airbnb-base',
8+
'plugin:flowtype/recommended',
9+
'plugin:import/errors',
10+
'plugin:import/warnings'
11+
],
12+
plugins: ['import'],
13+
env: {
14+
es6: true,
15+
node: true,
16+
browser: true,
17+
},
18+
globals: {
19+
'$Diff': true,
20+
},
21+
rules: {
22+
'comma-dangle': [
23+
error,
24+
{
25+
arrays: 'always-multiline',
26+
objects: 'always-multiline',
27+
imports: 'always-multiline',
28+
exports: 'always-multiline',
29+
functions: 'only-multiline',
30+
},
31+
],
32+
'function-paren-newline': [error, 'consistent'],
33+
'global-require': off,
34+
'import/extensions': off,
35+
'import/no-deprecated': warn,
36+
'import/no-unresolved': off,
37+
'import/prefer-default-export': off,
38+
indent: off,
39+
'lines-between-class-members': [error, 'always', { exceptAfterSingleLine: true }],
40+
'max-len': [error, 200, { ignoreComments: true }],
41+
'no-console': error,
42+
'no-multiple-empty-lines': [error, { max: error, maxEOF: error }],
43+
'no-implicit-coercion': error,
44+
'no-undef': off,
45+
'no-underscore-dangle': off,
46+
'no-unused-vars': [
47+
error, {
48+
args: 'after-used',
49+
ignoreRestSiblings: false,
50+
varsIgnorePattern: 'Fragment',
51+
},
52+
],
53+
'object-curly-newline': [error, { consistent: true }],
54+
'prefer-spread': off,
55+
'quotes': [error, 'single'],
56+
},
57+
parser: 'babel-eslint',
58+
overrides: [
59+
{
60+
files: ['src/utils/*.js'],
61+
rules: {
62+
'no-lonely-if': false,
63+
'no-param-reassign': false,
64+
},
65+
},
66+
{
67+
files: ['src/**/*.test.js'],
68+
rules: {
69+
'max-len': off,
70+
'no-undef': off,
71+
},
72+
},
73+
],
74+
};

‎.flowconfig‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[ignore]
2+
.*/node_modules
3+
.*/flow-typed
4+
5+
[include]
6+
.*/src
7+
8+
[libs]
9+
<PROJECT_ROOT>/flow-typed
10+
11+
[lints]
12+
all=warn
13+
untyped-type-import=error
14+
sketchy-null-bool=off
15+
16+
[options]
17+
module.system=haste
18+
module.name_mapper='^~\(.*\)$' -> '<PROJECT_ROOT>/src/\1'
19+
module.name_mapper='^_\(.*\)$' -> '<PROJECT_ROOT>/\1'
20+
21+
[strict]

‎.npmignore‎

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# Created by https://www.gitignore.io/api/vim,osx,node,linux,windows
2+
3+
### Linux ###
4+
*~
5+
6+
# temporary files which can be created if a process still has a handle open of a deleted file
7+
.fuse_hidden*
8+
9+
# KDE directory preferences
10+
.directory
11+
12+
# Linux trash folder which might appear on any partition or disk
13+
.Trash-*
14+
15+
# .nfs files are created when an open file is removed but is still being accessed
16+
.nfs*
17+
18+
### Node ###
19+
# Logs
20+
logs
21+
*.log
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
# Runtime data
27+
pids
28+
*.pid
29+
*.seed
30+
*.pid.lock
31+
32+
# Directory for instrumented libs generated by jscoverage/JSCover
33+
lib-cov
34+
35+
# Coverage directory used by tools like istanbul
36+
coverage
37+
38+
# nyc test coverage
39+
.nyc_output
40+
41+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
42+
.grunt
43+
44+
# Bower dependency directory (https://bower.io/)
45+
bower_components
46+
47+
# node-waf configuration
48+
.lock-wscript
49+
50+
# Compiled binary addons (https://nodejs.org/api/addons.html)
51+
build/Release
52+
53+
# Dependency directories
54+
node_modules/
55+
jspm_packages/
56+
57+
# TypeScript v1 declaration files
58+
typings/
59+
60+
# Optional npm cache directory
61+
.npm
62+
63+
# Optional eslint cache
64+
.eslintcache
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variables file
76+
.env
77+
78+
# parcel-bundler cache (https://parceljs.org/)
79+
.cache
80+
81+
# next.js build output
82+
.next
83+
84+
# nuxt.js build output
85+
.nuxt
86+
87+
# vuepress build output
88+
.vuepress/dist
89+
90+
# Serverless directories
91+
.serverless
92+
93+
### OSX ###
94+
# General
95+
.DS_Store
96+
.AppleDouble
97+
.LSOverride
98+
99+
# Icon must end with two \r
100+
Icon
101+
102+
# Thumbnails
103+
._*
104+
105+
# Files that might appear in the root of a volume
106+
.DocumentRevisions-V100
107+
.fseventsd
108+
.Spotlight-V100
109+
.TemporaryItems
110+
.Trashes
111+
.VolumeIcon.icns
112+
.com.apple.timemachine.donotpresent
113+
114+
# Directories potentially created on remote AFP share
115+
.AppleDB
116+
.AppleDesktop
117+
Network Trash Folder
118+
Temporary Items
119+
.apdisk
120+
121+
### Vim ###
122+
# Swap
123+
[._]*.s[a-v][a-z]
124+
[._]*.sw[a-p]
125+
[._]s[a-rt-v][a-z]
126+
[._]ss[a-gi-z]
127+
[._]sw[a-p]
128+
129+
# Session
130+
Session.vim
131+
132+
# Temporary
133+
.netrwhist
134+
# Auto-generated tag files
135+
tags
136+
# Persistent undo
137+
[._]*.un~
138+
139+
### Windows ###
140+
# Windows thumbnail cache files
141+
Thumbs.db
142+
ehthumbs.db
143+
ehthumbs_vista.db
144+
145+
# Dump file
146+
*.stackdump
147+
148+
# Folder config file
149+
[Dd]esktop.ini
150+
151+
# Recycle Bin used on file shares
152+
$RECYCLE.BIN/
153+
154+
# Windows Installer files
155+
*.cab
156+
*.msi
157+
*.msix
158+
*.msm
159+
*.msp
160+
161+
# Windows shortcuts
162+
*.lnk
163+
164+
# End of https://www.gitignore.io/api/vim,osx,node,linux,windows
165+
166+
### Development ###
167+
.babelrc
168+
src
169+
demo
170+
flow-typed
171+
172+
# VCS
173+
.git
174+
.svn

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
## 1.0.0 - 2018-08-26
4+
- Features
5+
- quotation APIs
6+
- connect websocket
7+
- get ticker(s)
8+
- get candles
9+
- get orderbook
10+
- exchange APIs
11+
- get assets
12+
- get order change
13+
- get order(s)
14+
- create order
15+
- cancel order(s)

‎LICENSE.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 wonism
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.

0 commit comments

Comments
 (0)