Skip to content

Commit 4059b7a

Browse files
committed
Add Vite build to ee.build process
1 parent deb353d commit 4059b7a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

scripts/includes/packaging.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
exit(1);
1212
}
1313

14+
// Make a build of the React app for the CP
15+
exec('npm --prefix ./themes/user/app run build 2>&1', $output, $returnVar);
16+
echo "Return code: $returnVar\n";
17+
echo "Vite Build:\n" . implode("\n", $output);
18+
1419
// Grab just the production dependencies
1520
exec('composer install -o --no-dev --no-ansi --no-interaction --working-dir='. $baseDir);
1621

themes/user/app/src/ViewQueueJobs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function ViewQueueJobs() {
147147
Job
148148
</th>
149149
<th>
150-
Retry
150+
Actions
151151
</th>
152152
</tr>
153153
</thead>

themes/user/app/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineConfig({
66
plugins: [react()],
77
build: {
88
outDir: '../queue',
9+
emptyOutDir: false,
910
rollupOptions: {
1011
output: {
1112
entryFileNames: 'assets/[name].js', // Fixed file name for entry points

themes/user/queue/assets/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)