Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
290 commits
Select commit Hold shift + click to select a range
b18e2a5
add changes
veeramarni Nov 7, 2023
134c828
add changes to fix ssr
veeramarni Nov 8, 2023
b04441a
added strict
veeramarni Nov 8, 2023
ed971c4
Fix PersistGate
Nov 8, 2023
0ff1689
Merge branch 'feat/ssr-space-issue' of https://github.com/cdmbase/ful…
veeramarni Nov 8, 2023
03a9a48
add fixes to both ssr and normal;
veeramarni Nov 9, 2023
e537750
update strict mode
veeramarni Nov 9, 2023
b3324d1
update
veeramarni Nov 9, 2023
86b9cd5
update
veeramarni Nov 9, 2023
b953aa5
update tsconfig
veeramarni Nov 9, 2023
b021227
update base
veeramarni Nov 9, 2023
61e32f0
update
veeramarni Nov 9, 2023
323c2f8
update
veeramarni Nov 10, 2023
8ee2152
update
veeramarni Nov 10, 2023
46cddbc
udpate
veeramarni Nov 10, 2023
4d4dba3
Fix css-loading
Nov 13, 2023
d84a8ea
merge SideMenu with hooks
Nov 13, 2023
42b1ed1
Add npm scripts for SSR
Nov 13, 2023
84ed0a3
update
veeramarni Nov 13, 2023
8ed8733
add seperate files for antui chakra and both combine
veeramarni Nov 14, 2023
656d2a1
update multiple changes
veeramarni Nov 14, 2023
5182ac4
add fixes
veeramarni Nov 14, 2023
dbc03b4
add order
veeramarni Nov 14, 2023
c1d881d
update
veeramarni Nov 14, 2023
3889609
auto build [skip ci]
Nov 14, 2023
fb593be
update
veeramarni Nov 14, 2023
d7c1a74
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Nov 14, 2023
e85e1eb
Fix console errors on apollo counter routing
Nov 14, 2023
5c5b90f
Merge pull request #337 from CDEBase/fix-apollo-counter-routing
veeramarni Nov 14, 2023
a26c2db
add css plugin
veeramarni Nov 14, 2023
dc000f6
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Nov 14, 2023
a6abb9a
update
veeramarni Nov 14, 2023
8b534d0
update
veeramarni Nov 15, 2023
ebeba25
add cors
veeramarni Nov 15, 2023
85451b6
update
veeramarni Nov 16, 2023
7325048
test
veeramarni Nov 16, 2023
7298e8e
add few fixes for server side rendering
veeramarni Nov 17, 2023
0c88335
auto build [skip ci]
Nov 17, 2023
93c8235
update apoll client version
veeramarni Nov 17, 2023
9429d91
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Nov 17, 2023
2a4c987
auto build [skip ci]
Nov 17, 2023
b81d9d8
update
veeramarni Nov 19, 2023
facb717
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Nov 19, 2023
88e5f0f
update
veeramarni Nov 19, 2023
7d02493
udpate
veeramarni Nov 21, 2023
9c58a53
update no ssr
veeramarni Nov 22, 2023
341ddcb
update persistor
veeramarni Nov 29, 2023
60536fb
added deploy version update
veeramarni Dec 1, 2023
14898a5
update
veeramarni Dec 1, 2023
db01c63
fix
veeramarni Dec 1, 2023
344c446
update
veeramarni Dec 1, 2023
9c50be4
comment config
veeramarni Dec 1, 2023
a73c93b
update
veeramarni Dec 1, 2023
32a999e
update
veeramarni Dec 1, 2023
03daafc
update develop branch after each publish branch
veeramarni Dec 3, 2023
11dc6db
Upgrate to redux-first-history
Dec 28, 2023
04cf715
Update counter module
Dec 29, 2023
089988c
Update with SSR
Dec 29, 2023
203c9c3
Use routeConfig with original structure
Jan 5, 2024
a2908ed
update apollo factory
veeramarni Jan 12, 2024
273d558
auto build [skip ci]
Jan 12, 2024
89da5ee
update changes
veeramarni Jan 13, 2024
1091243
add new changes
veeramarni Jan 13, 2024
b948eaa
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jan 13, 2024
8314f03
add redis
veeramarni Jan 14, 2024
10387f0
update env
veeramarni Jan 14, 2024
5d5381e
Fix for cache
Jan 14, 2024
d154efd
Set cache expire with 300s
Jan 14, 2024
afe7a87
Set cache expire with 300s
Jan 14, 2024
8dba525
update ui changes
veeramarni Jan 17, 2024
566ee80
update changes
veeramarni Jan 17, 2024
b6ac059
auto build [skip ci]
Jan 17, 2024
7d1fdca
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jan 18, 2024
46db1a7
update logger
veeramarni Jan 18, 2024
d6dbf5b
auto build [skip ci]
Jan 18, 2024
4dfa2bb
add logs
veeramarni Jan 22, 2024
5dca9b7
:wq!
veeramarni Jan 22, 2024
1706c92
update
veeramarni Jan 24, 2024
13bd766
add fixes
veeramarni Jan 24, 2024
01cf4c0
update
veeramarni Jan 24, 2024
cadbabf
added gi and other
veeramarni Jan 24, 2024
37cc88d
add ga
veeramarni Jan 24, 2024
ff46b7e
auto build [skip ci]
Jan 24, 2024
a3c1db6
update
veeramarni Jan 24, 2024
4ee1f47
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jan 24, 2024
130681d
update changes
veeramarni Jan 24, 2024
a145ba4
update
veeramarni Jan 25, 2024
380a5e3
added fixes
veeramarni Jan 26, 2024
0a292ac
update common-stack
veeramarni Jan 27, 2024
45c5283
auto build [skip ci]
Jan 27, 2024
5f193dc
Merge pull request #349 from CDEBase/fix-cache
veeramarni Jan 27, 2024
b0c1b54
update dev cli
veeramarni Jan 27, 2024
7cdf844
update changes
veeramarni Jan 27, 2024
6e11fee
update fix for jenkins
veeramarni Jan 28, 2024
0b85201
cli changes
veeramarni Jan 28, 2024
db34e24
add deploy changes
veeramarni Jan 28, 2024
f299449
add fixes to the cli
veeramarni Jan 28, 2024
a27c04b
update cli fixes
veeramarni Jan 28, 2024
5bc4775
add changes
veeramarni Jan 28, 2024
144db26
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jan 28, 2024
bcf702a
add jenkin version fixes
veeramarni Jan 29, 2024
dc7b822
add fixes
veeramarni Jan 29, 2024
c16e545
update
veeramarni Jan 29, 2024
f794e4e
add fixes
veeramarni Jan 29, 2024
e1cbf5c
auto build [skip ci]
Jan 29, 2024
2ffe6ef
update config for mobile
veeramarni Jan 29, 2024
7de1b1a
update changes
veeramarni Jan 29, 2024
3c6312e
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jan 29, 2024
8c3e6c6
update changes
veeramarni Jan 29, 2024
1d9b025
move the store to req
veeramarni Jan 31, 2024
35da65c
clean up
veeramarni Jan 31, 2024
bceaddd
Update package.json
veeramarni Jan 31, 2024
5032baf
Merge remote-tracking branch 'origin/develop3' into upgrade/react-router
veeramarni Feb 1, 2024
0aec133
Merge branch 'develop3' of https://github.com/cdmbase/fullstack-pro i…
veeramarni Feb 1, 2024
d8499c8
update
veeramarni Feb 1, 2024
9100016
update
veeramarni Feb 1, 2024
7b17067
Fix develop3
Feb 2, 2024
4d83ad2
Merge pull request #352 from CDEBase/fix-develop3
veeramarni Feb 2, 2024
bdc8ad4
make strict react-native
veeramarni Feb 2, 2024
61befed
update
veeramarni Feb 3, 2024
47b8fe9
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Feb 3, 2024
30ff27a
Get store from client middleware
Feb 3, 2024
b4d51ea
seperate SSR and noSSR in same file
veeramarni Feb 3, 2024
24f3ac0
update middleware
veeramarni Feb 4, 2024
c557976
update req
veeramarni Feb 4, 2024
7b37386
update container
veeramarni Feb 4, 2024
d1e08b6
Merge branch 'develop3' of https://github.com/cdmbase/fullstack-pro i…
veeramarni Feb 4, 2024
ea204c6
update
veeramarni Feb 4, 2024
7b97f57
update
veeramarni Feb 4, 2024
f1cb7cc
update develop3 release
veeramarni Feb 5, 2024
c09b4ae
update from develop
veeramarni Feb 5, 2024
981af15
update common-stack
veeramarni Feb 5, 2024
552f4bc
update
veeramarni Feb 5, 2024
3306f1a
update
veeramarni Feb 5, 2024
bbca8f5
update tsx
veeramarni Feb 5, 2024
b2f09e7
auto build [skip ci]
Feb 5, 2024
2fbd30e
update package
veeramarni Feb 5, 2024
2f146cd
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Feb 5, 2024
551eb8e
auto build [skip ci]
Feb 5, 2024
3ba7c98
update
veeramarni Feb 5, 2024
61a3b7f
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Feb 5, 2024
8ffcc6f
auto build [skip ci]
Feb 5, 2024
2d33ba0
update
veeramarni Feb 5, 2024
de3a370
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Feb 5, 2024
2d8c501
update
veeramarni Feb 5, 2024
d325d0e
update
veeramarni Feb 5, 2024
44cd9d4
Merge branch 'develop' into develop3
veeramarni Feb 5, 2024
f3fc006
auto build [skip ci]
Feb 5, 2024
4c6ced1
update
veeramarni Feb 6, 2024
78a02b0
Merge branch 'develop3' of https://github.com/cdmbase/fullstack-pro i…
veeramarni Feb 6, 2024
b6ba5e2
update
veeramarni Feb 6, 2024
df7c93e
update
veeramarni Feb 6, 2024
34f4d85
update changes
veeramarni Feb 7, 2024
eb59845
update common-stack
veeramarni Feb 7, 2024
7507163
update changes
veeramarni Feb 14, 2024
a1b2fb3
fix build
veeramarni Feb 15, 2024
fd8b29c
rename
veeramarni Feb 17, 2024
2fff71a
add config.mjs
veeramarni Feb 17, 2024
c1aab3b
update
veeramarni Mar 10, 2024
78d0f26
update
veeramarni Mar 10, 2024
7be47bb
updated redux and router redux
veeramarni Mar 10, 2024
b28263b
Merge branch 'develop3-store' into develop
veeramarni Mar 10, 2024
af09864
update
veeramarni Mar 11, 2024
ec3c979
update
veeramarni Mar 13, 2024
ccb903e
update fix
veeramarni Mar 13, 2024
aef59da
Merge branch 'develop' into develop-enhancer
veeramarni Mar 13, 2024
6710429
update with remix
veeramarni Mar 13, 2024
a5aa2df
update
veeramarni Mar 13, 2024
6f48563
update
veeramarni Mar 14, 2024
0ceee46
update
veeramarni Mar 14, 2024
d6df6ec
update
veeramarni Mar 14, 2024
1bb6fa3
Fix build error
Mar 20, 2024
d84b1ab
Add remix
Mar 20, 2024
b07b9e1
Add remix-json-routes
Mar 20, 2024
adec3b3
Merge pull request #353 from CDEBase/develop3-store
veeramarni Mar 20, 2024
aa9a0c8
remove json-routes
Mar 21, 2024
f5feec4
Add codegen
Mar 23, 2024
ccba2a5
Add codegen
Mar 23, 2024
5c1bd0e
Merge pull request #357 from CDEBase/remix-vite
veeramarni Mar 24, 2024
0c076da
update
veeramarni Mar 24, 2024
94f249e
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Mar 24, 2024
04aa509
add rollup to generate json
veeramarni Mar 26, 2024
e0412cf
update
veeramarni Mar 26, 2024
7f9b73e
Add file property
Mar 26, 2024
0203f3d
Define routes
Mar 26, 2024
b719b7e
Merge branch 'feat/generateRoutes' of https://github.com/cdmbase/full…
veeramarni Mar 26, 2024
61986c0
update apollo client verison and import path of it
veeramarni Mar 26, 2024
2401570
Add Main, module
Mar 26, 2024
2676dd6
Fix conflicts
Mar 26, 2024
b9aeae7
Merge branch 'feat/generateRoutes' of https://github.com/cdmbase/full…
veeramarni Mar 26, 2024
0f2c56e
create routes
Mar 27, 2024
e0915bd
Add counter page
Mar 27, 2024
8cf647d
Sidemenu
Mar 27, 2024
9b55452
Merge branch 'feat/generateRoutes' of https://github.com/cdmbase/full…
veeramarni Mar 27, 2024
2e91d6b
Add wrapper
Mar 27, 2024
113e07a
update with authwrapper
Mar 27, 2024
afb78ef
update
veeramarni Mar 28, 2024
0d1e21c
Merge branch 'feat/generateRoutes' of https://github.com/cdmbase/full…
veeramarni Mar 28, 2024
d4e5c30
move routes
Mar 28, 2024
7eebf20
updates
Mar 28, 2024
4c1264d
Merge branch 'feat/generateRoutes' of https://github.com/cdmbase/full…
veeramarni Mar 28, 2024
e915586
update json modifyLib
veeramarni Mar 29, 2024
e64087e
update compute.tsx
veeramarni Mar 29, 2024
9616db5
update changes
veeramarni Mar 29, 2024
18edea7
update
veeramarni Mar 29, 2024
255cbf1
with wrapper
veeramarni Mar 29, 2024
cd92775
fix: roue configuration update
huzaifaali14 Mar 30, 2024
70fa0f3
fix: resolved some issues
huzaifaali14 Mar 31, 2024
ccbd75e
Merge branch 'feat/withvitepluginwrapper' of https://github.com/cdmba…
veeramarni Apr 1, 2024
e455601
add new changes
veeramarni Apr 1, 2024
8c148c3
update packages to use esm
veeramarni Apr 1, 2024
d7ac322
replace PUBLIC_SETTINGS with config
veeramarni Apr 1, 2024
b61d8b3
move to cross-fetch
veeramarni Apr 1, 2024
2619bc9
Merge branch 'remix-simple' into feat/withvitepluginwrapper
veeramarni Apr 1, 2024
3852f6d
update with graphql cache
veeramarni Apr 15, 2024
bf34bc0
update
veeramarni Jun 20, 2024
b8ac896
update
veeramarni Jun 29, 2024
c501b8f
Merge branch 'develop3' of https://github.com/cdmbase/fullstack-pro i…
veeramarni Jun 29, 2024
6797fe3
Merge branch 'develop3' into develop
veeramarni Jun 29, 2024
e770697
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jun 29, 2024
03b1b8a
add changes
veeramarni Jun 30, 2024
06a6113
update
veeramarni Jul 1, 2024
25e608e
update
veeramarni Jul 3, 2024
a0618a8
add autocode
veeramarni Jul 15, 2024
043e5f3
update
veeramarni Jul 15, 2024
994e9f0
update
veeramarni Jul 15, 2024
2d34b90
update
veeramarni Jul 15, 2024
3f38d2b
update
veeramarni Jul 16, 2024
866ab91
update
veeramarni Jul 16, 2024
babaad5
update
veeramarni Jul 17, 2024
abb5525
update
veeramarni Jul 17, 2024
0cc5619
update
veeramarni Jul 17, 2024
f730c20
Update packages
Jul 24, 2024
c8a21a0
update setup
Jul 24, 2024
3cfc0be
with chakraui
Jul 25, 2024
f332071
Merge pull request #370 from CDEBase/with-nx-generator
veeramarni Jul 25, 2024
6ddd106
update
veeramarni Jul 28, 2024
bfe5ab2
Merge branch 'develop' of https://github.com/cdmbase/fullstack-pro in…
veeramarni Jul 28, 2024
192f233
add shield changes
veeramarni Aug 2, 2024
155c6f9
update
veeramarni Aug 3, 2024
5956799
update
veeramarni Aug 10, 2024
911bc5c
update
veeramarni Aug 10, 2024
4196f03
update
veeramarni Aug 11, 2024
3c62ea6
update
veeramarni Aug 16, 2024
7c69863
update from template
veeramarni Aug 26, 2024
05de44f
update changes
veeramarni Aug 26, 2024
697c7df
update frontend
veeramarni Aug 26, 2024
55ae25d
update moleculer
veeramarni Aug 26, 2024
3758bcf
update
veeramarni Aug 26, 2024
d1eab05
update
veeramarni Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dist
lib
.nx

# Logs
logs
*.log
Expand Down Expand Up @@ -49,6 +51,8 @@ node_modules
.node_repl_history
.dist

# ignore temp created for pushing prod changes to devleop
lerna-temp.json
# IDE
.idea
*.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
369 changes: 201 additions & 168 deletions Jenkinsfile

Large diffs are not rendered by default.

23 changes: 10 additions & 13 deletions build.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
/* eslint-disable no-nested-ternary */
/* eslint-disable no-underscore-dangle */
process.env.ENV_FILE !== null && require('dotenv').config({ path: process.env.ENV_FILE });
// process.env.ENV_FILE !== null && require('dotenv').config({ path: process.env.ENV_FILE });

const __API_SERVER_PORT__ = process.env.GRAPHQL_URL ? new URL(process.env.GRAPHQL_URL).port : 8080;
const __WEB_SERVER_PORT__ = process.env.LOCAL_BACKEND_URL ? new URL(process.env.LOCAL_BACKEND_URL).port : 3000;
const __WEB_DEV_SERVER_PORT__ = process.env.SSR
? 3010
: process.env.CLIENT_URL
? new URL(process.env.CLIENT_URL).port
: 3000;
const __WEB_DEV_SERVER_PORT__ =
process.env.SSR === 'true' ? 3010 : process.env.CLIENT_URL ? new URL(process.env.CLIENT_URL).port : 3000;
const __SERVER_PROTOCOL__ = 'http';
const __SERVER_HOST__ = 'localhost';
const __LOCAL_SERVER_HOST__ = 'localhost';
const __GRAPHQL_ENDPOINT__ = process.env.GRAPHQL_URL ? new URL(process.env.GRAPHQL_URL).pathname : '/graphql';
const config = {
__SERVER__: false,
__CLIENT__: true,
__SSR__: process.env.NODE_ENV === 'production', // enableing SSR only in Production as in Dev we have a issue
__SSR_BACKEND__: process.env.SSR_BACKEND,
__SSR__: process.env.SSR === 'true',
__DEBUGGING__: false,
__TEST__: false,
__WEB_DEV_SERVER_PORT__,
__GRAPHQL_ENDPOINT__,
__SERVER_HOST__,
__LOCAL_SERVER_HOST__,
__API_SERVER_PORT__,
__API_URL__:
process.env.API_URL ||
`${__SERVER_PROTOCOL__}://${__SERVER_HOST__}:${__API_SERVER_PORT__}${__GRAPHQL_ENDPOINT__}`,
`${__SERVER_PROTOCOL__}://${__LOCAL_SERVER_HOST__}:${__API_SERVER_PORT__}${__GRAPHQL_ENDPOINT__}`,
__WEBSITE_URL__:
process.env.WEBSITE_URL || `${__SERVER_PROTOCOL__}://${__SERVER_HOST__}:${__WEB_DEV_SERVER_PORT__}`,
process.env.WEBSITE_URL || `${__SERVER_PROTOCOL__}://${__LOCAL_SERVER_HOST__}:${__WEB_DEV_SERVER_PORT__}`,
__BACKEND_URL__:
process.env.LOCAL_BACKEND_URL || `${__SERVER_PROTOCOL__}://${__SERVER_HOST__}:${__WEB_SERVER_PORT__}`,
process.env.LOCAL_BACKEND_URL || `${__SERVER_PROTOCOL__}://${__LOCAL_SERVER_HOST__}:${__WEB_SERVER_PORT__}`,
};

console.log('---CONFIG', config);
module.exports = config;
37 changes: 37 additions & 0 deletions build.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/* eslint-disable no-nested-ternary */
/* eslint-disable no-underscore-dangle */
import { config as dotenvConfig } from 'dotenv-esm';

if (process.env.ENV_FILE !== null) {
dotenvConfig({ path: process.env.ENV_FILE });
}

const __API_SERVER_PORT__ = process.env.GRAPHQL_URL ? new URL(process.env.GRAPHQL_URL).port : 8080;
const __WEB_SERVER_PORT__ = process.env.LOCAL_BACKEND_URL ? new URL(process.env.LOCAL_BACKEND_URL).port : 3000;
const __WEB_DEV_SERVER_PORT__ =
process.env.SSR === 'true' ? 3010 : process.env.CLIENT_URL ? new URL(process.env.CLIENT_URL).port : 3000;
const __SERVER_PROTOCOL__ = 'http';
const __LOCAL_SERVER_HOST__ = 'localhost';
const __GRAPHQL_ENDPOINT__ = process.env.GRAPHQL_URL ? new URL(process.env.GRAPHQL_URL).pathname : '/graphql';

const config = {
__SERVER__: false,
__CLIENT__: true,
__SSR_BACKEND__: process.env.SSR_BACKEND,
__SSR__: process.env.SSR === 'true',
__DEBUGGING__: false,
__TEST__: false,
__WEB_DEV_SERVER_PORT__,
__GRAPHQL_ENDPOINT__,
__LOCAL_SERVER_HOST__,
__API_SERVER_PORT__,
__API_URL__:
process.env.API_URL ||
`${__SERVER_PROTOCOL__}://${__LOCAL_SERVER_HOST__}:${__API_SERVER_PORT__}${__GRAPHQL_ENDPOINT__}`,
__WEBSITE_URL__:
process.env.WEBSITE_URL || `${__SERVER_PROTOCOL__}://${__LOCAL_SERVER_HOST__}:${__WEB_DEV_SERVER_PORT__}`,
__BACKEND_URL__:
process.env.LOCAL_BACKEND_URL || `${__SERVER_PROTOCOL__}://${__LOCAL_SERVER_HOST__}:${__WEB_SERVER_PORT__}`,
};

export default config;
4 changes: 3 additions & 1 deletion codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ generates:
withMutationFn: false
withHOC: false
withComponent: false
noGraphQLTag: true
plugins:
- add:
content: /* tslint:disable */
Expand All @@ -33,8 +34,9 @@ generates:
config:
withMutationFn: false
withHOC: false
withComponent: true
withComponent: false
withHooks: true
noGraphQLTag: true
preset: import-types-preset
presetConfig:
typesPath: "../generated-models"
Expand Down
4 changes: 4 additions & 0 deletions config/development/dev.env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#
# Create `dev.env` file and load following required values
#
# Build-time Variables
BUILD_MODULE_TO_INCLUDE=@sample-stack/counter-module-browser|@sample-stack/assets|@sample-stack/platform-browser


NATS_URL=nats://localhost:4222/
NATS_USER=test
NATS_PW=test
Expand Down
26 changes: 26 additions & 0 deletions config/staging/docker-staging.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
###
### To connect from docker to localhost, if you are using a Mac host, you can use -
#
# HOSTNAME= docker.for.mac.host.internal
# Or
#
# HOSTNAME = docker.for.mac.localhost
###docker.for.mac.localhost

NATS_URL=nats://docker.for.mac.localhost:4222/
NATS_USER=test
NATS_PW=test
GRAPHQL_URL=http://docker.for.mac.localhost:8080/graphql
LOCAL_GRAPHQL_URL=http://docker.for.mac.localhost:8080/graphql
CLIENT_URL=http://localhost:3010
ZIPKIN_URL=test
ZIPKIN_PORT=test
LOG_LEVEL=trace
MONGO_URL=mongodb://docker.for.mac.localhost:27017/sample-stack
REDIS_CLUSTER_URL='[{"port":6379,"host":"docker.for.mac.localhost"}]'
REDIS_URL=redis://docker.for.mac.localhost:6379
REDIS_CLUSTER_ENABLED=false
REDIS_SENTINEL_ENABLED=false
BACKEND_URL=http://localhost:8080
CONNECTION_ID=v1
LOCAL_BACKEND_URL=http://localhost:3010
20 changes: 20 additions & 0 deletions config/staging/staging.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Create `dev.env` file and load following required values
#
NATS_URL=nats://localhost:4222/
NATS_USER=test
NATS_PW=test
GRAPHQL_URL=http://localhost:8080/graphql
LOCAL_GRAPHQL_URL=http://localhost:8080/graphql
CLIENT_URL=http://localhost:3011
ZIPKIN_URL=test
ZIPKIN_PORT=test
LOG_LEVEL=trace
MONGO_URL=mongodb://localhost:27017/sample-stack
REDIS_CLUSTER_URL='[{"port":6379,"host":"localhost"}]'
REDIS_URL=redis://localhost:6379
REDIS_CLUSTER_ENABLED=false
REDIS_SENTINEL_ENABLED=false
BACKEND_URL=http://localhost:8080
CONNECTION_ID=v1
LOCAL_BACKEND_URL=http://localhost:3000
21 changes: 11 additions & 10 deletions jest-mongodb-config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
mongodbMemoryServerOptions: {
instance: {
dbName: 'jest'
},
binary: {
version: '4.0.12', // Version of MongoDB
skipMD5: true
},
autoStart: false
}
};
instance: {
dbName: 'jest',
storageEngine: 'wiredTiger',
},
binary: {
version: '4.0.27', // Version of MongoDB
skipMD5: true,
},
autoStart: false,
},
};
47 changes: 43 additions & 4 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const { defaults } = require('jest-config');

const packagesToTransform = [
'@apollo/client',
'@common-stack/client-core',
'@common-stack/client-react',
'@common-stack/core',
'@admin-layout/client',
'@common-stack/components-pro',
'@common-stack/server-core',
'@common-stack/cache-api-server',
'@common-stack/remix-router-redux',
'@cdmbase/redux-auth-wrapper',
'@cdmbase/remix-redis-session',
'@cdm-logger/server',
'@cdm-logger/core',
'@cdm-logger/client',
'@files-stack/server-core',
'@vscode-alt/monaco-editor',
'@workbench-stack/core',
'@workbench-stack/platform-server',
'abortable-rx',
'lodash-es',
'sort-keys',
'is-plain-obj',
'query-string',
'decode-uri-component',
'split-on-first',
'filter-obj',
'react-dnd-html5-backend',
'react-sortable-tree',
'react-dnd',
'dnd-core',
];

const generateTransformIgnorePattern = (packages) => {
const escapedPackages = packages.map((pkg) => pkg.replace(/\//g, '\\/'));
return `/node_modules/(?!(${escapedPackages.join('|')})/).+\\.js$`;
};
const transformIgnorePattern = generateTransformIgnorePattern(packagesToTransform);

module.exports = {
testEnvironment: 'node',
setupFiles: [
Expand All @@ -10,11 +49,11 @@ module.exports = {
],
preset: 'ts-jest',
testMatch: null,
testRegex: '.*test*\\.(ts|tsx|js)$',
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
testRegex: '.*test\\.(ts|tsx|js)$',
testPathIgnorePatterns: ['/node_modules/', '/lib', '/dist/'],
transform: {
'\\.(gql)$': 'jest-transform-graphql',
'\\.(graphql|graphqls)$': 'jest-raw-loader',
'\\.(graphql|graphqls)$': '@glen/jest-raw-loader',
'\\.(ts|tsx)$': 'ts-jest',
// Use our custom transformer only for the *.js and *.jsx files
'\\.(js|jsx)?$': './transform.js',
Expand All @@ -39,7 +78,7 @@ module.exports = {
// because we don't need to use any kind of tree shaking right?!
'^lodash-es$': '<rootDir>/node_modules/lodash/index.js',
},
transformIgnorePatterns: ['/node_modules/(?!(babel-runtime|antd)).*/', '<rootDir>/node_modules/(?!lodash-es/.*)'],
transformIgnorePatterns: [transformIgnorePattern],
clearMocks: true,
verbose: true,
// projects: ['<rootDir>'], // TODO need to test with it https://github.com/bryan-hunter/yarn-workspace-lerna-monorepo/blob/master/jest.config.base.js
Expand Down
94 changes: 94 additions & 0 deletions jest.config.base.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable @typescript-eslint/no-var-requires */
import { defaults } from 'jest-config';

const packagesToTransform = [
'@apollo/client',
'@apollo/server',
'@graphql-tools/schema',
'@graphql-tools/mock',
'@common-stack/client-core',
'@common-stack/client-react',
'@common-stack/core',
'@common-stack/server-core',
'@common-stack/cache-api-server',
'@common-stack/remix-router-redux',
'@common-stack/graphql-api',
'@cdmbase/graphql-type-uri',
'@cdm-logger/server',
'@cdm-logger/core',
'@cdm-logger/client',
'@files-stack/core',
'@files-stack/server-core',
'@vscode-alt/monaco-editor',
'@workbench-stack/core',
'@workbench-stack/platform-server',
'graphql',
'abortable-rx',
'lodash-es',
'sort-keys',
'is-plain-obj',
'query-string',
'decode-uri-component',
'split-on-first',
'filter-obj',
'react-dnd-html5-backend',
'react-sortable-tree',
'react-dnd',
'dnd-core',
];

const generateTransformIgnorePattern = (packages) => {
const escapedPackages = packages.map((pkg) => pkg.replace(/\//g, '\\/'));
return `/node_modules/(?!(${escapedPackages.join('|')})/).+\\.js$`;
};
const transformIgnorePattern = generateTransformIgnorePattern(packagesToTransform);

export default {
testEnvironment: 'node',
setupFiles: [
// needed for UI to mock canvas load
// "jest-canvas-mock"
],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
preset: 'ts-jest',
testMatch: null,
testRegex: '.*test\\.(ts|tsx|js)$',
testPathIgnorePatterns: ['/node_modules/', '/lib', '/dist/'],
transform: {
'\\.(gql)$': 'jest-transform-graphql',
'\\.(graphql|graphqls)$': '@glen/jest-raw-loader',
'\\.(ts|tsx)$': 'ts-jest',
// // Use our custom transformer only for the *.js and *.jsx files
'\\.(js|jsx)?$': './transform.mjs',
// future need to test with
// "^.+\\.(js|jsx|ts|tsx)$": "./transform.js",
'.+\\.(css|styl|less|sass|scss)$': 'jest-css-modules-transform',
},
roots: ['packages', 'packages-modules', 'servers'],
moduleFileExtensions: [...defaults.moduleFileExtensions, 'json', 'gql', 'graphql'],
moduleNameMapper: {
'^__mocks__/(.*)$': '<rootDir>/../../__mocks__/$1',
// we'll use commonjs version of lodash for tests 👌
// because we don't need to use any kind of tree shaking right?!
'^lodash-es$': '<rootDir>/node_modules/lodash/index.js',
},
transformIgnorePatterns: [transformIgnorePattern],
clearMocks: true,
verbose: true,
// projects: ['<rootDir>'], // TODO need to test with it https://github.com/bryan-hunter/yarn-workspace-lerna-monorepo/blob/master/jest.config.base.js
coverageDirectory: '<rootDir>/coverage/',
coveragePathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/lib/', '<rootDir>/dist/', '<rootDir>/node_modules/'],
globals: {
__BACKEND_URL__: 'http://localhost:3010',
__GRAPHQL_URL__: 'http://localhost:8085/graphql',
'ts-jest': {
// tsConfig: "<rootDir>/src/__tests__/tsconfig.json",
// https://github.com/kulshekhar/ts-jest/issues/766
diagnostics: {
warnOnly: true,
},
// "skipBabel": true
},
},
};
3 changes: 3 additions & 0 deletions jest.config.mongodb.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
preset: '@shelf/jest-mongodb',
};
Loading