domma-js 0.41.0 → 0.44.0

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/bin/domma-cli.js CHANGED
@@ -259,12 +259,12 @@ async function handleInit() {
259
259
  if (projectMode === 'spa') {
260
260
  console.log(` 1. Start server: npm start (or: npm run serve)`);
261
261
  console.log(` 2. Edit domma.config.json to customise routes and navbar`);
262
- console.log(` 3. Add new views: npx domma add view <name>`);
262
+ console.log(` 3. Add new views: npx domma-js add view <name>`);
263
263
  console.log(` 4. Edit views in frontend/js/views/`);
264
264
  } else {
265
265
  console.log(` 1. Start server: npm start (or: npm run serve)`);
266
266
  console.log(` 2. Edit domma.config.json to customise`);
267
- console.log(` 3. Add new pages: npx domma add page <name>`);
267
+ console.log(` 3. Add new pages: npx domma-js add page <name>`);
268
268
  }
269
269
 
270
270
  console.log(` ${projectMode === 'spa' ? '5' : '4'}. Read the docs: https://github.com/dcbw-it/domma\n`);
@@ -621,7 +621,7 @@ async function handleServe() {
621
621
 
622
622
  if (!existsSync(configPath)) {
623
623
  console.error('\n ✗ Not in a Domma project directory');
624
- console.error(' Run "npx domma init" first to create a project.\n');
624
+ console.error(' Run "npx domma-js init" first to create a project.\n');
625
625
  process.exit(1);
626
626
  }
627
627
 
@@ -637,7 +637,7 @@ async function handleServe() {
637
637
 
638
638
  if (answer.toLowerCase() === 'n') {
639
639
  console.log('\n To install manually: npm install live-server');
640
- console.log(' Then run: npx domma serve\n');
640
+ console.log(' Then run: npx domma-js serve\n');
641
641
  process.exit(0);
642
642
  }
643
643
 
@@ -832,7 +832,7 @@ Examples:
832
832
  npx domma-js serve # Direct CLI usage
833
833
  npx domma-js serve --port 3096 # Custom port
834
834
 
835
- Note: After 'npx domma init', use 'npm start' to run the server.
835
+ Note: After 'npx domma-js init', use 'npm start' to run the server.
836
836
  Paths are automatically calculated based on folder depth.
837
837
  `);
838
838
  }
@@ -147,7 +147,7 @@ async function main() {
147
147
  const answer = await prompt(`${colors.bright}Copy AI assistance files to your project? (Y/n): ${colors.reset}`);
148
148
 
149
149
  if (answer === 'n' || answer === 'no') {
150
- console.log(`${colors.gray}Skipped. Run ${colors.bright}npx domma setup-ai${colors.gray} later to add these files.${colors.reset}\n`);
150
+ console.log(`${colors.gray}Skipped. Run ${colors.bright}npx domma-js setup-ai${colors.gray} later to add these files.${colors.reset}\n`);
151
151
  return;
152
152
  }
153
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domma-js",
3
- "version": "0.41.0",
3
+ "version": "0.44.0",
4
4
  "description": "Dynamic Object Manipulation & Modeling API - A complete front-end toolkit.",
5
5
  "main": "public/dist/domma.min.js",
6
6
  "module": "public/dist/domma.esm.js",
@@ -39,18 +39,19 @@
39
39
  "start": "node bin/domma-cli.js serve",
40
40
  "serve": "node bin/domma-cli.js serve",
41
41
  "serve:3096": "node bin/domma-cli.js serve --port 3096",
42
- "dev": "NODE_ENV=development npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run generate:themes && npm run build:css && npm run build:miniapps && live-server public --port=3001 --open=/index.html",
43
- "dev:watch": "NODE_ENV=development npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run generate:themes && npm run build:css && npm run build:miniapps && npm run watch:miniapps",
44
- "build": "npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run generate:themes && npm run build:css && npm run build:css-bundles && npm run build:archives && npm run build:kickstart-files && npm run build:miniapps",
42
+ "dev": "NODE_ENV=development npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:miniapps && live-server public --port=3001 --open=/index.html",
43
+ "dev:watch": "NODE_ENV=development npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:miniapps && npm run watch:miniapps",
44
+ "build": "npm run generate:bundles && rollup -c && node scripts/build-info.js && npm run build:metadata && npm run copy:themes && npm run copy:celebrate && npm run generate:themes && npm run build:css && npm run build:css-bundles && npm run build:archives && npm run build:kickstart-files && npm run build:miniapps",
45
45
  "build:js": "rollup -c",
46
46
  "build:css": "node scripts/build-css.js",
47
47
  "validate:classes": "node scripts/validate-classes.js",
48
48
  "validate:theme": "node scripts/validate-theme-contrast.js",
49
+ "validate:contrast": "node scripts/validate-contrast-pairs.js",
49
50
  "validate:conventions": "node scripts/validate-conventions.js",
50
51
  "validate:showcase": "vitest run src/showcase-pages.test.js",
51
52
  "validate:showcase:strict": "SHOWCASE_STRICT=1 vitest run src/showcase-pages.test.js",
52
53
  "validate:showcase:baseline": "SHOWCASE_BASELINE=1 vitest run src/showcase-pages.test.js",
53
- "validate": "npm run validate:classes && npm run validate:theme && npm run validate:conventions",
54
+ "validate": "npm run validate:classes && npm run validate:theme && npm run validate:contrast && npm run validate:conventions",
54
55
  "build:css-bundles": "node scripts/build-css-bundles.js",
55
56
  "build:archives": "node scripts/build-archives.js",
56
57
  "build:kickstart-files": "node scripts/build-kickstart-files.js",
@@ -65,7 +66,8 @@
65
66
  "generate:themes": "node scripts/generate-admin-themes.js",
66
67
  "test:vitest": "vitest",
67
68
  "test": "vitest",
68
- "cypress:run": "cypress run"
69
+ "cypress:run": "cypress run",
70
+ "copy:celebrate": "node scripts/copy-celebrate.js"
69
71
  },
70
72
  "keywords": [
71
73
  "dom",
@@ -76,13 +78,17 @@
76
78
  ],
77
79
  "author": "Darryl Waterhouse",
78
80
  "license": "ISC",
81
+ "engines": {
82
+ "node": ">=24"
83
+ },
79
84
  "devDependencies": {
80
85
  "@rollup/plugin-node-resolve": "^15.3.0",
81
86
  "@rollup/plugin-replace": "^6.0.3",
82
87
  "@rollup/plugin-terser": "^0.4.4",
83
88
  "@vitest/coverage-v8": "^4.0.16",
84
89
  "cypress": "^15.8.1",
85
- "domma-reactive": "1.0.0",
90
+ "domma-celebrate": "file:../domma-celebrate",
91
+ "domma-reactive": "1.0.1",
86
92
  "dompurify": "^3.4.13",
87
93
  "dotenv": "^17.2.3",
88
94
  "jsdom": "^24.1.0",