@gxp-dev/tools 2.0.79 → 2.0.80

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.
@@ -129,6 +129,11 @@ function copyBundleFiles(projectPath, paths, overwrite = false) {
129
129
  dest: "vite.extend.js",
130
130
  desc: "vite.extend.js (customize the Vite runtime config)",
131
131
  },
132
+ {
133
+ src: "vitest.config.js",
134
+ dest: "vitest.config.js",
135
+ desc: "vitest.config.js (Vitest config for `npm test`)",
136
+ },
132
137
  {
133
138
  src: "eslint.config.js",
134
139
  dest: "eslint.config.js",
@@ -22,6 +22,7 @@ const REQUIRED_DEV_DEPENDENCIES = {
22
22
  prettier: "^3.8.3",
23
23
  vitest: "^4.1.5",
24
24
  "@vue/test-utils": "^2.4.6",
25
+ "happy-dom": "^15.11.0",
25
26
  }
26
27
 
27
28
  // Default scripts for package.json
@@ -30,7 +31,7 @@ const DEFAULT_SCRIPTS = {
30
31
  "dev-app": "gxdev dev",
31
32
  "dev-http": "gxdev dev --no-https",
32
33
  build: "gxdev build",
33
- test: "vitest run",
34
+ test: "vitest run --passWithNoTests",
34
35
  "test:watch": "vitest",
35
36
  lint: "gxdev lint --all",
36
37
  "lint:js": "eslint .",
@@ -20,7 +20,7 @@ const SCAFFOLD_SYSTEM_PROMPT = `You are an expert GxP plugin developer assistant
20
20
  GxP plugins are Vue 3 Single File Components (SFCs) that run on kiosk displays. They use:
21
21
  - Vue 3 Composition API with <script setup>
22
22
  - Pinia for state management via the GxP Store
23
- - GxP Component Kit (@gramercytech/gx-componentkit) for UI components
23
+ - GxP Component Kit (@gxp-dev/uikit) for UI components
24
24
  - gxp-string and gxp-src directives for dynamic content
25
25
 
26
26
  ## Key Components Available
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxp-dev/tools",
3
- "version": "2.0.79",
3
+ "version": "2.0.80",
4
4
  "description": "Dev tools to create platform plugins",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -57,7 +57,6 @@
57
57
  "dependencies": {
58
58
  "@faker-js/faker": "^9.9.0",
59
59
  "@fal-works/esbuild-plugin-global-externals": "^2.1.2",
60
- "@gramercytech/gx-componentkit": "^1.0.23",
61
60
  "@vitejs/plugin-vue": "^6.0.6",
62
61
  "adm-zip": "^0.5.17",
63
62
  "ajv": "^8.18.0",
@@ -426,20 +426,6 @@ Strings, assets, dependencies, colors → `additionalTabs`. Quiz/survey question
426
426
 
427
427
  Finish with `gxdev lint --all`. The linter validates both roots against the same card/field schema, so malformed questions fail in the same way malformed admin fields do.
428
428
 
429
- ## Component Kit
430
-
431
- Import UI components from `@gramercytech/gx-componentkit`:
432
-
433
- ```javascript
434
- import {
435
- GxButton,
436
- GxCard,
437
- GxInput,
438
- GxModal,
439
- GxSpinner,
440
- } from "@gramercytech/gx-componentkit"
441
- ```
442
-
443
429
  Available: GxButton, GxCard, GxInput, GxModal, GxSpinner, GxAlert, GxBadge, GxAvatar, GxProgress, GxTabs, GxAccordion
444
430
 
445
431
  ## Configuration Files
@@ -266,8 +266,7 @@ Tools: `config_list_card_types`, `config_list_field_types`, `config_get_field_sc
266
266
 
267
267
  ## Component Kit
268
268
 
269
- Use `@gramercytech/gx-componentkit` for UI:
270
- GxButton, GxCard, GxInput, GxModal, GxSpinner, GxAlert, GxBadge, GxProgress, GxTabs
269
+ Use `@gxp-dev/uikit` for UI
271
270
 
272
271
  ## API Specs
273
272
 
@@ -1,6 +1,6 @@
1
1
  # GxP Plugin Project
2
2
 
3
- This project was scaffolded by `@gxp-dev/tools` and includes the `@gramercytech/gx-componentkit` component library for rapid kiosk/plugin development.
3
+ This project was scaffolded by `@gxp-dev/tools` and includes the `@gxp-dev/uikit` component library for rapid kiosk/plugin development.
4
4
 
5
5
  ## Quick Start
6
6
 
@@ -252,11 +252,7 @@ Full reference: [docs.gxp.dev/gx-devtools/app-manifest](https://docs.gxp.dev/gx-
252
252
 
253
253
  ## GX ComponentKit
254
254
 
255
- This project includes `@gramercytech/gx-componentkit`:
256
-
257
- - **Pages** — `GxPageStart`, `GxPageInstructions`, `GxPageCamera`, `GxPageResults`, `GxPageShare`, `GxPageFinal`, `GxPageLoading`
258
- - **UI** — `GxModal`, `GxCountdown`, `GxVideoPlayer`, `GxThemeWrapper`
259
- - **Composables** — `useMedia`, `useAnimations`, `useScanning`, `useErrors`
255
+ This project includes `@gxp-dev/uikit`
260
256
 
261
257
  Theme CSS variables are auto-injected:
262
258
 
@@ -0,0 +1,25 @@
1
+ import { defineConfig } from "vitest/config"
2
+ import vue from "@vitejs/plugin-vue"
3
+ import path from "path"
4
+ import { fileURLToPath } from "url"
5
+
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url))
7
+
8
+ export default defineConfig({
9
+ plugins: [vue()],
10
+ resolve: {
11
+ alias: {
12
+ "@": path.resolve(__dirname, "src"),
13
+ "@layouts": path.resolve(__dirname, "theme-layouts"),
14
+ },
15
+ },
16
+ test: {
17
+ globals: true,
18
+ environment: "happy-dom",
19
+ include: [
20
+ "tests/**/*.{test,spec}.{js,mjs,ts}",
21
+ "src/**/*.{test,spec}.{js,mjs,ts}",
22
+ ],
23
+ passWithNoTests: true,
24
+ },
25
+ })