yasithdev opened a new pull request, #152: URL: https://github.com/apache/airavata-portals/pull/152
## Summary Migrates the **admin** SPA from Vue CLI 5 / webpack 4 to **Vite 5 + @vitejs/plugin-vue2** (Vue 2.7) and from jest to **Vitest**, continuing the toolchain modernization. Build, tests, and lint all green on Node 26. - Single-page entry (`src/main.js`) builds to an ES module `app` bundle; the `django-webpack-stats` plugin emits a django-webpack-loader-compatible `webpack-stats.json`. - `admin_base.html` loads the bundle via `<script type="module">` and drops the dead `chunk-vendors` reference (keeping the static `admin.css` link and the `@`→src alias the specs rely on). - **Test migration:** `jest.mock`→`vi.mock` (async `vi.importActual`), `jest.fn`→`vi.fn`; `@testing-library/jest-dom` matchers work under Vitest unchanged. Adds `[email protected]` (required by `@vue/test-utils` v1 on Vue 2.7) and removes the now-unused jest `styleMock`. **2/2 tests pass.** - Keeps the SPA's runtime deps (vue-router/vuex/vue-resource/vue-flatpickr/luxon/moment/etc.); drops `core-js`, `terser`, `browserslist`, `autoprefixer`, and the `@vue/cli-*`/`webpack`/jest dev tooling. ## Test plan - `yarn install` + `yarn build` succeed; `yarn test` → 2/2 pass; `yarn lint` clean — all on Node 26. - `admin_base.html` compiles; offline render emits the correct `<link>`/`<script type="module">` for the `app` bundle. - `manage.py check` — no issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
