Skip to content

Commit 759ee19

Browse files
committed
支持在VSC中调试。BTGrid基础操作完成。
1 parent f122323 commit 759ee19

Some content is hidden

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

45 files changed

+13367
-2
lines changed

.DS_Store

6 KB
Binary file not shown.

.babelrc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": "last 2 versions, > 1%, ie >= 8, Chrome >= 29, Firefox >= 55, Safari >= 9, Android >= 4, iOS >= 9, and_uc > 11",
8+
"node": "8"
9+
},
10+
"modules": "commonjs",
11+
"loose": false
12+
}
13+
]
14+
],
15+
"plugins": [
16+
[
17+
"@babel/plugin-transform-runtime",
18+
{
19+
"helpers": false,
20+
"regenerator": false
21+
}
22+
]
23+
],
24+
"env": {
25+
"test": {
26+
"plugins": [
27+
"istanbul"
28+
]
29+
}
30+
}
31+
}

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[{*,ts,*.js,*.css,*.html}]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true
9+
10+
[{package.json,.*rc,*.yml}]
11+
indent_style = space
12+
indent_size = 2

.eslintrc.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": false
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"sourceType": "module"
14+
},
15+
"plugins": ["@typescript-eslint"],
16+
"rules": {
17+
"indent": [
18+
"error",
19+
4
20+
],
21+
"linebreak-style": [
22+
"error",
23+
"unix"
24+
],
25+
"quotes": [
26+
"error",
27+
"single"
28+
],
29+
"semi": [
30+
"error",
31+
"always"
32+
],
33+
"no-console": "off",
34+
"max-classes-per-file": ["error", 2],
35+
}
36+
};

.eslintrc.ts.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
"overrides": [
3+
{
4+
"files": ["*.ts", "*.tsx"],
5+
"rules": {
6+
"no-dupe-class-members": "off"
7+
}
8+
}
9+
]
10+
}

.github/ISSUE_TEMPLATE.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### 问题是什么
2+
3+
问题的具体描述,尽量详细
4+
5+
### 环境
6+
7+
- 手机: 小米6
8+
- 系统:安卓7.1.1
9+
- 浏览器:chrome 61
10+
- jslib版本:0.2.0
11+
- 其他版本信息
12+
13+
### 在线例子
14+
15+
如果有请提供在线例子
16+
17+
### 其他
18+
19+
其他信息

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
.nyc_output
4+
coverage
5+
.rpt2_cache

.mocharc.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"diff": true,
3+
"extension": [
4+
"ts","js"
5+
],
6+
"require": [
7+
"ts-node/register",
8+
"jsdom-global/register",
9+
"source-map-support/register"
10+
],
11+
"package": "./package.json",
12+
"reporter": "spec",
13+
"slow": 75,
14+
"timeout": 2000,
15+
"ui": "bdd",
16+
"watch-files": [
17+
"test/**/*.spec.ts",
18+
"test/**/*.spec.js"
19+
],
20+
"watch-ignore": [
21+
"lib/vendor"
22+
]
23+
}

.npmignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.d.ts
2+
!index.d.ts
3+
.rpt2_cache
4+
coverage
5+
node_modules
6+
dist
7+
.nyc_output
8+
.vscode

.nycrc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"check-coverage": true,
3+
"lines": 75,
4+
"statements": 75,
5+
"functions": 0,
6+
"branches": 75,
7+
"require": [
8+
"ts-node/register",
9+
"jsdom-global/register",
10+
"source-map-support/register"
11+
],
12+
"reporter": [
13+
"lcov",
14+
"text"
15+
],
16+
"extension": [
17+
".ts"
18+
],
19+
"include": [
20+
"src/**.ts"
21+
],
22+
"exclude": [
23+
"**/*.d.ts"
24+
],
25+
"sourceMap": true,
26+
"instrument": true,
27+
"all": true
28+
}

.nycrc-js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"check-coverage": true,
3+
"lines": 75,
4+
"statements": 75,
5+
"functions": 0,
6+
"branches": 75,
7+
"require": [
8+
"jsdom-global/register",
9+
"@babel/register"
10+
],
11+
"reporter": [
12+
"lcov",
13+
"text"
14+
],
15+
"sourceMap": false,
16+
"instrument": false
17+
}

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
node_js:
3+
- "12"
4+
- "10"
5+
- "8"
6+
- "6"
7+
after_success:
8+
- npm run coveralls

.vscode/launch.json

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "All Tests",
8+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
9+
"args": [
10+
"--require",
11+
"ts-node/register",
12+
"--require",
13+
"jsdom-global",
14+
"--require",
15+
"source-map-support/register",
16+
"-u",
17+
"bdd",
18+
"--timeout",
19+
"999999",
20+
"--colors",
21+
"--recursive",
22+
"${workspaceFolder}/test/**/*.ts"
23+
],
24+
"internalConsoleOptions": "openOnSessionStart",
25+
"skipFiles": [
26+
"<node_internals>/**"
27+
]
28+
},
29+
{
30+
"name": "Current Tests File",
31+
"type": "node",
32+
"request": "launch",
33+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
34+
"args": [
35+
"--require",
36+
"ts-node/register",
37+
"--require",
38+
"jsdom-global",
39+
"--require",
40+
"source-map-support/register",
41+
"-u",
42+
"bdd",
43+
"--timeout",
44+
"999999",
45+
"--colors",
46+
"--recursive",
47+
"${relativeFile}"
48+
],
49+
"cwd": "${workspaceRoot}",
50+
"protocol": "inspector"
51+
}
52+
]
53+
}

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 变更日志
2+
3+
## 0.1.0 / 2020-3-17
4+
5+
- 项目初始化
6+
- 支持 JS ,TS开发项目,通过更改package.json里面的srctype属性切换语言
7+
- 更新所有的package到最新版

LICENSE

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

0 commit comments

Comments
 (0)