codex-lens 0.1.2 → 0.1.3
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/build.js +7 -16
- package/dist/public/assets/main-B86_1Kr6.js +50 -0
- package/dist/public/assets/main-CPDV3aMv.css +32 -0
- package/dist/public/index.html +13 -0
- package/package.json +1 -1
- package/vite.config.js +1 -1
- package/dist/main.css +0 -658
- package/dist/main.js +0 -31446
package/build.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { build } from 'esbuild';
|
|
1
|
+
import { build as esbuildBuild } from 'esbuild';
|
|
2
|
+
import { build as viteBuild } from 'vite';
|
|
2
3
|
import { rmSync, existsSync, mkdirSync, cpSync } from 'fs';
|
|
3
4
|
import { resolve, dirname } from 'path';
|
|
4
5
|
import { fileURLToPath } from 'url';
|
|
@@ -28,7 +29,7 @@ async function buildAll() {
|
|
|
28
29
|
|
|
29
30
|
for (const file of backendFiles) {
|
|
30
31
|
try {
|
|
31
|
-
await
|
|
32
|
+
await esbuildBuild({
|
|
32
33
|
entryPoints: [resolve(__dirname, file)],
|
|
33
34
|
outfile: resolve(__dirname, file.replace('src/', 'dist/')),
|
|
34
35
|
bundle: false,
|
|
@@ -45,21 +46,11 @@ async function buildAll() {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
bundle: true,
|
|
52
|
-
platform: 'browser',
|
|
53
|
-
target: 'es2020',
|
|
54
|
-
format: 'esm',
|
|
55
|
-
jsx: 'automatic',
|
|
56
|
-
loader: {
|
|
57
|
-
'.js': 'jsx',
|
|
58
|
-
'.jsx': 'jsx',
|
|
59
|
-
},
|
|
60
|
-
external: [],
|
|
49
|
+
console.log('Building frontend with Vite...');
|
|
50
|
+
await viteBuild({
|
|
51
|
+
configFile: resolve(__dirname, 'vite.config.js'),
|
|
61
52
|
});
|
|
62
|
-
console.log('Built:
|
|
53
|
+
console.log('Built: frontend -> dist/public/');
|
|
63
54
|
|
|
64
55
|
if (existsSync(resolve(__dirname, 'public'))) {
|
|
65
56
|
cpSync(resolve(__dirname, 'public'), resolve(outDir, 'public'), { recursive: true });
|