Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointing-poker #55

Open
wants to merge 298 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
bd9dae9
feat: split popup for dealer and player
Vimbi Sep 11, 2021
5f0b55f
Merge pull request #16 from no95typem/feature/server
no95typem Sep 11, 2021
78274f4
fix: resolve conflicts with develop
no95typem Sep 11, 2021
9df48de
feat: implement basic gameCards block
Kaesid Sep 11, 2021
6517aff
feat: add remove member method
no95typem Sep 11, 2021
bf2046a
Merge branch 'develop' into feature/popup
Vimbi Sep 12, 2021
3ace99d
feat: implement basic lobby page
Kaesid Sep 12, 2021
54dc055
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 12, 2021
6e03dbf
Merge pull request #19 from no95typem/feature/improved-design
no95typem Sep 12, 2021
7c5a26b
fix: changed according to comments
Vimbi Sep 13, 2021
7651971
Merge branch 'develop' into feature/popup
Vimbi Sep 13, 2021
508dd97
refactor: refactor for merge
no95typem Sep 13, 2021
dbc3536
Merge pull request #18 from no95typem/feature/popup
no95typem Sep 13, 2021
aa15965
feat: implementat some basic store manipulation
Kaesid Sep 14, 2021
0d1953b
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 14, 2021
4b9f702
fix: change package-lock
Kaesid Sep 14, 2021
53802b7
fix: change package-lock
Kaesid Sep 14, 2021
fa17d4a
Merge pull request #21 from no95typem/feature/components
no95typem Sep 14, 2021
d7c5403
feat: server lobby func alpha
no95typem Sep 14, 2021
9af2033
Merge branch 'develop' into feature/server
no95typem Sep 14, 2021
3c9f676
fix: fix types
no95typem Sep 14, 2021
c7c485f
feat: server-client
no95typem Sep 15, 2021
17431ef
fix: fix merge problems
no95typem Sep 15, 2021
9d73c97
Merge pull request #22 from no95typem/feature/server
no95typem Sep 15, 2021
4bad000
feat: implement store interactions for issue block
Kaesid Sep 15, 2021
de992c6
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 15, 2021
36231df
init: start chat development
Vimbi Sep 15, 2021
0cadfa9
feat: implement store interactions for settings block
Kaesid Sep 16, 2021
fff915e
fix: remove debug data
Kaesid Sep 16, 2021
7bbc583
Merge pull request #23 from no95typem/feature/components
no95typem Sep 16, 2021
5f6750a
feat: game
no95typem Sep 16, 2021
64dcb0d
Merge branch 'develop' into feature/server
no95typem Sep 16, 2021
9311c36
feat: implement lobby page
Kaesid Sep 17, 2021
1e93f77
feat: reworked chat msgs logic, loads blocking system, returned anima…
no95typem Sep 17, 2021
5996c6a
refactor: some changes to get consensus
no95typem Sep 17, 2021
e393660
Merge pull request #24 from no95typem/feature/server
no95typem Sep 17, 2021
0d2d34c
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 18, 2021
af23660
refactor: change structure of the project
Kaesid Sep 18, 2021
cbc2f5b
fix: fix home page and redirection
no95typem Sep 18, 2021
1bc3eb6
refactor: change structure of the project
Kaesid Sep 18, 2021
ac39cce
Merge remote-tracking branch 'origin/feature/server' into feature/com…
Kaesid Sep 18, 2021
5aae410
feat: new interface for issues
no95typem Sep 18, 2021
231a87d
feat: block change before server answer
Kaesid Sep 18, 2021
d1d5369
Merge remote-tracking branch 'origin/feature/server' into feature/com…
Kaesid Sep 18, 2021
2b048ee
feat: commit for update develop and merge chat branch
Vimbi Sep 18, 2021
3413d00
feat: implement template game page
Kaesid Sep 18, 2021
380a3b0
feat: add build option for server
no95typem Sep 18, 2021
92cea16
Merge branch 'feature/components' into feature/server
no95typem Sep 18, 2021
b2e79bc
feat: prepare for deploy on netlify
no95typem Sep 18, 2021
ca247e8
feat: preapare for deploy on gh-pages
no95typem Sep 18, 2021
8a76d81
feat: prepare for gh-pages build
no95typem Sep 18, 2021
cd06a66
fix: fix gh-pages build flow
no95typem Sep 18, 2021
ec9b8f9
Merge pull request #25 from no95typem/feature/components
no95typem Sep 19, 2021
a9cb2e4
Merge pull request #26 from no95typem/feature/server
no95typem Sep 19, 2021
71c9225
feat: add handleChatMsg to ServerAdapter, updChatMsgs to sessionSlice…
Vimbi Sep 19, 2021
9034c5a
Merge branch 'develop' into feature/chat
Vimbi Sep 19, 2021
c798f60
feat: update package locks
no95typem Sep 19, 2021
2d26749
feat: finish chat logic
no95typem Sep 19, 2021
148a6c7
fix: fix typings
no95typem Sep 19, 2021
c547887
Merge pull request #27 from no95typem/feature/chat
no95typem Sep 19, 2021
4749389
feat: implement kick func
no95typem Sep 20, 2021
ecf0982
feat: improve design
no95typem Sep 20, 2021
2345860
feat: improve layout for game page
Kaesid Sep 20, 2021
a5d6411
Merge remote-tracking branch 'origin/feature/improve-design' into fea…
Kaesid Sep 20, 2021
f895b32
Merge pull request #28 from no95typem/feature/components
no95typem Sep 20, 2021
66115e0
feat: fixes&cleaning
no95typem Sep 21, 2021
6431242
feat: implement basic game ui
Kaesid Sep 21, 2021
1d45774
feat: implement merge with cleaning-and-fixing branch
Kaesid Sep 21, 2021
052e094
feat: add statistics page, round statistics
Vimbi Sep 21, 2021
25e639e
feat: save-load state in process
no95typem Sep 21, 2021
608291c
Merge remote-tracking branch 'origin/feature/statistics' into feature…
Kaesid Sep 21, 2021
347aa1a
feat: implement statistics block in modal
Kaesid Sep 22, 2021
c5d5810
fix: fix server
no95typem Sep 22, 2021
bd85a58
Merge pull request #29 from no95typem/feature/components
no95typem Sep 22, 2021
b65297f
feat: start page redisign
no95typem Sep 22, 2021
b4a8047
feat: changed GameSardStatistics by importing GameCard
Vimbi Sep 22, 2021
d7d6a05
refactor: change structure of the project
Kaesid Sep 22, 2021
56ac694
Merge branch 'feature/components' of https://github.com/no95typem/poi…
Kaesid Sep 22, 2021
8809af2
Merge remote-tracking branch 'origin/feature/redisign' into feature/c…
Kaesid Sep 22, 2021
335ffe1
fix: fix for deploy on gh-pages
no95typem Sep 22, 2021
073d15c
merge: merge branch develop into feature/xlsx
no95typem Sep 22, 2021
f9b9e9e
Merge branch 'feature/redisign' into feature/xlsx
no95typem Sep 22, 2021
032d1af
feat: implement DnD for issues list
Kaesid Sep 23, 2021
d61e822
feat: redesign of the start page is complete
no95typem Sep 23, 2021
bf0ff62
feat: add default image loader
Vimbi Sep 23, 2021
83c4276
Merge pull request #31 from no95typem/feature/statistics
Kaesid Sep 23, 2021
17d2acf
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 23, 2021
a88cd08
Merge pull request #33 from no95typem/feature/redesign
no95typem Sep 23, 2021
5fa09ae
Merge pull request #32 from no95typem/feature/load-form
Kaesid Sep 23, 2021
2025091
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 23, 2021
92351e4
Merge pull request #34 from no95typem/feature/components
no95typem Sep 23, 2021
e3fc07f
feat: start redesign of the statistics page
Vimbi Sep 23, 2021
70cbf76
feat: implement basic swiper
Kaesid Sep 24, 2021
e7c7f79
feat: working chat
no95typem Sep 24, 2021
7903b25
feat: small ui improvements
no95typem Sep 24, 2021
8c77e45
Merge branch 'feature/redesign' into feature/xlsx
no95typem Sep 25, 2021
2a4cc79
merge: fix merging
no95typem Sep 25, 2021
1180a2d
Merge remote-tracking branch 'origin/feature/redesign' into feature/c…
Kaesid Sep 25, 2021
9615c29
feat: add tests, small redesign statistics
Vimbi Sep 25, 2021
254f610
feat: working save/load
no95typem Sep 25, 2021
6fe9929
feat: implement settings tabs
Kaesid Sep 25, 2021
3300101
feat: independance from the store structure
no95typem Sep 25, 2021
9eb5a02
Merge pull request #35 from no95typem/feature/redesign
no95typem Sep 26, 2021
5621402
refactor: refactor for pr #35
no95typem Sep 26, 2021
46d40d3
feat: issues import
no95typem Sep 26, 2021
4f75895
feat: beautify issues import and fix connect popup styling
no95typem Sep 26, 2021
10df19d
fix: more real example of a structure
no95typem Sep 26, 2021
41ef233
fix: fix styles
no95typem Sep 26, 2021
dfbb9ff
Merge branch 'feature/xlsx' into feature/components
Kaesid Sep 26, 2021
50efbb0
Merge pull request #37 from no95typem/feature/xlsx
no95typem Sep 26, 2021
d94478b
feat: add InputText test
Vimbi Sep 26, 2021
7307cf4
Merge remote-tracking branch origin/develop into feature/statistics
Vimbi Sep 26, 2021
598b0ae
Merge branch 'develop' into feature/statistics
no95typem Sep 26, 2021
e0636da
Merge pull request #36 from no95typem/feature/statistics
no95typem Sep 26, 2021
d573cb2
feat: implement basic responsive slider
Kaesid Sep 26, 2021
e8674a3
feat: add admit functional
no95typem Sep 26, 2021
f02e325
feat: add more tests
Vimbi Sep 26, 2021
5a39870
Merge branch 'feature/statistics' of https://github.com/no95typem/poi…
Vimbi Sep 26, 2021
ba403e1
feat: implement responsive swiper
Kaesid Sep 26, 2021
0172e79
Merge remote-tracking branch 'origin/admit-reject' into feature/compo…
Kaesid Sep 26, 2021
0eaf01a
refactor: update package-locks
no95typem Sep 26, 2021
5c802d9
Merge pull request #38 from no95typem/admit-reject
no95typem Sep 26, 2021
413e7a6
Merge branch 'develop' into feature/components
no95typem Sep 26, 2021
ed52ebe
feat: update locks
no95typem Sep 26, 2021
1d4b53f
feat: update locks
no95typem Sep 26, 2021
c4f08b9
Merge branch 'feature/components' of https://github.com/no95typem/poi…
Kaesid Sep 26, 2021
d274cc5
Merge pull request #40 from no95typem/feature/components
no95typem Sep 26, 2021
3228095
feat: implement swiper for game cards
Kaesid Sep 27, 2021
7cab2e0
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 27, 2021
01650f2
fix: fix compatibility issue
Kaesid Sep 27, 2021
2d9cae8
resolve merge conflict
Vimbi Sep 27, 2021
1437240
Merge branch develop into feature/statistics
Vimbi Sep 27, 2021
396cff2
feat: fix test for NewElementButton
Vimbi Sep 27, 2021
c645835
refactor: refactor admit-reject system
no95typem Sep 27, 2021
c812f3e
Merge branch 'feature/components' into feature/refactor
no95typem Sep 27, 2021
3c6c775
Merge pull request #41 from no95typem/feature/components
no95typem Sep 27, 2021
390e9b3
fix: make a locale entry more expressive
no95typem Sep 27, 2021
6174f38
feat: implement custom card's images loading
Kaesid Sep 28, 2021
7a98728
Merge pull request #39 from no95typem/feature/statistics
Vimbi Sep 28, 2021
d624c2f
Merge pull request #42 from no95typem/feature/refactor
no95typem Sep 28, 2021
f41d289
feat: a new statistics page
no95typem Sep 28, 2021
cc4f107
Merge branch 'feature/components' into feature/stats-page
no95typem Sep 28, 2021
ebef0ba
Merge pull request #43 from no95typem/feature/components
no95typem Sep 28, 2021
dea8ab0
fix: fix some things after merging
no95typem Sep 28, 2021
024def6
feat: add custom scroll to chat, dragging and dropping the chat by th…
Vimbi Sep 28, 2021
175d9e1
Merge branch develop into feature/statistics
Vimbi Sep 28, 2021
1092d41
resolve merge conflict
Vimbi Sep 28, 2021
0658dbf
feat: implement issue value on cards
Kaesid Sep 29, 2021
de10f2b
Merge remote-tracking branch 'origin/feature/stats-page' into feature…
Kaesid Sep 29, 2021
ad1db8b
Merge remote-tracking branch 'origin/develop' into feature/stats-page
Kaesid Sep 29, 2021
d0b81fd
Merge pull request #44 from no95typem/feature/stats-page
Kaesid Sep 29, 2021
9be9e2e
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Sep 29, 2021
50934e5
fix: revert change
Kaesid Sep 29, 2021
6700f4b
Merge pull request #46 from no95typem/feature/components
no95typem Sep 29, 2021
95b22ab
revert lock changes
no95typem Sep 29, 2021
013c3fa
Merge pull request #45 from no95typem/feature/statistics
no95typem Sep 29, 2021
ddcef81
feat: show results, fix layout
no95typem Sep 29, 2021
0834121
add a notification about unread messages
Vimbi Sep 29, 2021
48f0323
Merge branch 'feature/statistics' of https://github.com/no95typem/poi…
Vimbi Sep 29, 2021
1af87ed
Merge branch 'develop' into feature/statistics
Vimbi Sep 29, 2021
6464a8e
Merge branch develop into feature/statistics
Vimbi Sep 29, 2021
90bb368
feat: implement cardbacks
Kaesid Sep 30, 2021
bbbba89
Merge pull request #47 from no95typem/feature/show-results
no95typem Sep 30, 2021
4e9ed21
feat: finish chat and add import/export modal for xlsx
no95typem Sep 30, 2021
24b6f56
feat: update manifest and app description
no95typem Sep 30, 2021
78e4e13
Merge pull request #49 from no95typem/feature/components
no95typem Sep 30, 2021
b303012
Merge branch 'develop' into feature/finished-chat-and-xlsx
no95typem Sep 30, 2021
1faadca
changing the tracking of unread messages, moving the logic to ui
Vimbi Sep 30, 2021
f212c5d
feat: implement timer data saving
Kaesid Oct 1, 2021
f260fc4
Merge pull request #50 from no95typem/feature/finished-chat-and-xlsx
no95typem Oct 1, 2021
d1b08b3
changes were made to comments and add functionality of reading messages
Vimbi Oct 1, 2021
cd1e6c2
Merge branch develop into feature/statistics
Vimbi Oct 1, 2021
953ab80
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Oct 2, 2021
faee463
Merge pull request #51 from no95typem/feature/components
no95typem Oct 2, 2021
88964f7
feat: add a test to replace the deleted one
Vimbi Oct 2, 2021
dd34541
Merge branch 'develop' into feature/statistics
Vimbi Oct 2, 2021
87ef947
feat: implement swipers for statistic
Kaesid Oct 2, 2021
7812d8e
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Oct 2, 2021
6c78a3f
feat: issue value on the server and layout fixes
no95typem Oct 2, 2021
1ceb72a
fix: fix crash on sendSettings
no95typem Oct 2, 2021
820a70a
fix: fix store reset on chrome and setLocalSettings
no95typem Oct 2, 2021
1168b28
feat: rework layouts of lobby and game pages
no95typem Oct 3, 2021
af819cb
Merge remote-tracking branch 'origin/feature/issue-values' into featu…
Kaesid Oct 3, 2021
5464971
fix: fix layout for the issues column
no95typem Oct 3, 2021
350ec54
fix: fix overflow
Kaesid Oct 3, 2021
09a7682
Merge remote-tracking branch 'origin/feature/issue-values' into featu…
Kaesid Oct 3, 2021
29ceb17
fix: fix layout
no95typem Oct 3, 2021
b90829b
feat: implement validation
Kaesid Oct 3, 2021
9de52ac
Merge remote-tracking branch 'origin/feature/issue-values' into featu…
Kaesid Oct 3, 2021
b91ab7e
feat: add presets, fix cardbacks
no95typem Oct 3, 2021
c5640ce
fix: fix chat
no95typem Oct 3, 2021
4f78b9b
Merge branch 'feature/components' into feature/issue-values
no95typem Oct 3, 2021
d19dd10
fix: fix the statistics page layout
no95typem Oct 3, 2021
14f2076
Merge pull request #53 from no95typem/feature/issue-values
no95typem Oct 3, 2021
b17f039
Merge branch 'develop' into feature/statistics
Vimbi Oct 3, 2021
e0fdd75
feat: implement card's sets adding
Kaesid Oct 4, 2021
ada9de9
feat: various fixes and improvements
no95typem Oct 4, 2021
9b1df66
Merge branch 'feature/components' into feature/mastering
no95typem Oct 4, 2021
7491e49
feat: self-stimaltion for the server
no95typem Oct 4, 2021
1f66343
feat: add debug and prod mode for server
no95typem Oct 4, 2021
665d65a
Merge pull request #57 from no95typem/feature/mastering
no95typem Oct 4, 2021
8377de2
Merge branch 'develop' into feature/statistics
Vimbi Oct 4, 2021
0e0fd2c
fix: fix assets paths on deploy
no95typem Oct 4, 2021
c7fa5be
fix: remove append image
no95typem Oct 4, 2021
a903fac
fix: fix merge
no95typem Oct 4, 2021
25da6ac
refactor: remove console.log
no95typem Oct 4, 2021
4bcd952
refactor: change statistics modal
Kaesid Oct 5, 2021
eef04a5
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Oct 5, 2021
b47f282
Merge remote-tracking branch 'origin/feature/mastering' into feature/…
Kaesid Oct 5, 2021
91a1586
fix: change the avatar background selection button
Vimbi Oct 5, 2021
7a12e70
feat: various fixes and design improvements
no95typem Oct 5, 2021
08d6c15
Merge branch 'feature/components' into feature/mastering
no95typem Oct 5, 2021
bb8922d
fix: various fixes after merging
no95typem Oct 5, 2021
716a5f9
refactor: refactor chat unread system
no95typem Oct 5, 2021
17870e7
Merge branch 'feature/statistics' into feature/mastering
no95typem Oct 5, 2021
6ebf3c6
Merge pull request #58 from no95typem/feature/mastering
no95typem Oct 5, 2021
14c345d
fix: fix found bugs
no95typem Oct 5, 2021
5b0ef8a
Merge pull request #60 from no95typem/feature/mastering
no95typem Oct 5, 2021
09cb3c4
refactor: apply eslint
Kaesid Oct 5, 2021
b2f15f5
Merge remote-tracking branch 'origin/develop' into feature/components
Kaesid Oct 5, 2021
a78dfa3
refactor: apply eslint
Kaesid Oct 5, 2021
834a20e
feat: various improvements and fixes
no95typem Oct 6, 2021
4cd92b2
merge feature/sounds
Kaesid Oct 6, 2021
39c1fc3
refactor: change structure of the project
Kaesid Oct 6, 2021
f0804cd
feat: quotes and hr export
no95typem Oct 6, 2021
6473b0a
feat: add link to quotes
no95typem Oct 6, 2021
a505d41
Merge remote-tracking branch 'origin/feature/mastering' into feature/…
Kaesid Oct 6, 2021
6a370d9
fix: fix layout
no95typem Oct 6, 2021
46c6de6
fix: fix layout
no95typem Oct 6, 2021
444caca
Merge remote-tracking branch 'origin/feature/mastering' into feature/…
Kaesid Oct 6, 2021
32061ef
fix: fix select card
Kaesid Oct 6, 2021
8ee31a4
fix: remove debug data
Kaesid Oct 6, 2021
e192d93
feat: indexed db, average and small fixes
no95typem Oct 6, 2021
bee0b12
fix: fix svg
no95typem Oct 6, 2021
5e9a91c
fix: various fixes
no95typem Oct 6, 2021
65594ab
Merge pull request #61 from no95typem/feature/components
no95typem Oct 6, 2021
add1b1d
fix: fix userInfo save into indexed db
no95typem Oct 6, 2021
afb6b1c
Merge pull request #62 from no95typem/feature/components
no95typem Oct 6, 2021
abdcfe0
refactor: remove console.log
no95typem Oct 6, 2021
e41a9d2
Merge pull request #63 from no95typem/feature/components
no95typem Oct 6, 2021
6f28708
fix: hotfixes
no95typem Oct 6, 2021
4f22938
refactor: eslint
no95typem Oct 6, 2021
d912992
fix: hot fixes
no95typem Oct 6, 2021
1904d2d
fix: hotfix 2
no95typem Oct 6, 2021
e4869bf
fix: fix
no95typem Oct 6, 2021
493875c
Merge pull request #64 from no95typem/feature/components
no95typem Oct 6, 2021
2700709
fix: fix issue uploading
no95typem Oct 6, 2021
c66a481
Merge pull request #65 from no95typem/feature/components
no95typem Oct 6, 2021
bae5680
fix: fix issue upload
no95typem Oct 6, 2021
f91a315
Merge pull request #66 from no95typem/feature/components
no95typem Oct 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.{js,ts}]
quote_type = single

[*.md]
trim_trailing_whitespace = false

[*.json]
insert_final_newline = false
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
extends: ['react-app', 'plugin:prettier/recommended', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'warn',
'max-params': ['warn', 2],
'padding-line-between-statements': [
'warn',
{ blankLine: 'always', prev: '*', next: 'if' },
{ blankLine: 'always', prev: '*', next: 'return' },
],
'max-len': ['warn', { code: 120, ignorePattern: 'import*' }],
'no-case-declarations': 'off',
},
ignorePatterns: ['node_modules', 'build', '*.svg', '*.html', '*.json'],
};
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules

# testing
coverage

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
23 changes: 23 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
arrowParens: 'avoid',
useTabs: false,
overrides: [
{
files: ['*.svg', '*.html'],
options: {
parser: 'html',
},
},
{
files: ['*.json'],
options: {
parser: 'json',
},
},
],
};
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
For gh-pages build:
1. Set homepage in client/package.json = url of gh-pages, when index html will be exist.
for example - if repo https://mygithubname.github.io/myawesomerepo then
"homepage": "https://mygithubname.github.io/myawesomerepo"
OR (not tested)
"homepage": "./myawesomerepo"
2. Change the script in client/package.json "build:gh-pages" - change BASENAME according to step 1.
3. Build with npm run build:gh-pages
4. Move files from the build to another folder
5. Do git things in this another folder

For netlify (not tested):
1. delete homepage from client/package.json
2. build with npm run build?
3. Do netlify things
1 change: 1 addition & 0 deletions client/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FAST_REFRESH=false
1 change: 1 addition & 0 deletions client/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_BASENAME=/
1 change: 1 addition & 0 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_BASENAME=/pp/
41 changes: 41 additions & 0 deletions client/craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const path = require('path');
const fs = require('fs');
const cracoBabelLoaderPlugin = require('craco-babel-loader-plugin');
const webpack = require('webpack');

const appDirectory = fs.realpathSync(process.cwd());
const resolvePackage = relativePath => path.resolve(appDirectory, relativePath);

module.exports = {
plugins: [
{
plugin: cracoBabelLoaderPlugin,
options: {
includes: [resolvePackage('../shared')],
},
},
],
webpack: {
configure: webpackConfig => {
const scopePluginIndex = webpackConfig.resolve.plugins.findIndex(
({ constructor }) =>
constructor && constructor.name === 'ModuleScopePlugin',
);

webpackConfig.resolve.plugins[scopePluginIndex].appSrcs.push('../shared');

const definePlugin = new webpack.DefinePlugin({
TARGET_PLATFORM: JSON.stringify('web'),
FE_ALONE: process.env.FE_ALONE,
IS_PROD: process.env.NODE_ENV === 'production',
BASENAME: process.env.BASENAME
? JSON.stringify(process.env.BASENAME)
: JSON.stringify(''),
});

webpackConfig.plugins.push(definePlugin);

return webpackConfig;
},
},
};
Loading