Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 56ae9e5

Browse files
committed
add missing file to make project run
1 parent 091a628 commit 56ae9e5

File tree

8 files changed

+153
-21
lines changed

8 files changed

+153
-21
lines changed

.agignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
yarn.lock
3+
coverage
4+
./build
5+
./bin
6+
./npm-debug.log
7+
.next

.babelrc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"presets": [
3+
"next/babel"
4+
],
5+
"plugins": [
6+
"transform-decorators-legacy",
7+
[
8+
"styled-components",
9+
{
10+
"ssr": true,
11+
"displayName": true,
12+
"preprocess": false
13+
}
14+
],
15+
[
16+
"react-intl",
17+
{
18+
"messagesDir": "lang/.messages/"
19+
}
20+
],
21+
[
22+
"import",
23+
{
24+
"libraryName": "antd"
25+
}
26+
],
27+
"ramda"
28+
],
29+
"env": {
30+
"test": {
31+
"presets": [
32+
[
33+
"env",
34+
{
35+
"modules": "commonjs"
36+
}
37+
],
38+
"next/babel"
39+
]
40+
}
41+
}
42+
}

.eslintrc.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = {
2+
extends: ['airbnb', 'plugin:react/recommended', 'prettier', 'prettier/react'],
3+
plugins: ['prettier', 'react'],
4+
parser: 'babel-eslint',
5+
parserOptions: {
6+
ecmaVersion: 2016,
7+
sourceType: 'module',
8+
ecmaFeatures: {
9+
jsx: true,
10+
},
11+
},
12+
env: {
13+
es6: true,
14+
node: true,
15+
jest: true,
16+
},
17+
rules: {
18+
'arrow-body-style': 0,
19+
'no-param-reassign': 0, // heavilly used in store.actions
20+
'no-use-before-define': 0, // heavilly used in store.views
21+
'consistent-return': 0,
22+
'no-nested-ternary': 0, // TODO
23+
'no-shadow': 0, //TODO: currently just for entry
24+
'no-return-assign': 0, //TODO currently only for BookStore
25+
'prefer-promise-reject-errors': 0,
26+
'react/jsx-no-bind': 0,
27+
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
28+
'react/forbid-prop-types': 0,
29+
'react/sort-comp': 0,
30+
'react/prop-types': [1, { skipUndeclared: true }],
31+
'jsx-a11y/href-no-hash': 'off',
32+
'jsx-a11y/no-static-element-interactions': 0,
33+
'jsx-a11y/click-events-have-key-events': 0,
34+
'import/no-named-as-default': 0,
35+
'import/no-named-as-default-member': 0,
36+
37+
'prettier/prettier': [
38+
'error',
39+
{
40+
singleQuote: true,
41+
semi: false,
42+
tabWidth: 2,
43+
bracketSpacing: true,
44+
trailingComma: 'es5',
45+
},
46+
],
47+
},
48+
}

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"bracketSpacing": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"tabWidth": 2,
6+
"semi": false
7+
}

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: node_js
2+
3+
node_js:
4+
- 9
5+
- 8
6+
- 7
7+
8+
script:
9+
- npm run lint
10+
- npm run test
11+
- npm run build
12+
13+
before_install:
14+
- export CHROME_BIN=chromium-browser
15+
- export DISPLAY=:99.0
16+
- sh -e /etc/init.d/xvfb start
17+
18+
notifications:
19+
email:
20+
on_failure: change
21+
22+
after_success: 'npm run coveralls'
23+
24+
cache:
25+
yarn: true
26+
directories:
27+
- node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"mobx-react": "5.0.0",
7676
"mobx-state-tree": "2.0.1",
7777
"module-alias": "^2.0.1",
78-
"next": "6.0.0",
78+
"next": "6.0.1",
7979
"path-match": "^1.2.4",
8080
"polished": "1.9.2",
8181
"prop-types": "^15.5.10",

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ app.prepare().then(() => {
100100
return handle(req, res)
101101
}).listen(3001, err => {
102102
if (err) throw err
103-
console.log('> Ready on http://localhost:3000')
103+
console.log('> Ready on http://localhost:3001')
104104
})
105105
})

yarn.lock

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7151,9 +7151,9 @@ [email protected]:
71517151
version "0.6.1"
71527152
resolved "http://r.cnpmjs.org/negotiator/download/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
71537153

7154-
7155-
version "6.0.0"
7156-
resolved "https://registry.npmjs.org/next/-/next-6.0.0.tgz#700489ff9d93c36f3ade0b474d08b9b0dd9ef7b3"
7154+
7155+
version "6.0.1"
7156+
resolved "https://registry.npmjs.org/next/-/next-6.0.1.tgz#dc560b32cc3cc1cfe1ed4eba8e52fc368d021564"
71577157
dependencies:
71587158
"@babel/core" "7.0.0-beta.42"
71597159
"@babel/plugin-proposal-class-properties" "7.0.0-beta.42"
@@ -7189,16 +7189,17 @@ [email protected]:
71897189
path-to-regexp "2.1.0"
71907190
prop-types "15.6.0"
71917191
prop-types-exact "1.1.1"
7192-
react-hot-loader "4.1.1"
7192+
react-hot-loader "4.1.3"
71937193
recursive-copy "2.0.6"
71947194
resolve "1.5.0"
71957195
send "0.16.1"
7196+
source-map "0.5.7"
71967197
strip-ansi "3.0.1"
71977198
styled-jsx "2.2.6"
71987199
touch "3.1.0"
71997200
uglifyjs-webpack-plugin "1.1.6"
72007201
unfetch "3.0.0"
7201-
update-check "1.3.2"
7202+
update-check "1.4.0"
72027203
url "0.11.0"
72037204
uuid "3.1.0"
72047205
walk "2.3.9"
@@ -8665,15 +8666,15 @@ [email protected]:
86658666
object-assign "^4.1.1"
86668667
prop-types "^15.6.0"
86678668

8668-
8669-
version "4.1.1"
8670-
resolved "https://registry.npmjs.org/react-hot-loader/-/react-hot-loader-4.1.1.tgz#693499a6414b6dc6880287e254322a9d3155e944"
8669+
8670+
version "4.1.3"
8671+
resolved "https://registry.npmjs.org/react-hot-loader/-/react-hot-loader-4.1.3.tgz#b4ceca7961cc08451f8199a24a5753a749edd9ce"
86718672
dependencies:
86728673
fast-levenshtein "^2.0.6"
86738674
global "^4.3.0"
86748675
hoist-non-react-statics "^2.5.0"
86758676
prop-types "^15.6.1"
8676-
react-lifecycles-compat "^2.0.0"
8677+
react-lifecycles-compat "^3.0.2"
86778678
shallowequal "^1.0.2"
86788679

86798680
@@ -8720,9 +8721,9 @@ react-lazy-load@^3.0.12:
87208721
lodash.throttle "^4.0.0"
87218722
prop-types "^15.5.8"
87228723

8723-
react-lifecycles-compat@^2.0.0:
8724-
version "2.0.2"
8725-
resolved "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-2.0.2.tgz#00a23160eec17a43b94dd74f95d44a1a2c3c5ec1"
8724+
react-lifecycles-compat@^3.0.2:
8725+
version "3.0.4"
8726+
resolved "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
87268727

87278728
react-map-gl@^3.2.1:
87288729
version "3.2.1"
@@ -9733,6 +9734,10 @@ source-map-url@^0.4.0:
97339734
version "0.4.0"
97349735
resolved "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
97359736

9737+
[email protected], source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3, source-map@~0.5.6:
9738+
version "0.5.7"
9739+
resolved "http://r.cnpmjs.org/source-map/download/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
9740+
97369741
[email protected], source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
97379742
version "0.6.1"
97389743
resolved "http://r.cnpmjs.org/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
@@ -9753,10 +9758,6 @@ source-map@^0.4.4:
97539758
dependencies:
97549759
amdefine ">=0.0.4"
97559760

9756-
source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3, source-map@~0.5.6:
9757-
version "0.5.7"
9758-
resolved "http://r.cnpmjs.org/source-map/download/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
9759-
97609761
spawn-sync@^1.0.15:
97619762
version "1.0.15"
97629763
resolved "http://r.cnpmjs.org/spawn-sync/download/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476"
@@ -10574,9 +10575,9 @@ unzip-response@^2.0.1:
1057410575
version "2.0.1"
1057510576
resolved "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97"
1057610577

10577-
update-check@1.3.2:
10578-
version "1.3.2"
10579-
resolved "https://registry.npmjs.org/update-check/-/update-check-1.3.2.tgz#460f9e9ab24820367f3edbeb4d4142d9936ff171"
10578+
update-check@1.4.0:
10579+
version "1.4.0"
10580+
resolved "https://registry.npmjs.org/update-check/-/update-check-1.4.0.tgz#800235ba1bd1ace324e646eb055799a09aed8b28"
1058010581
dependencies:
1058110582
registry-auth-token "3.3.2"
1058210583
registry-url "3.1.0"

0 commit comments

Comments
 (0)