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 8, 2022. It is now read-only.

Commitf329486

Browse files
authored
build: reduce build size (#1132)
* Revert toe950c57, ci build ok one* chore: remove sentry in _app* chore: debug wip* chore: rm sentry wip* chore: rm sentry wip* chore: rm sentry wip* chore: rm sentry wip* chore: rm sentry wip* chore: rm sentry deps* chore: wip* chore: wip* chore: wip* chore: wip* build(size): raw page with store down to 178KB* chore: wip* build(size): reduce wip* build(size): reduce wip* chore: wip* chore: down to 268kb* build(size): reduce wip* chore: utils import wip* chore: replace apollo-client wip* chore: replace apollo-client wip* build(size): reduce wip* build(size): reduce wip* build(size): reduce 206kB, wip* build(size): update eslint* build(size): wip* chore: debug ci* chore: debug ci* chore: debug ci* chore: debug* chore: use old version of header* chore: upgrade cypress* chore: upgrade cypress* ci: add host on action* ci: add host on action* ci: add host on action* ci: debug network error* ci: downgrade cy to 4.2.0* chore: fix header test* chore: clean up* chore: header props adjust* chore: remove header store in root-state-tree
1 parent79a6d43 commitf329486

File tree

1,167 files changed

+4434
-2683
lines changed

Some content is hidden

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

1,167 files changed

+4434
-2683
lines changed

‎.eslintignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ next-env.d.ts
55
*.lock
66
*.hbs
77
*.svg
8-
*.png
8+
*.png
9+
*.txt

‎.eslintrc.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ module.exports = {
4343
rules:{
4444
'@typescript-eslint/no-var-requires':0,
4545
'@typescript-eslint/ban-ts-comment':0,
46+
'no-setter-return':0,
47+
'no-dupe-else-if':0,
4648
'react/jsx-uses-react':'off',
4749
'react/react-in-jsx-scope':'off',
4850
'react/jsx-filename-extension':[
-120 KB
Binary file not shown.
-133 KB
Binary file not shown.

‎jsconfig.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
"@/services/*": ["src/services/*"],
99
"@/constant": ["utils/constant"],
1010
"@/hooks": ["src/hooks"],
11+
"@/hooks/*": ["src/hooks/*"],
1112
"@/hoc": ["src/hoc"],
1213
"@/config": ["config"],
1314
"@/stores/*": ["src/stores/*"],
1415
"@/model": ["src/stores/SharedModel"],
1516
"@/utils": ["utils"],
17+
"@/utils/*": ["utils/*"],
1618
"@/schemas": ["src/schemas"],
1719
"@/Img": ["src/components/Img"],
1820
"@/SvgIcons/*": ["src/components/SvgIcons/*"],

‎next.config.docker.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const nextConfig = {
2424
'process.env.SENTRY_RELEASE':JSON.stringify(buildId),
2525
}),
2626
)
27+
if(!isServer){
28+
config.resolve.alias['@sentry/node']='@sentry/browser'
29+
}
2730

2831
returnconfig
2932
},

‎next.config.js‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
99
})
1010
constofflineConfig=require('./config/next_offline')
1111

12-
// Use the SentryWebpack plugin to upload the source maps during build step
13-
// const SentryWebpackPlugin = require('@sentry/webpack-plugin')
14-
15-
// const {
16-
// NEXT_PUBLIC_SENTRY_DSN: SENTRY_DSN,
17-
// SENTRY_ORG,
18-
// SENTRY_PROJECT,
19-
// SENTRY_AUTH_TOKEN,
20-
// NODE_ENV,
21-
// } = process.env
22-
23-
// process.env.SENTRY_DSN = SENTRY_DSN
24-
2512
// next-plugins end
2613

2714
constnextConfig={

‎package.json‎

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev":"cross-env NODE_ENV=dev node server.js",
77
"prod":"cross-env NODE_ENV=production run-p server",
88
"local":"cross-env NODE_ENV=local node server",
9-
"ci":"cross-env NODE_ENV=ci node server",
9+
"ci":"cross-env NODE_ENV=ci node server --inspect",
1010
"server":"npm run clean && node server.js",
1111
"build":"next build",
1212
"build:clean":"run-s dist clean",
@@ -58,12 +58,6 @@
5858
"@tippyjs/react":"4.2.5",
5959
"@zeit/next-source-maps":"0.0.4-canary.1",
6060
"accepts":"^1.3.4",
61-
"apollo-cache-inmemory":"1.6.3",
62-
"apollo-client":"2.6.4",
63-
"apollo-link":"1.2.13",
64-
"apollo-link-error":"^1.1.12",
65-
"apollo-link-http":"1.5.16",
66-
"apollo-link-retry":"2.2.15",
6761
"babel-plugin-add-react-displayname":"^0.0.5",
6862
"babel-plugin-styled-components":"^1.12.0",
6963
"cacheable-response":"^2.0.9",
@@ -78,9 +72,8 @@
7872
"draft-js-plugins-editor":"2.1.1",
7973
"express":"^4.16.4",
8074
"glob":"^7.1.2",
81-
"graphql":"14.5.5",
82-
"graphql-request":"^1.6.0",
83-
"graphql-tag":"^2.6.1",
75+
"graphql":"^15.5.1",
76+
"graphql-request":"3.5.0",
8477
"graphql-voyager":"^1.0.0-rc.31",
8578
"js-cookie":"^2.2.0",
8679
"mastani-codehighlight":"0.0.7",
@@ -94,7 +87,7 @@
9487
"next-compose-plugins":"^2.2.0",
9588
"next-i18next":"4.4.1",
9689
"next-offline":"4.0.6",
97-
"nextjs-progressbar":"^0.0.6",
90+
"nextjs-progressbar":"0.0.11",
9891
"overlayscrollbars":"1.13.1",
9992
"path-match":"^1.2.4",
10093
"polished":"4.1.3",
@@ -108,7 +101,6 @@
108101
"react-calendar-heatmap":"1.8.1",
109102
"react-content-loader":"3.4.2",
110103
"react-copy-to-clipboard":"^5.0.3",
111-
"react-device-detect":"^1.17.0",
112104
"react-dom":"17.0.2",
113105
"react-highlight-words":"^0.16.0",
114106
"react-lazy-load-image-component":"1.5.0",
@@ -138,7 +130,8 @@
138130
"stringz":"^2.0.0",
139131
"styled-components":"5.3.0",
140132
"timeago-react":"3.0.2",
141-
"tinykeys":"^1.0.6"
133+
"tinykeys":"^1.0.6",
134+
"urql":"^2.0.4"
142135
},
143136
"devDependencies": {
144137
"@commitlint/cli":"^8.2.0",
@@ -156,12 +149,12 @@
156149
"bundlewatch":"^0.2.7",
157150
"commitizen":"3.1.2",
158151
"coveralls":"3.0.14",
159-
"cypress":"^7.0.0",
152+
"cypress":"4.2.0",
160153
"cz-conventional-changelog":"^3.0.0",
161154
"enzyme":"3.11.0",
162155
"enzyme-adapter-react-16":"1.15.2",
163156
"enzyme-to-json":"^3.3.4",
164-
"eslint":"6.4.0",
157+
"eslint":"^7.32.0",
165158
"eslint-config-next":"^11.0.1",
166159
"husky":"^3.0.0",
167160
"jest":"26.2.2",

‎server/helper.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
constdev=
2-
process.env.NODE_ENV!=='production'&&process.env.NODE_ENV!=='ci'
1+
constdev=process.env.NODE_ENV!=='production'// && process.env.NODE_ENV !== 'ci'
32

43
constcacheableResponse=require('cacheable-response')
54

‎src/components/AlertBar/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import{FC,ReactNode,memo}from'react'
88

9-
import{buildLog}from'@/utils'
9+
import{buildLog}from'@/utils/logger'
1010

1111
import{Wrapper}from'./styles'
1212

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp