catalyst-core-internal 0.0.1-beta.1 → 0.0.1-beta.2

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.
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "catalyst-core-internal",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.2",
4
4
  "main": "index.js",
5
5
  "description": "Web framework that provides great performance out of the box",
6
6
  "bin": {
7
- "catalyst": "./bin/catalyst.js"
7
+ "catalyst": "bin/catalyst.js"
8
8
  },
9
9
  "scripts": {
10
10
  "prepare": "babel src --out-dir . ",
11
- "start": "node ./scripts/checkVersion && npm run start:client & npm run start:server --disable-warning=ExperimentalWarning",
12
- "start:client": "npx babel-node -r ./scripts/loadScriptsBeforeServerStarts.js webpack/development.client.babel --disable-warning=ExperimentalWarning",
13
- "start:server": "npx babel-node -r ./scripts/loadScriptsBeforeServerStarts.js ./server/startServer.js --watch-path=${npm_config_src_path}/server --watch-path=${npm_config_src_path}/src --ignore='__IGNORE__' --disable-warning=ExperimentalWarning",
14
- "build": "node ./scripts/checkVersion && npm run build:prepare && npm run build:client && npm run build:ssr && npm run build:server --disable-warning=ExperimentalWarning",
11
+ "start": "node ./scripts/checkVersion && npm run start:client & npm run start:server",
12
+ "start:client": "npx babel-node -r ./scripts/loadScriptsBeforeServerStarts.js webpack/development.client.babel --no-warnings=ExperimentalWarning",
13
+ "start:server": "npx babel-node -r ./scripts/loadScriptsBeforeServerStarts.js ./server/startServer.js --watch-path=${npm_config_src_path}/server --watch-path=${npm_config_src_path}/src --ignore='__IGNORE__' --no-warnings=ExperimentalWarning",
14
+ "build": "node ./scripts/checkVersion && npm run build:prepare && npm run build:client && npm run build:ssr && npm run build:server",
15
15
  "build:prepare": "rm -rf ${npm_config_src_path}/build & node ./scripts/loadScriptsBeforeServerStarts.js",
16
16
  "build:client": "APPLICATION=${npm_config_app_name} NODE_ENV=production webpack --config ./webpack/production.client.babel.js --progress",
17
17
  "build:ssr": "APPLICATION=${npm_config_app_name} NODE_ENV=production SSR=true webpack --config ./webpack/production.ssr.babel.js --progress",
18
- "build:server": "APPLICATION=${npm_config_app_name} NODE_ENV=production npx babel ./server --out-dir ${npm_config_src_path}/build --ignore '**/*.test.js,./server/renderer/handler.js' && APPLICATION=${npm_config_app_name} npx babel ${npm_config_src_path}/server --out-dir ${npm_config_src_path}/build ",
19
- "serve": "APPLICATION=${npm_config_app_name} NODE_ENV=production node -r ./scripts/loadScriptsBeforeServerStarts.js ${npm_config_src_path}/build/startServer.js --disable-warning=ExperimentalWarning"
18
+ "build:server": "APPLICATION=${npm_config_app_name} NODE_ENV=production npx babel ./server --out-dir ${npm_config_src_path}/build --ignore '**/*.test.js,./server/renderer/handler.js' && APPLICATION=${npm_config_app_name} npx babel ${npm_config_src_path}/server --out-dir ${npm_config_src_path}/build",
19
+ "serve": "APPLICATION=${npm_config_app_name} NODE_ENV=production node -r ./scripts/loadScriptsBeforeServerStarts.js ${npm_config_src_path}/build/startServer.js",
20
+ "prepublishOnly": "npm i && npm run prepare"
20
21
  },
21
22
  "license": "ISC",
22
23
  "dependencies": {
@@ -34,7 +35,7 @@
34
35
  "@loadable/webpack-plugin": "^5.15.2",
35
36
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
36
37
  "@svgr/webpack": "^8.1.0",
37
- "@tata1mg/router": "^0.0.1-alpha.13",
38
+ "@tata1mg/router": "^0.0.1-beta.0",
38
39
  "app-root-path": "^3.1.0",
39
40
  "babel-loader": "^9.1.3",
40
41
  "babel-plugin-dynamic-import-node": "^2.3.3",
@@ -47,9 +47,11 @@ ANALYZE_BUNDLE && new _webpackBundleAnalyzer.BundleAnalyzerPlugin({
47
47
  })];
48
48
  const {
49
49
  PUBLIC_STATIC_ASSET_URL,
50
- PUBLIC_STATIC_ASSET_PATH
50
+ PUBLIC_STATIC_ASSET_PATH,
51
+ WEBPACK_DEV_SERVER_HOSTNAME,
52
+ WEBPACK_DEV_SERVER_PORT
51
53
  } = process.env;
52
- let publicPath = `${PUBLIC_STATIC_ASSET_URL}${PUBLIC_STATIC_ASSET_PATH}`;
54
+ let publicPath = isDev ? `http://${WEBPACK_DEV_SERVER_HOSTNAME}:${WEBPACK_DEV_SERVER_PORT}` : `${PUBLIC_STATIC_ASSET_URL}${PUBLIC_STATIC_ASSET_PATH}`;
53
55
  var _default = exports.default = {
54
56
  context: _path.default.resolve(process.env.src_path),
55
57
  mode: isDev ? "development" : "production",
@@ -36,7 +36,7 @@ const ssrConfig = mergeWithCustomize({
36
36
  name: false
37
37
  }
38
38
  },
39
- plugins: [...plugins.ssrPrugins],
39
+ plugins: [...plugins.ssrPlugins],
40
40
  target: "node",
41
41
  entry: {
42
42
  handler: _path.default.resolve(__dirname, "..", "./server/renderer/handler.js")