@unsetsoft/ryunixjs 0.3.5 → 0.3.6-nightly.0

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/bin/index.mjs CHANGED
@@ -7,10 +7,8 @@ const serv = {
7
7
  command: "server",
8
8
  describe: "Run server",
9
9
  handler: async (arg) => {
10
- const port = arg.port || 3000;
11
10
  const open = Boolean(arg.browser) || false;
12
11
  const settings = {
13
- port: port,
14
12
  open,
15
13
  };
16
14
 
package/bin/serve.mjs CHANGED
@@ -12,7 +12,7 @@ const StartServer = async (cliSettings) => {
12
12
  return logger.error(`[error] ${err.message}`);
13
13
  }
14
14
  logger.info(
15
- `[info] Dev Server is runing at: http://localhost:${cliSettings.port}`
15
+ `[info] Dev Server is runing at: http://localhost:${webpackConfig.devServer.port}`
16
16
  );
17
17
  });
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.3.5",
3
+ "version": "0.3.6-nightly.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,
package/utils/config.cjs CHANGED
@@ -15,6 +15,10 @@ const defaultSettings = {
15
15
  buildDirectory: config?.buildDirectory ? config.buildDirectory : ".ryunix",
16
16
  appDirectory: config?.appDirectory ? config.appDirectory : "src",
17
17
  publicDirectory: config?.publicDirectory ? config.publicDirectory : "public",
18
+ server: {
19
+ port: config?.port ? config.port : 3000,
20
+ proxy: config?.proxy ? config.proxy : {},
21
+ },
18
22
  };
19
23
 
20
24
  module.exports = defaultSettings;
@@ -48,6 +48,8 @@ export default {
48
48
  "Access-Control-Allow-Methods": "*",
49
49
  "Access-Control-Allow-Headers": "*",
50
50
  },
51
+ port: config.server.port,
52
+ proxy: config.server.proxy,
51
53
  },
52
54
  optimization: {
53
55
  runtimeChunk: "single",