Skip to content

Commit b1ca9d8

Browse files
committed
wip, reorganize structure to fit updated APIs, prepare tests for migration to Jest
1 parent f339a34 commit b1ca9d8

Some content is hidden

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

46 files changed

+8575
-16859
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Matches multiple files with brace expansion notation
12+
# Set default charset
13+
[*.js]
14+
charset = utf-8
15+
indent_style = space
16+
indent_size = 2
17+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

.eslintrc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@
1212
"browser": true,
1313
"node": true
1414
},
15+
"globals": {
16+
"jest": true,
17+
"describe": true,
18+
"it": true,
19+
"test": true,
20+
"expect": true,
21+
"should": true,
22+
"assert": true,
23+
"beforeEach": true,
24+
"afterEach": true,
25+
"beforeAll": true,
26+
"afterAll": true,
27+
"before": true,
28+
"after": true
29+
},
1530
"rules": {
1631
"arrow-parens": [
1732
"error",
@@ -25,6 +40,10 @@
2540
],
2641
"no-param-reassign": 1,
2742
"padded-blocks": 0,
28-
"no-plusplus": 0
43+
"no-plusplus": 0,
44+
"function-paren-newline": 0,
45+
"object-curly-newline": 0,
46+
"no-bitwise": 0,
47+
"max-len": ["error", { "code": 120 }]
2948
}
3049
}

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Auto detect text files and perform LF normalization
2-
* text=auto
2+
* text=auto eol=lf
33

44
# Custom for Visual Studio
55
*.cs diff=csharp

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Thumbs.db
33
ehthumbs.db
44

55
.idea/
6+
.history/
7+
.vscode/
68

79
bower_components/
810
node_modules/

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.*
2+
coverage/
3+
fixtures/
4+
source/
5+
__tests__/
6+
rollup.*

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"arrowParens": "always",
5+
"parser": "flow",
6+
"printWidth": 100
7+
}

.travis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
language: node_js
22
node_js:
33
- "8"
4-
addons:
5-
firefox: "latest"
64
before_script:
7-
- export DISPLAY=:99.0
8-
- sh -e /etc/init.d/xvfb start
9-
- sleep 3
10-
- webpack
5+
- npm install rollup jest-cli eslint coveralls -g
6+
- npm run build
7+
- npm run lint
8+
script: npm run test -- --coverage --coverageReporters=text-lcov | coveralls

bower.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

dist/worker-dispatcher.direct.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)