@bigbinary/neeto-commons-frontend 4.13.111 → 4.13.113
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.
|
@@ -88,9 +88,15 @@ const getWatchConfig = ({
|
|
|
88
88
|
} = {}) => {
|
|
89
89
|
const appArg = getAppArg();
|
|
90
90
|
|
|
91
|
-
if (!appArg) return { watchPlugins: [], appPath: null };
|
|
92
|
-
|
|
93
91
|
const currentDir = process.cwd();
|
|
92
|
+
|
|
93
|
+
if (!appArg) {
|
|
94
|
+
return {
|
|
95
|
+
watchPlugins: [emitReadyFile(path.resolve(currentDir, "dist"))],
|
|
96
|
+
appPath: null,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
94
100
|
const packageJson = require(path.resolve(currentDir, "package.json"));
|
|
95
101
|
|
|
96
102
|
const appPath = path.resolve(
|
package/configs/vite/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/extensions */
|
|
2
2
|
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
|
|
3
5
|
const { default: viteYaml } = require("@modyfi/vite-plugin-yaml");
|
|
4
6
|
const { default: react } = require("@vitejs/plugin-react");
|
|
5
7
|
const dotenv = require("dotenv");
|
|
@@ -20,6 +22,14 @@ const { config: esbuildConfig } = require("../esbuild/index.js");
|
|
|
20
22
|
dotenv.config({ path: ".env.development" });
|
|
21
23
|
|
|
22
24
|
const port = process.env.DEVSERVER_PORT || 8000;
|
|
25
|
+
const root = "app/javascript/packs";
|
|
26
|
+
|
|
27
|
+
const warmupClientFiles = fs.existsSync(root)
|
|
28
|
+
? fs
|
|
29
|
+
.readdirSync(root)
|
|
30
|
+
.filter(file => file.endsWith(".js"))
|
|
31
|
+
.map(file => `./${file}`)
|
|
32
|
+
: [];
|
|
23
33
|
|
|
24
34
|
const config = {
|
|
25
35
|
assestsInclude: ["**/*.yaml"],
|
|
@@ -35,7 +45,12 @@ const config = {
|
|
|
35
45
|
nanoDevelopmentPlugin(),
|
|
36
46
|
],
|
|
37
47
|
resolve: { extensions: esbuildConfig.resolveExtensions },
|
|
38
|
-
server: {
|
|
48
|
+
server: {
|
|
49
|
+
port,
|
|
50
|
+
origin: `http://localhost:${port}`,
|
|
51
|
+
cors: true,
|
|
52
|
+
warmup: { clientFiles: warmupClientFiles },
|
|
53
|
+
},
|
|
39
54
|
build: {
|
|
40
55
|
manifest: true,
|
|
41
56
|
sourcemap: true,
|
|
@@ -43,7 +58,7 @@ const config = {
|
|
|
43
58
|
rollupOptions: { input: esbuildConfig.entryPoints },
|
|
44
59
|
},
|
|
45
60
|
define: { ...esbuildConfig.define, global: "{}" },
|
|
46
|
-
root
|
|
61
|
+
root,
|
|
47
62
|
optimizeDeps: {
|
|
48
63
|
include: ["@bigbinary/neeto-icons/typeface-logos", "zustand/shallow"],
|
|
49
64
|
},
|
|
@@ -8,8 +8,6 @@ const nanoDevelopmentPlugin = () => {
|
|
|
8
8
|
let restartInProgress = false;
|
|
9
9
|
let restartAgain = false;
|
|
10
10
|
|
|
11
|
-
const isWatchMode = process.env.WATCH_MODE === "true";
|
|
12
|
-
|
|
13
11
|
return {
|
|
14
12
|
name: "vite-plugin-nano-development",
|
|
15
13
|
configureServer(server) {
|
|
@@ -35,7 +33,7 @@ const nanoDevelopmentPlugin = () => {
|
|
|
35
33
|
);
|
|
36
34
|
|
|
37
35
|
function restartServer(filePath) {
|
|
38
|
-
if (
|
|
36
|
+
if (!filePath.endsWith(".ready")) return;
|
|
39
37
|
|
|
40
38
|
clearTimeout(restartTimeout);
|
|
41
39
|
restartTimeout = setTimeout(() => {
|
package/dist/.ready
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Built at 2026-03-20T05:57:05.732Z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.113",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@testing-library/react-hooks": "^8.0.0",
|
|
120
120
|
"@testing-library/user-event": "13.5.0",
|
|
121
121
|
"@tippyjs/react": "4.2.6",
|
|
122
|
-
"@vitejs/plugin-react": "^
|
|
122
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
123
123
|
"antd": "5.22.1",
|
|
124
124
|
"autoprefixer": "10.4.20",
|
|
125
125
|
"avvvatars-react": "0.4.2",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"unified": "11.0.0",
|
|
211
211
|
"util": "^0.12.5",
|
|
212
212
|
"uuid": "10.0.0",
|
|
213
|
-
"vite": "^
|
|
213
|
+
"vite": "^8.0.0",
|
|
214
214
|
"yup": "0.32.11",
|
|
215
215
|
"zustand": "4.4.2"
|
|
216
216
|
},
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"@tanstack/react-query": "5.59.20",
|
|
236
236
|
"@tanstack/react-query-devtools": "5.59.20",
|
|
237
237
|
"@tippyjs/react": "4.2.6",
|
|
238
|
-
"@vitejs/plugin-react": "^
|
|
238
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
239
239
|
"antd": "5.22.1",
|
|
240
240
|
"autoprefixer": "10.4.20",
|
|
241
241
|
"avvvatars-react": "0.4.2",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"ua-parser-js": "^2.0.3",
|
|
274
274
|
"util": "^0.12.5",
|
|
275
275
|
"uuid": "10.0.0",
|
|
276
|
-
"vite": "^
|
|
276
|
+
"vite": "^8.0.0",
|
|
277
277
|
"webpack": "^5.75.0",
|
|
278
278
|
"yup": "0.32.11",
|
|
279
279
|
"zustand": "4.4.2"
|