Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit33e71dd

Browse files
committed
Merge branch 'dev'
2 parents594d4f2 +ffd71de commit33e71dd

File tree

459 files changed

+17208
-9698
lines changed

Some content is hidden

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

459 files changed

+17208
-9698
lines changed

‎.babelrc‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"plugins": [
3-
"transform-decorators-legacy",
3+
["@babel/plugin-proposal-decorators", {"legacy":true }],
4+
"transform-inline-environment-variables",
45
[
5-
"styled-components",
6+
"babel-plugin-styled-components",
67
{
78
"ssr":true,
89
"displayName":true,
@@ -25,13 +26,18 @@
2526
],
2627
"env": {
2728
"development": {
28-
"presets": ["next/babel"]
29+
"presets": ["next/babel"],
30+
"plugins": ["inline-dotenv"]
31+
},
32+
"local": {
33+
"presets": ["next/babel"],
2934
},
3035
"production": {
3136
"presets": ["next/babel"]
3237
},
3338
"test": {
34-
"presets": [["next/babel", {"preset-env": {"modules":"commonjs" } }]]
39+
"presets": [["next/babel", {"preset-env": {"modules":"commonjs" } }]],
40+
"plugins": ["inline-dotenv"]
3541
}
3642
}
3743
}

‎.eslintrc.js‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports={
22
extends:['airbnb','plugin:react/recommended','prettier','prettier/react'],
3-
plugins:['prettier','react'],
3+
plugins:['prettier','react','cypress'],
44
parser:'babel-eslint',
55
parserOptions:{
66
ecmaVersion:2016,
@@ -13,26 +13,34 @@ module.exports = {
1313
es6:true,
1414
node:true,
1515
jest:true,
16+
'cypress/globals':true,
1617
},
1718
rules:{
1819
'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
20+
// need for _store init
21+
'no-underscore-dangle':0,
22+
// heavilly used in store.actions
23+
'no-param-reassign':0,
24+
// heavilly used in store.views
25+
'no-use-before-define':0,
26+
// force-return is unneeded
2127
'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
28+
'no-shadow':0,
29+
// error could be object for parse by upfloor
2530
'prefer-promise-reject-errors':0,
2631
'react/jsx-no-bind':0,
32+
// allow JSX in js files
2733
'react/jsx-filename-extension':[1,{extensions:['.js','.jsx']}],
2834
'react/forbid-prop-types':0,
35+
// no need sort
2936
'react/sort-comp':0,
3037
'react/prop-types':[1,{skipUndeclared:true}],
3138
'jsx-a11y/href-no-hash':'off',
3239
'jsx-a11y/no-static-element-interactions':0,
3340
'jsx-a11y/click-events-have-key-events':0,
34-
'import/no-named-as-default':0,
35-
'import/no-named-as-default-member':0,
41+
42+
// for cypress test usage
43+
'no-unused-expressions':0,
3644

3745
'prettier/prettier':[
3846
'error',

‎.jest.config.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports={
2+
setupFiles:['<rootDir>/.jest.setup.js'],
3+
coverageDirectory:'./coverage/',
4+
testURL:'http://localhost/',
5+
collectCoverage:true,
6+
snapshotSerializers:['enzyme-to-json/serializer'],
7+
testPathIgnorePatterns:[
8+
'<rootDir>/.next/',
9+
'<rootDir>/node_modules/',
10+
'<rootDir>/cypress',
11+
],
12+
}
File renamed without changes.

‎Makefile‎

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
include Makefile.include.mk
2+
3+
help:
4+
$(call launch.help)
5+
$(call gen.help)
6+
$(call commit.help)
7+
$(call release.help)
8+
$(call deploy.help)
9+
$(call test.help)
10+
$(call dashboard.help)
11+
$(call ci.help)
12+
$(call github.help)
13+
@echo"\n"
14+
15+
init:
16+
npm install
17+
18+
dep:
19+
npm install# for commitizen
20+
21+
build:
22+
npm build
23+
24+
dev:
25+
npm runlocal
26+
27+
launch.help:
28+
$(call launch.help)
29+
@echo"\n"
30+
launch:
31+
$(call launch.help)
32+
@echo"\n"
33+
launch.dev:
34+
npm run launch.dev
35+
launch.prod:
36+
SERVE_PORT=8002 npm run launch
37+
38+
gen.help:
39+
$(call gen.help)
40+
@echo"\n"
41+
gen:
42+
npm run gen
43+
44+
commit.help:
45+
$(call commit.help)
46+
@echo"\n"
47+
commit:
48+
npx git-cz
49+
50+
# release
51+
release.help:
52+
$(call release.help)
53+
@echo"\n"
54+
release:
55+
npm run release
56+
release.master:
57+
npm run release
58+
git push --follow-tags origin master
59+
release.dev:
60+
npm run release
61+
git push --follow-tags origin dev
62+
63+
deploy:
64+
$(call deploy.help)
65+
@echo"\n"
66+
deploy.help:
67+
$(call deploy.help)
68+
@echo"\n"
69+
deploy.dev:
70+
./deploy/dev/packer.sh
71+
git add.
72+
git commit -am"build: development"
73+
git push
74+
@echo"------------------------------"
75+
@echo"deploy to docker done!"
76+
@echo"todo: restart docker container"
77+
deploy.prod:
78+
./deploy/production/packer.sh
79+
git add.
80+
git commit -am"build: production"
81+
git push
82+
@echo"------------------------------"
83+
@echo"deploy to docker done!"
84+
@echo"todo: restart docker container"
85+
86+
test.help:
87+
$(call test.help)
88+
@echo"\n"
89+
test:
90+
npm runtest
91+
test.e2e:
92+
npm run test:e2e
93+
test.dev:
94+
npm run test:dev
95+
test.watch:
96+
npm run test:watch
97+
test.coverage:
98+
npm run test:cover
99+
test.report.text:
100+
npm run test:cover
101+
102+
# lint code
103+
lint.help:
104+
$(call lint.help)
105+
@echo"\n"
106+
lint:
107+
npm run lint
108+
lint.watch:
109+
npm run lint:watch# use dialyzer
110+
111+
# dashboard
112+
dashboard.help:
113+
$(call dashboard.help)
114+
@echo"\n"
115+
dashboard:
116+
$(call dashboard.help)
117+
@echo"\n"
118+
dashboard.ga:
119+
$(call browse,"$(DASHBOARD_GA_LINK)")
120+
dashboard.apollo:
121+
$(call browse,"$(DASHBOARD_APOLLO_LINK)")
122+
dashboard.pm2:
123+
$(call browse,"$(DASHBOARD_PM2_LINK)")
124+
dashboard.errors:
125+
$(call browse,"$(DASHBOARD_SENTRY_LINK)")
126+
dashboard.aliyun:
127+
$(call browse,"$(DASHBOARD_ALIYUN_LINK)")
128+
129+
# ci helpers
130+
ci.help:
131+
$(call ci.help)
132+
@echo"\n"
133+
ci:
134+
$(call ci.help)
135+
@echo"\n"
136+
ci.build:
137+
$(call browse,"$(CI_BUILD_LINK)")
138+
ci.coverage:
139+
$(call browse,"$(CI_COVERAGE_LINK)")
140+
ci.codecov:
141+
$(call browse,"$(CI_CODECOV_LINK)")
142+
ci.codefactor:
143+
$(call browse,"$(CI_CODEFACTOR_LINK)")
144+
ci.codacy:
145+
$(call browse,"$(CI_CODACY_LINK)")
146+
ci.doc:
147+
$(call browse,"$(CI_DOC_LINK)")
148+
ci.depsbot:
149+
$(call browse,"$(CI_DEPSBOT_LINK)")
150+
151+
# github helpers
152+
github:
153+
$(call github.help)
154+
@echo"\n"
155+
github.help:
156+
$(call github.help)
157+
@echo"\n"
158+
github.code:
159+
$(call browse,"$(GITHUB_CODE_LINK)")
160+
github.doc:
161+
$(call browse,"$(GITHUB_DOC_LINK)")
162+
github.pr:
163+
$(call browse,"$(GITHUB_PR_LINK)")
164+
github.issue:
165+
$(call browse,"$(GITHUB_ISSUE_LINK)")
166+
github.issue.new:
167+
$(call browse,"$(GITHUB_ISSUE_LINK)/new")
168+
github.app:
169+
$(call browse,"$(GITHUB_APP_LINK)")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp