Skip to content

Commit c2714ff

Browse files
authored
Merge pull request #48 from tbolis/develop
Develop -> Master
2 parents 43e0326 + e76182d commit c2714ff

34 files changed

+7992
-6694
lines changed

.babelrc

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
{
22
"presets": [
3-
[
4-
"env",
5-
{
6-
"modules": false
7-
}
8-
],
9-
"react",
10-
"stage-0"
3+
"@babel/preset-env", "@babel/preset-react"
114
],
125
"plugins": [
6+
"@babel/plugin-transform-runtime",
137
"react-hot-loader/babel",
14-
"transform-object-assign",
15-
"transform-react-display-name",
16-
"transform-runtime"
8+
9+
// Stage 2 https://github.com/babel/babel/tree/master/packages/babel-preset-stage-2
10+
["@babel/plugin-proposal-decorators", { "legacy": true }],
11+
"@babel/plugin-proposal-function-sent",
12+
"@babel/plugin-proposal-export-namespace-from",
13+
"@babel/plugin-proposal-numeric-separator",
14+
"@babel/plugin-proposal-throw-expressions",
15+
16+
// Stage 3
17+
"@babel/plugin-syntax-dynamic-import",
18+
"@babel/plugin-syntax-import-meta",
19+
["@babel/plugin-proposal-class-properties", { "loose": true }],
20+
"@babel/plugin-proposal-json-strings"
1721
]
1822
}

.eslintrc

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,25 @@
22
"parser": "babel-eslint",
33
"plugins": [
44
"react",
5+
"jest",
56
"eslint-plugin-react"
67
],
78
"env": {
8-
"browser": true,
9-
"amd": true,
109
"es6": true,
11-
"node": false
10+
"jest": true,
11+
"amd": true,
12+
"browser": true,
13+
"node": true
1214
},
13-
"rules": {
14-
"comma-dangle": 1,
15-
"quotes": [
16-
1,
17-
"single"
18-
],
19-
"no-undef": 1,
20-
"global-strict": 0,
21-
"no-extra-semi": 1,
22-
"no-underscore-dangle": 0,
23-
"no-extra-parens": 0,
24-
"no-console": 1,
25-
"no-unused-vars": 1,
26-
"no-trailing-spaces": [
27-
1,
28-
{
29-
"skipBlankLines": true
30-
}
31-
],
32-
"no-alert": 0,
33-
"no-unreachable": 1,
34-
"react/jsx-uses-react": 1,
35-
"react/jsx-uses-vars": 1
15+
"extends": [
16+
"eslint:recommended",
17+
"plugin:react/recommended"
18+
],
19+
"globals": {
20+
"React": true,
21+
"document": true,
22+
"require": true,
23+
"window": true,
24+
"localStorage": true
3625
}
3726
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ node_modules
158158

159159
lib/
160160
build/
161+
dist/
161162

162163
### Windows template
163164
# Windows image file caches

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: node_js
22
node_js:
3+
- "10"
34
- "9"
45
- "8"
5-
- "7"
6-
- "6"
76
cache:
87
yarn: true
98
directories:
@@ -18,5 +17,5 @@ addons:
1817
- g++-4.8
1918
before_install:
2019
- sudo apt-get update -qq
20+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.9.4
2121
- sudo apt-get install -y -qq libgif-dev libpng-dev libjpeg8-dev libpango1.0-dev libcairo2-dev
22-
script: 'npm run build && npm run test'

examples/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
};
2424
(function () {
2525
var wf = document.createElement('script');
26-
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
26+
wf.src = ('https:' === document.location.protocol ? 'https' : 'http') +
2727
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
2828
wf.type = 'text/javascript';
2929
wf.async = 'true';

examples/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body, html {
1515
min-height: 100%;
1616
width: 100%;
1717
height: 100%;
18-
background-color: #eeffd3;
18+
background-color: #607d8b;
1919
color: #000000;
2020
}
2121

0 commit comments

Comments
 (0)