@quincarter/create-lit-app 1.1.5 → 1.1.7

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.
Files changed (2) hide show
  1. package/create-app-shell.sh +30 -13
  2. package/package.json +4 -4
@@ -561,13 +561,13 @@ cat <<EOF > package.json
561
561
  $DEPS
562
562
  },
563
563
  "devDependencies": {
564
- "@biomejs/biome": "2.5.5",
565
- "@types/luxon": "^3.7.2",
564
+ "@biomejs/biome": "^2.5.10",
565
+ "@types/luxon": "^3.7.5",
566
566
  "@types/mocha": "^10.0.10",
567
- "typescript": "^5.4.5",
568
- "vite": "^5.2.11",
569
- "vite-plugin-pwa": "^0.20.0",
570
- "vitest": "^1.6.0"
567
+ "typescript": "^7.0.2",
568
+ "vite": "^8.2.2",
569
+ "vite-plugin-pwa": "^1.3.0",
570
+ "vitest": "^4.1.11"
571
571
  }
572
572
  }
573
573
  EOF
@@ -612,14 +612,18 @@ EOF
612
612
 
613
613
  cat <<'EOF' > biome.json
614
614
  {
615
- "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
616
- "organizeImports": {
617
- "enabled": true
615
+ "$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
616
+ "assist": {
617
+ "actions": {
618
+ "source": {
619
+ "organizeImports": "on"
620
+ }
621
+ }
618
622
  },
619
623
  "linter": {
620
624
  "enabled": true,
621
625
  "rules": {
622
- "recommended": true
626
+ "preset": "recommended"
623
627
  }
624
628
  },
625
629
  "formatter": {
@@ -699,6 +703,19 @@ cat <<'EOF' > src/vite-env.d.ts
699
703
  /// <reference types="vite/client" />
700
704
  EOF
701
705
 
706
+ # ------------------------------------------------------------------------------
707
+ # Generate a smoke test so `npm test` (vitest run) has at least one passing test
708
+ # ------------------------------------------------------------------------------
709
+ cat <<'EOF' > src/base-path.test.ts
710
+ import { expect, test } from "vitest";
711
+ import { withBase } from "./shared/configuration/base-path";
712
+
713
+ test("withBase normalizes the leading slash", () => {
714
+ expect(withBase("home")).toBe(withBase("/home"));
715
+ expect(withBase("a/b")).toBe(withBase("/a/b"));
716
+ });
717
+ EOF
718
+
702
719
  # ------------------------------------------------------------------------------
703
720
  # Create Shared Directories & Modules
704
721
  # ------------------------------------------------------------------------------
@@ -1333,8 +1350,6 @@ fi
1333
1350
  if [ "$ENABLE_CHARTS" = true ]; then
1334
1351
  mkdir -p src/components/chart-js
1335
1352
  cat <<'EOF' > src/components/chart-js/chart-js.utility.ts
1336
- import colorLib, { type Color, type RGBA } from "@kurkle/color";
1337
- import { DateTime } from "luxon";
1338
1353
  import "chartjs-adapter-luxon";
1339
1354
 
1340
1355
  var _seed = Date.now();
@@ -1682,6 +1697,7 @@ import "../../components/todos/todo-list/todo-list";
1682
1697
 
1683
1698
  @customElement("todos-page")
1684
1699
  export class TodosPage extends ViewMixin(LitElement) {
1700
+ tagName = "todos-page";
1685
1701
  featureIsEnabled = true;
1686
1702
  isMfe = false;
1687
1703
  static styles = [TodosPageStyles];
@@ -1710,6 +1726,7 @@ import "../../components/card/generic-card";
1710
1726
 
1711
1727
  @customElement("card-examples")
1712
1728
  export class CardExamples extends ViewMixin(LitElement) {
1729
+ tagName = "card-examples";
1713
1730
  featureIsEnabled = true;
1714
1731
  isMfe = false;
1715
1732
  static styles = [CardPageStyles];
@@ -1738,6 +1755,7 @@ import "../../components/chart-js/chart-js";
1738
1755
 
1739
1756
  @customElement("chart-examples")
1740
1757
  export class ChartExamples extends ViewMixin(LitElement) {
1758
+ tagName = "chart-examples";
1741
1759
  featureIsEnabled = true;
1742
1760
  isMfe = false;
1743
1761
 
@@ -1815,7 +1833,6 @@ fi
1815
1833
  # micro-frontend (MFE) utility works even when context features are off.
1816
1834
  if [ "$ENABLE_MFE_LOADER" = true ]; then
1817
1835
  IMPORTS="$IMPORTS
1818
- import { provide } from '@lit/context';
1819
1836
  import { MfeLoaderContext } from './shared/contexts/mfe-loader.context';"
1820
1837
  fi
1821
1838
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quincarter/create-lit-app",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Interactive CLI initializer for Lit Element App Shell architecture",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,9 +26,9 @@
26
26
  "README.md"
27
27
  ],
28
28
  "devDependencies": {
29
- "@changesets/cli": "^2.27.1",
30
- "@types/node": "^26.1.2",
31
- "tsx": "^4.23.1",
29
+ "@changesets/cli": "^3.0.1",
30
+ "@types/node": "^26.2.0",
31
+ "tsx": "^4.23.12",
32
32
  "typescript": "^7.0.2"
33
33
  },
34
34
  "keywords": [