create-catalyst-app-internal 0.0.1-beta.7 → 0.0.1-beta.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/Readme.md +56 -0
  2. package/codemod/new-route/index.js +98 -0
  3. package/codemod/new-route/template.js +119 -0
  4. package/codemod/new-route/transformers/createReducer.js +38 -0
  5. package/codemod/new-route/transformers/createRoute.js +33 -0
  6. package/codemod/new-route/utils.js +90 -0
  7. package/license +10 -0
  8. package/package.json +6 -7
  9. package/scripts/cli.cjs +163 -42
  10. package/templates/common/.eslintignore +1 -0
  11. package/templates/common/.eslintrc +28 -0
  12. package/templates/common/README.md +2 -2
  13. package/templates/common/api.js +12 -23
  14. package/templates/common/client/styles.js +1 -12
  15. package/templates/common/config/config.json +2 -23
  16. package/templates/common/public/favicon.ico +0 -0
  17. package/templates/common/server/document.js +3 -5
  18. package/templates/common/server/index.js +1 -0
  19. package/templates/common/server/server.js +8 -1
  20. package/templates/common/src/js/routes/index.js +0 -6
  21. package/templates/common/webpackConfig.js +1 -0
  22. package/templates/mcp-root/mcp/context.md +674 -0
  23. package/templates/mcp-root/mcp/mcp.js +36 -0
  24. package/templates/none-js/client/index.js +5 -7
  25. package/templates/none-js/package.json +12 -5
  26. package/templates/none-js/src/js/containers/App/index.js +1 -1
  27. package/templates/none-js/src/js/routes/utils.js +42 -0
  28. package/templates/none-ts/client/index.js +23 -0
  29. package/templates/none-ts/package.json +34 -0
  30. package/templates/none-ts/src/js/containers/App/index.js +16 -0
  31. package/templates/none-ts/src/js/routes/utils.js +42 -0
  32. package/templates/none-ts/tsconfig.json +13 -0
  33. package/templates/none-ts/types.d.ts +4 -0
  34. package/templates/redux-js/client/index.js +1 -1
  35. package/templates/redux-js/package.json +11 -3
  36. package/templates/redux-js/src/js/containers/App/index.js +1 -1
  37. package/templates/redux-js/src/js/containers/App/reducer.js +0 -1
  38. package/templates/redux-js/src/js/routes/utils.js +42 -0
  39. package/templates/redux-js/src/js/store/index.js +2 -2
  40. package/templates/redux-ts/client/index.js +28 -0
  41. package/templates/redux-ts/package.json +37 -0
  42. package/templates/redux-ts/src/js/containers/App/actions.js +17 -0
  43. package/templates/redux-ts/src/js/containers/App/index.js +16 -0
  44. package/templates/redux-ts/src/js/containers/App/reducer.js +19 -0
  45. package/templates/redux-ts/src/js/routes/utils.js +42 -0
  46. package/templates/redux-ts/src/js/store/index.js +28 -0
  47. package/templates/redux-ts/tsconfig.json +13 -0
  48. package/templates/redux-ts/types.d.ts +4 -0
  49. package/templates/rtk-js/client/index.js +1 -1
  50. package/templates/rtk-js/package.json +11 -3
  51. package/templates/rtk-js/src/js/containers/App/index.js +1 -1
  52. package/templates/rtk-js/src/js/containers/App/reducer.js +1 -1
  53. package/templates/rtk-js/src/js/routes/utils.js +42 -0
  54. package/templates/rtk-js/src/js/store/index.js +2 -2
  55. package/templates/rtk-ts/client/index.js +28 -0
  56. package/templates/rtk-ts/package.json +37 -0
  57. package/templates/rtk-ts/src/js/containers/App/index.js +16 -0
  58. package/templates/rtk-ts/src/js/containers/App/reducer.js +18 -0
  59. package/templates/rtk-ts/src/js/routes/utils.js +42 -0
  60. package/templates/rtk-ts/src/js/store/index.js +28 -0
  61. package/templates/rtk-ts/tsconfig.json +13 -0
  62. package/templates/rtk-ts/types.d.ts +4 -0
  63. package/templates/tailwind/postcss.config.js +5 -0
  64. package/templates/tailwind/src/static/css/base/index.scss +2 -0
  65. package/templates/common/.babelrc +0 -26
  66. package/templates/common/src/js/routes/utils.js +0 -29
@@ -3,20 +3,18 @@ import "./styles"
3
3
  import { hydrateRoot } from "react-dom/client"
4
4
  import { loadableReady } from "@loadable/component"
5
5
  import { RouterProvider } from "@tata1mg/router"
6
- import clientRouter from "catalyst-core-internal/router/ClientRouter"
6
+ import clientRouter from "catalyst-core/router/ClientRouter"
7
7
 
8
8
  window.addEventListener("load", () => {
9
9
  loadableReady(() => {
10
- const { __ROUTER_INITIAL_DATA__: routerInitialData, __INITIAL_STATE__ } = window
10
+ const { __ROUTER_INITIAL_DATA__: routerInitialData } = window
11
11
 
12
12
  const router = clientRouter({ routerInitialState: routerInitialData })
13
13
 
14
14
  const Application = (
15
- <Provider serverState={__INITIAL_STATE__}>
16
- <React.StrictMode>
17
- <RouterProvider router={router} />
18
- </React.StrictMode>
19
- </Provider>
15
+ <React.StrictMode>
16
+ <RouterProvider router={router} />
17
+ </React.StrictMode>
20
18
  )
21
19
 
22
20
  const container = document.getElementById("app")
@@ -4,7 +4,10 @@
4
4
  "scripts": {
5
5
  "start": "catalyst start",
6
6
  "build": "catalyst build",
7
- "serve": "catalyst serve"
7
+ "serve": "catalyst serve",
8
+ "lint": "eslint .",
9
+ "devBuild": "catalyst devBuild",
10
+ "devServe": "catalyst devServe"
8
11
  },
9
12
  "_moduleAliases": {
10
13
  "@api": "api.js",
@@ -12,12 +15,16 @@
12
15
  "@server": "server",
13
16
  "@config": "config",
14
17
  "@css": "src/static/css",
15
- "@routes": "src/js/routes/",
16
- "@store": "src/js/store/index.js"
18
+ "@routes": "src/js/routes/"
17
19
  },
18
20
  "dependencies": {
19
21
  "@loadable/component": "^5.16.3",
20
- "@tata1mg/router": "^0.0.1-beta.0",
21
- "catalyst-core-internal": "^0.0.1-beta.3"
22
+ "@tata1mg/router": "^0.0.1-beta.7",
23
+ "catalyst-core": "0.0.1-beta.14"
24
+ },
25
+ "devDependencies": {
26
+ "eslint": "^8.26.0",
27
+ "eslint-plugin-react": "^7.34.1",
28
+ "eslint-plugin-react-hooks": "^4.6.0"
22
29
  }
23
30
  }
@@ -9,7 +9,7 @@ const App = () => {
9
9
  )
10
10
  }
11
11
 
12
- App.serverSideFunction = ({}) => {
12
+ App.serverSideFunction = () => {
13
13
  return new Promise((resolve) => resolve())
14
14
  }
15
15
 
@@ -0,0 +1,42 @@
1
+ import React from "react"
2
+ import { RouterDataProvider, MetaTag } from "@tata1mg/router"
3
+ import App from "@containers/App"
4
+ import routes from "./index.js"
5
+
6
+ /**
7
+ * Making the routes array compatible with the format accepted by createBrowserRouter
8
+ * API on the client side
9
+ * https://reactrouter.com/en/main/routers/create-browser-router
10
+ */
11
+
12
+ export const preparedRoutes = ({ routerInitialState }) => {
13
+ const getPreparedRoutes = (routes) => {
14
+ return routes.map((route, index) => {
15
+ const Component = route.component
16
+ const routeToRender = {
17
+ ...route,
18
+ element: <Component key={index} />,
19
+ }
20
+ if (route.children) {
21
+ routeToRender.children = getPreparedRoutes(route.children)
22
+ }
23
+ return routeToRender
24
+ })
25
+ }
26
+
27
+ return [
28
+ {
29
+ element: (
30
+ <RouterDataProvider config={{}} initialState={routerInitialState}>
31
+ <MetaTag />
32
+ <App />
33
+ </RouterDataProvider>
34
+ ),
35
+ children: getPreparedRoutes(routes),
36
+ },
37
+ ]
38
+ }
39
+
40
+ export const getRoutes = () => {
41
+ return routes
42
+ }
@@ -0,0 +1,23 @@
1
+ import React from "react"
2
+ import "./styles"
3
+ import { hydrateRoot } from "react-dom/client"
4
+ import { loadableReady } from "@loadable/component"
5
+ import { RouterProvider } from "@tata1mg/router"
6
+ import clientRouter from "catalyst-core/router/ClientRouter"
7
+
8
+ window.addEventListener("load", () => {
9
+ loadableReady(() => {
10
+ const { __ROUTER_INITIAL_DATA__: routerInitialData } = window
11
+
12
+ const router = clientRouter({ routerInitialState: routerInitialData })
13
+
14
+ const Application = (
15
+ <React.StrictMode>
16
+ <RouterProvider router={router} />
17
+ </React.StrictMode>
18
+ )
19
+
20
+ const container = document.getElementById("app")
21
+ hydrateRoot(container, Application)
22
+ })
23
+ })
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "create-catalyst-app-starter",
3
+ "version": "1.0.0",
4
+ "scripts": {
5
+ "start": "catalyst start",
6
+ "build": "npm run typecheck && catalyst build",
7
+ "serve": "catalyst serve",
8
+ "lint": "eslint .",
9
+ "devBuild": "catalyst devBuild",
10
+ "devServe": "catalyst devServe",
11
+ "typecheck": "tsc --noEmit"
12
+ },
13
+ "_moduleAliases": {
14
+ "@api": "api.js",
15
+ "@containers": "src/js/containers",
16
+ "@server": "server",
17
+ "@config": "config",
18
+ "@css": "src/static/css",
19
+ "@routes": "src/js/routes/"
20
+ },
21
+ "dependencies": {
22
+ "@loadable/component": "^5.16.3",
23
+ "@tata1mg/router": "^0.0.1-beta.7",
24
+ "catalyst-core": "0.0.1-beta.14"
25
+ },
26
+ "devDependencies": {
27
+ "eslint": "^8.26.0",
28
+ "typescript": "^5.8.3",
29
+ "@types/react": "^18.2.0",
30
+ "@types/react-dom": "^18.2.0",
31
+ "eslint-plugin-react": "^7.34.1",
32
+ "eslint-plugin-react-hooks": "^4.6.0"
33
+ }
34
+ }
@@ -0,0 +1,16 @@
1
+ import React from "react"
2
+ import { Outlet } from "@tata1mg/router"
3
+
4
+ const App = () => {
5
+ return (
6
+ <>
7
+ <Outlet />
8
+ </>
9
+ )
10
+ }
11
+
12
+ App.serverSideFunction = () => {
13
+ return new Promise((resolve) => resolve())
14
+ }
15
+
16
+ export default App
@@ -0,0 +1,42 @@
1
+ import React from "react"
2
+ import { RouterDataProvider, MetaTag } from "@tata1mg/router"
3
+ import App from "@containers/App"
4
+ import routes from "./index.js"
5
+
6
+ /**
7
+ * Making the routes array compatible with the format accepted by createBrowserRouter
8
+ * API on the client side
9
+ * https://reactrouter.com/en/main/routers/create-browser-router
10
+ */
11
+
12
+ export const preparedRoutes = ({ routerInitialState }) => {
13
+ const getPreparedRoutes = (routes) => {
14
+ return routes.map((route, index) => {
15
+ const Component = route.component
16
+ const routeToRender = {
17
+ ...route,
18
+ element: <Component key={index} />,
19
+ }
20
+ if (route.children) {
21
+ routeToRender.children = getPreparedRoutes(route.children)
22
+ }
23
+ return routeToRender
24
+ })
25
+ }
26
+
27
+ return [
28
+ {
29
+ element: (
30
+ <RouterDataProvider config={{}} initialState={routerInitialState}>
31
+ <MetaTag />
32
+ <App />
33
+ </RouterDataProvider>
34
+ ),
35
+ children: getPreparedRoutes(routes),
36
+ },
37
+ ]
38
+ }
39
+
40
+ export const getRoutes = () => {
41
+ return routes
42
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2016",
4
+ "module": "CommonJS",
5
+ "esModuleInterop": true,
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "jsx": "react",
9
+ "noEmit": true
10
+ },
11
+ "include": ["src", "types.d.ts"],
12
+ "exclude": ["node_modules"]
13
+ }
@@ -0,0 +1,4 @@
1
+ declare module "*.scss" {
2
+ const classes: { [key: string]: string }
3
+ export default classes
4
+ }
@@ -4,7 +4,7 @@ import { hydrateRoot } from "react-dom/client"
4
4
  import { loadableReady } from "@loadable/component"
5
5
  import { Provider } from "react-redux"
6
6
  import { RouterProvider } from "@tata1mg/router"
7
- import clientRouter from "catalyst-core-internal/router/ClientRouter"
7
+ import clientRouter from "catalyst-core/router/ClientRouter"
8
8
  import configureStore from "@store"
9
9
 
10
10
  window.addEventListener("load", () => {
@@ -4,7 +4,10 @@
4
4
  "scripts": {
5
5
  "start": "catalyst start",
6
6
  "build": "catalyst build",
7
- "serve": "catalyst serve"
7
+ "serve": "catalyst serve",
8
+ "lint": "eslint .",
9
+ "devBuild": "catalyst devBuild",
10
+ "devServe": "catalyst devServe"
8
11
  },
9
12
  "_moduleAliases": {
10
13
  "@api": "api.js",
@@ -17,9 +20,14 @@
17
20
  },
18
21
  "dependencies": {
19
22
  "@loadable/component": "^5.16.3",
20
- "@tata1mg/router": "^0.0.1-beta.0",
21
- "catalyst-core-internal": "^0.0.1-beta.3",
23
+ "@tata1mg/router": "^0.0.1-beta.7",
24
+ "catalyst-core": "0.0.1-beta.14",
22
25
  "@reduxjs/toolkit": "1.9.3",
23
26
  "react-redux": "^8.1.3"
27
+ },
28
+ "devDependencies": {
29
+ "eslint": "^8.26.0",
30
+ "eslint-plugin-react": "^7.34.1",
31
+ "eslint-plugin-react-hooks": "^4.6.0"
24
32
  }
25
33
  }
@@ -9,7 +9,7 @@ const App = () => {
9
9
  )
10
10
  }
11
11
 
12
- App.serverSideFunction = ({}) => {
12
+ App.serverSideFunction = () => {
13
13
  return new Promise((resolve) => resolve())
14
14
  }
15
15
 
@@ -17,4 +17,3 @@ export const shellReducer = (state = defaultState, action) => {
17
17
  return state
18
18
  }
19
19
  }
20
-
@@ -0,0 +1,42 @@
1
+ import React from "react"
2
+ import { RouterDataProvider, MetaTag } from "@tata1mg/router"
3
+ import App from "@containers/App"
4
+ import routes from "./index.js"
5
+
6
+ /**
7
+ * Making the routes array compatible with the format accepted by createBrowserRouter
8
+ * API on the client side
9
+ * https://reactrouter.com/en/main/routers/create-browser-router
10
+ */
11
+
12
+ export const preparedRoutes = ({ store, routerInitialState }) => {
13
+ const getPreparedRoutes = (routes) => {
14
+ return routes.map((route, index) => {
15
+ const Component = route.component
16
+ const routeToRender = {
17
+ ...route,
18
+ element: <Component key={index} />,
19
+ }
20
+ if (route.children) {
21
+ routeToRender.children = getPreparedRoutes(route.children)
22
+ }
23
+ return routeToRender
24
+ })
25
+ }
26
+
27
+ return [
28
+ {
29
+ element: (
30
+ <RouterDataProvider config={{}} initialState={routerInitialState} fetcherArgs={{ store }}>
31
+ <MetaTag />
32
+ <App />
33
+ </RouterDataProvider>
34
+ ),
35
+ children: getPreparedRoutes(routes),
36
+ },
37
+ ]
38
+ }
39
+
40
+ export const getRoutes = () => {
41
+ return routes
42
+ }
@@ -6,11 +6,11 @@ import fetchInstance from "@api"
6
6
  /**
7
7
  * Function that initializes the store with the initialstate and adds middlewares that can be used during action dispatch
8
8
  * @param {object} initialState Default state
9
- * @param {object} request Request object that we recieve on server, this is only recieved when store is initialised on the server.
9
+ * @param {object} request Request object that we recieve on server, this is only recieved when store is initialized on the server.
10
10
  * @return {object} The store itself
11
11
  */
12
12
 
13
- const configureStore = (initialState, request) => {
13
+ const configureStore = (initialState) => {
14
14
  const api = fetchInstance
15
15
  const store = createStore({
16
16
  reducer: combineReducers({ shellReducer }),
@@ -0,0 +1,28 @@
1
+ import React from "react"
2
+ import "./styles"
3
+ import { hydrateRoot } from "react-dom/client"
4
+ import { loadableReady } from "@loadable/component"
5
+ import { Provider } from "react-redux"
6
+ import { RouterProvider } from "@tata1mg/router"
7
+ import clientRouter from "catalyst-core/router/ClientRouter"
8
+ import configureStore from "@store"
9
+
10
+ window.addEventListener("load", () => {
11
+ loadableReady(() => {
12
+ const { __ROUTER_INITIAL_DATA__: routerInitialData, __INITIAL_STATE__ } = window
13
+ const store = configureStore(__INITIAL_STATE__ || {})
14
+
15
+ const router = clientRouter({ store, routerInitialState: routerInitialData })
16
+
17
+ const Application = (
18
+ <Provider store={store} serverState={__INITIAL_STATE__}>
19
+ <React.StrictMode>
20
+ <RouterProvider router={router} />
21
+ </React.StrictMode>
22
+ </Provider>
23
+ )
24
+
25
+ const container = document.getElementById("app")
26
+ hydrateRoot(container, Application)
27
+ })
28
+ })
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "create-catalyst-app-starter",
3
+ "version": "1.0.0",
4
+ "scripts": {
5
+ "start": "catalyst start",
6
+ "build": "npm run typecheck && catalyst build",
7
+ "serve": "catalyst serve",
8
+ "lint": "eslint .",
9
+ "devBuild": "catalyst devBuild",
10
+ "devServe": "catalyst devServe",
11
+ "typecheck": "tsc --noEmit"
12
+ },
13
+ "_moduleAliases": {
14
+ "@api": "api.js",
15
+ "@containers": "src/js/containers",
16
+ "@server": "server",
17
+ "@config": "config",
18
+ "@css": "src/static/css",
19
+ "@routes": "src/js/routes/",
20
+ "@store": "src/js/store/index.js"
21
+ },
22
+ "dependencies": {
23
+ "@loadable/component": "^5.16.3",
24
+ "@tata1mg/router": "^0.0.1-beta.7",
25
+ "catalyst-core": "0.0.1-beta.14",
26
+ "@reduxjs/toolkit": "1.9.3",
27
+ "react-redux": "^8.1.3"
28
+ },
29
+ "devDependencies": {
30
+ "eslint": "^8.26.0",
31
+ "typescript": "^5.8.3",
32
+ "@types/react": "^18.2.0",
33
+ "@types/react-dom": "^18.2.0",
34
+ "eslint-plugin-react": "^7.34.1",
35
+ "eslint-plugin-react-hooks": "^4.6.0"
36
+ }
37
+ }
@@ -0,0 +1,17 @@
1
+ const createActionTypes = (prefix, actionTypeList = []) => {
2
+ const actionTypesObject = {}
3
+ actionTypeList.forEach((item) => {
4
+ actionTypesObject[item] = `${prefix}/${item}`
5
+ })
6
+
7
+ return actionTypesObject
8
+ }
9
+
10
+ export default createActionTypes
11
+
12
+ export const ShellActions = createActionTypes("shellActions", ["REDUX_TEST"])
13
+ export const reduxTest = () => {
14
+ return {
15
+ type: ShellActions.REDUX_TEST,
16
+ }
17
+ }
@@ -0,0 +1,16 @@
1
+ import React from "react"
2
+ import { Outlet } from "@tata1mg/router"
3
+
4
+ const App = () => {
5
+ return (
6
+ <>
7
+ <Outlet />
8
+ </>
9
+ )
10
+ }
11
+
12
+ App.serverSideFunction = () => {
13
+ return new Promise((resolve) => resolve())
14
+ }
15
+
16
+ export default App
@@ -0,0 +1,19 @@
1
+ import { ShellActions } from "./actions"
2
+
3
+ export const defaultState = {
4
+ testActionDispatched: false,
5
+ }
6
+
7
+ export const shellReducer = (state = defaultState, action) => {
8
+ switch (action.type) {
9
+ case ShellActions.REDUX_TEST: {
10
+ return {
11
+ ...state,
12
+ testActionDispatched: true,
13
+ }
14
+ }
15
+
16
+ default:
17
+ return state
18
+ }
19
+ }
@@ -0,0 +1,42 @@
1
+ import React from "react"
2
+ import { RouterDataProvider, MetaTag } from "@tata1mg/router"
3
+ import App from "@containers/App"
4
+ import routes from "./index.js"
5
+
6
+ /**
7
+ * Making the routes array compatible with the format accepted by createBrowserRouter
8
+ * API on the client side
9
+ * https://reactrouter.com/en/main/routers/create-browser-router
10
+ */
11
+
12
+ export const preparedRoutes = ({ store, routerInitialState }) => {
13
+ const getPreparedRoutes = (routes) => {
14
+ return routes.map((route, index) => {
15
+ const Component = route.component
16
+ const routeToRender = {
17
+ ...route,
18
+ element: <Component key={index} />,
19
+ }
20
+ if (route.children) {
21
+ routeToRender.children = getPreparedRoutes(route.children)
22
+ }
23
+ return routeToRender
24
+ })
25
+ }
26
+
27
+ return [
28
+ {
29
+ element: (
30
+ <RouterDataProvider config={{}} initialState={routerInitialState} fetcherArgs={{ store }}>
31
+ <MetaTag />
32
+ <App />
33
+ </RouterDataProvider>
34
+ ),
35
+ children: getPreparedRoutes(routes),
36
+ },
37
+ ]
38
+ }
39
+
40
+ export const getRoutes = () => {
41
+ return routes
42
+ }
@@ -0,0 +1,28 @@
1
+ import { configureStore as createStore } from "@reduxjs/toolkit"
2
+ import { combineReducers } from "redux"
3
+ import { shellReducer } from "@containers/App/reducer.js"
4
+ import fetchInstance from "@api"
5
+
6
+ /**
7
+ * Function that initializes the store with the initialstate and adds middlewares that can be used during action dispatch
8
+ * @param {object} initialState Default state
9
+ * @param {object} request Request object that we recieve on server, this is only recieved when store is initialized on the server.
10
+ * @return {object} The store itself
11
+ */
12
+
13
+ const configureStore = (initialState) => {
14
+ const api = fetchInstance
15
+ const store = createStore({
16
+ reducer: combineReducers({ shellReducer }),
17
+ middleware: (getDefaultMiddleware) =>
18
+ getDefaultMiddleware({
19
+ thunk: {
20
+ extraArgument: { api },
21
+ },
22
+ }),
23
+ preloadedState: initialState,
24
+ })
25
+ return store
26
+ }
27
+
28
+ export default configureStore
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2016",
4
+ "module": "CommonJS",
5
+ "esModuleInterop": true,
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "jsx": "react",
9
+ "noEmit": true
10
+ },
11
+ "include": ["src", "types.d.ts"],
12
+ "exclude": ["node_modules"]
13
+ }
@@ -0,0 +1,4 @@
1
+ declare module "*.scss" {
2
+ const classes: { [key: string]: string }
3
+ export default classes
4
+ }
@@ -4,7 +4,7 @@ import { hydrateRoot } from "react-dom/client"
4
4
  import { loadableReady } from "@loadable/component"
5
5
  import { Provider } from "react-redux"
6
6
  import { RouterProvider } from "@tata1mg/router"
7
- import clientRouter from "catalyst-core-internal/router/ClientRouter"
7
+ import clientRouter from "catalyst-core/router/ClientRouter"
8
8
  import configureStore from "@store"
9
9
 
10
10
  window.addEventListener("load", () => {
@@ -4,7 +4,10 @@
4
4
  "scripts": {
5
5
  "start": "catalyst start",
6
6
  "build": "catalyst build",
7
- "serve": "catalyst serve"
7
+ "serve": "catalyst serve",
8
+ "lint": "eslint .",
9
+ "devBuild": "catalyst devBuild",
10
+ "devServe": "catalyst devServe"
8
11
  },
9
12
  "_moduleAliases": {
10
13
  "@api": "api.js",
@@ -17,9 +20,14 @@
17
20
  },
18
21
  "dependencies": {
19
22
  "@loadable/component": "^5.16.3",
20
- "@tata1mg/router": "^0.0.1-beta.0",
21
- "catalyst-core-internal": "^0.0.1-beta.3",
23
+ "@tata1mg/router": "^0.0.1-beta.7",
24
+ "catalyst-core": "0.0.1-beta.14",
22
25
  "@reduxjs/toolkit": "1.9.3",
23
26
  "react-redux": "^8.1.3"
27
+ },
28
+ "devDependencies": {
29
+ "eslint": "^8.26.0",
30
+ "eslint-plugin-react": "^7.34.1",
31
+ "eslint-plugin-react-hooks": "^4.6.0"
24
32
  }
25
33
  }
@@ -9,7 +9,7 @@ const App = () => {
9
9
  )
10
10
  }
11
11
 
12
- App.serverSideFunction = ({}) => {
12
+ App.serverSideFunction = () => {
13
13
  return new Promise((resolve) => resolve())
14
14
  }
15
15
 
@@ -8,7 +8,7 @@ export const appSlice = createSlice({
8
8
  name: "shellReducer",
9
9
  initialState: initialState,
10
10
  reducers: {
11
- reduxTest: (state, action) => {
11
+ reduxTest: (state) => {
12
12
  state.testActionDispatched = true
13
13
  },
14
14
  },