create-nuxt-base 0.2.8 → 0.2.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.2.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.8...v0.2.9) (2024-10-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix e2e test handling and update packages ([54237a9](https://github.com/lenneTech/nuxt-base-starter/commit/54237a9a3d3cac617fc36de1a2f47dfb50ca9ba9))
11
+ * fix wrong env variable in plugin ([c0f9716](https://github.com/lenneTech/nuxt-base-starter/commit/c0f9716ceb366d0e196ddd30adf2468d887284e7))
12
+
5
13
  ### [0.2.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.7...v0.2.8) (2024-09-30)
6
14
 
7
15
 
@@ -44,7 +44,8 @@ export default defineNuxtConfig({
44
44
 
45
45
  nuxtBase: {
46
46
  generateTypes: process.env['GENERATE_TYPES'] === '1',
47
- host: process.env.API_URL + '/graphql',
47
+ gqlHost: process.env.API_URL + '/graphql',
48
+ host: process.env.API_URL,
48
49
  schema: process.env.API_SCHEMA,
49
50
  storagePrefix: process.env.STORAGE_PREFIX,
50
51
  },
@@ -36,7 +36,7 @@
36
36
  "@types/node": "22.7.4",
37
37
  "@vitejs/plugin-vue": "5.1.4",
38
38
  "@vue/test-utils": "2.4.6",
39
- "eslint": "9.11.1",
39
+ "eslint": "8.57.1",
40
40
  "jsdom": "24.1.3",
41
41
  "nuxt": "3.13.2",
42
42
  "ts-loader": "9.5.1",
@@ -1580,39 +1580,16 @@
1580
1580
  "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
1581
1581
  }
1582
1582
  },
1583
- "node_modules/@eslint/config-array": {
1584
- "version": "0.18.0",
1585
- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.18.0.tgz",
1586
- "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==",
1587
- "devOptional": true,
1588
- "dependencies": {
1589
- "@eslint/object-schema": "^2.1.4",
1590
- "debug": "^4.3.1",
1591
- "minimatch": "^3.1.2"
1592
- },
1593
- "engines": {
1594
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1595
- }
1596
- },
1597
- "node_modules/@eslint/core": {
1598
- "version": "0.6.0",
1599
- "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.6.0.tgz",
1600
- "integrity": "sha512-8I2Q8ykA4J0x0o7cg67FPVnehcqWTBehu/lmY+bolPFHGjh49YzGBMXTvpqVgEbBdvNCSxj6iFgiIyHzf03lzg==",
1601
- "devOptional": true,
1602
- "engines": {
1603
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1604
- }
1605
- },
1606
1583
  "node_modules/@eslint/eslintrc": {
1607
- "version": "3.1.0",
1608
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz",
1609
- "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==",
1584
+ "version": "2.1.4",
1585
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",
1586
+ "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",
1610
1587
  "devOptional": true,
1611
1588
  "dependencies": {
1612
1589
  "ajv": "^6.12.4",
1613
1590
  "debug": "^4.3.2",
1614
- "espree": "^10.0.1",
1615
- "globals": "^14.0.0",
1591
+ "espree": "^9.6.0",
1592
+ "globals": "^13.19.0",
1616
1593
  "ignore": "^5.2.0",
1617
1594
  "import-fresh": "^3.2.1",
1618
1595
  "js-yaml": "^4.1.0",
@@ -1620,52 +1597,46 @@
1620
1597
  "strip-json-comments": "^3.1.1"
1621
1598
  },
1622
1599
  "engines": {
1623
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1600
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
1624
1601
  },
1625
1602
  "funding": {
1626
1603
  "url": "https://opencollective.com/eslint"
1627
1604
  }
1628
1605
  },
1629
1606
  "node_modules/@eslint/eslintrc/node_modules/globals": {
1630
- "version": "14.0.0",
1631
- "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
1632
- "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
1607
+ "version": "13.24.0",
1608
+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
1609
+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
1633
1610
  "devOptional": true,
1611
+ "dependencies": {
1612
+ "type-fest": "^0.20.2"
1613
+ },
1634
1614
  "engines": {
1635
- "node": ">=18"
1615
+ "node": ">=8"
1636
1616
  },
1637
1617
  "funding": {
1638
1618
  "url": "https://github.com/sponsors/sindresorhus"
1639
1619
  }
1640
1620
  },
1641
- "node_modules/@eslint/js": {
1642
- "version": "9.11.1",
1643
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.11.1.tgz",
1644
- "integrity": "sha512-/qu+TWz8WwPWc7/HcIJKi+c+MOm46GdVaSlTTQcaqaL53+GsoA6MxWp5PtTx48qbSP7ylM1Kn7nhvkugfJvRSA==",
1645
- "devOptional": true,
1646
- "engines": {
1647
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1648
- }
1649
- },
1650
- "node_modules/@eslint/object-schema": {
1651
- "version": "2.1.4",
1652
- "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz",
1653
- "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==",
1621
+ "node_modules/@eslint/eslintrc/node_modules/type-fest": {
1622
+ "version": "0.20.2",
1623
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
1624
+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
1654
1625
  "devOptional": true,
1655
1626
  "engines": {
1656
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1627
+ "node": ">=10"
1628
+ },
1629
+ "funding": {
1630
+ "url": "https://github.com/sponsors/sindresorhus"
1657
1631
  }
1658
1632
  },
1659
- "node_modules/@eslint/plugin-kit": {
1660
- "version": "0.2.0",
1661
- "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.0.tgz",
1662
- "integrity": "sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==",
1633
+ "node_modules/@eslint/js": {
1634
+ "version": "8.57.1",
1635
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",
1636
+ "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",
1663
1637
  "devOptional": true,
1664
- "dependencies": {
1665
- "levn": "^0.4.1"
1666
- },
1667
1638
  "engines": {
1668
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1639
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
1669
1640
  }
1670
1641
  },
1671
1642
  "node_modules/@fastify/accept-negotiator": {
@@ -2682,6 +2653,21 @@
2682
2653
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
2683
2654
  }
2684
2655
  },
2656
+ "node_modules/@humanwhocodes/config-array": {
2657
+ "version": "0.13.0",
2658
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
2659
+ "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",
2660
+ "deprecated": "Use @eslint/config-array instead",
2661
+ "devOptional": true,
2662
+ "dependencies": {
2663
+ "@humanwhocodes/object-schema": "^2.0.3",
2664
+ "debug": "^4.3.1",
2665
+ "minimatch": "^3.0.5"
2666
+ },
2667
+ "engines": {
2668
+ "node": ">=10.10.0"
2669
+ }
2670
+ },
2685
2671
  "node_modules/@humanwhocodes/module-importer": {
2686
2672
  "version": "1.0.1",
2687
2673
  "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
@@ -2695,18 +2681,12 @@
2695
2681
  "url": "https://github.com/sponsors/nzakas"
2696
2682
  }
2697
2683
  },
2698
- "node_modules/@humanwhocodes/retry": {
2699
- "version": "0.3.0",
2700
- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz",
2701
- "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==",
2702
- "devOptional": true,
2703
- "engines": {
2704
- "node": ">=18.18"
2705
- },
2706
- "funding": {
2707
- "type": "github",
2708
- "url": "https://github.com/sponsors/nzakas"
2709
- }
2684
+ "node_modules/@humanwhocodes/object-schema": {
2685
+ "version": "2.0.3",
2686
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",
2687
+ "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",
2688
+ "deprecated": "Use @eslint/object-schema instead",
2689
+ "devOptional": true
2710
2690
  },
2711
2691
  "node_modules/@iconify-json/bi": {
2712
2692
  "version": "1.2.0",
@@ -5028,7 +5008,7 @@
5028
5008
  "version": "7.0.15",
5029
5009
  "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
5030
5010
  "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
5031
- "devOptional": true
5011
+ "dev": true
5032
5012
  },
5033
5013
  "node_modules/@types/json5": {
5034
5014
  "version": "0.0.29",
@@ -5293,6 +5273,12 @@
5293
5273
  "url": "https://opencollective.com/typescript-eslint"
5294
5274
  }
5295
5275
  },
5276
+ "node_modules/@ungap/structured-clone": {
5277
+ "version": "1.2.0",
5278
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
5279
+ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
5280
+ "devOptional": true
5281
+ },
5296
5282
  "node_modules/@unhead/dom": {
5297
5283
  "version": "1.11.7",
5298
5284
  "resolved": "https://registry.npmjs.org/@unhead/dom/-/dom-1.11.7.tgz",
@@ -9075,42 +9061,43 @@
9075
9061
  }
9076
9062
  },
9077
9063
  "node_modules/eslint": {
9078
- "version": "9.11.1",
9079
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.11.1.tgz",
9080
- "integrity": "sha512-MobhYKIoAO1s1e4VUrgx1l1Sk2JBR/Gqjjgw8+mfgoLE2xwsHur4gdfTxyTgShrhvdVFTaJSgMiQBl1jv/AWxg==",
9064
+ "version": "8.57.1",
9065
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",
9066
+ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
9081
9067
  "devOptional": true,
9082
9068
  "dependencies": {
9083
9069
  "@eslint-community/eslint-utils": "^4.2.0",
9084
- "@eslint-community/regexpp": "^4.11.0",
9085
- "@eslint/config-array": "^0.18.0",
9086
- "@eslint/core": "^0.6.0",
9087
- "@eslint/eslintrc": "^3.1.0",
9088
- "@eslint/js": "9.11.1",
9089
- "@eslint/plugin-kit": "^0.2.0",
9070
+ "@eslint-community/regexpp": "^4.6.1",
9071
+ "@eslint/eslintrc": "^2.1.4",
9072
+ "@eslint/js": "8.57.1",
9073
+ "@humanwhocodes/config-array": "^0.13.0",
9090
9074
  "@humanwhocodes/module-importer": "^1.0.1",
9091
- "@humanwhocodes/retry": "^0.3.0",
9092
9075
  "@nodelib/fs.walk": "^1.2.8",
9093
- "@types/estree": "^1.0.6",
9094
- "@types/json-schema": "^7.0.15",
9076
+ "@ungap/structured-clone": "^1.2.0",
9095
9077
  "ajv": "^6.12.4",
9096
9078
  "chalk": "^4.0.0",
9097
9079
  "cross-spawn": "^7.0.2",
9098
9080
  "debug": "^4.3.2",
9081
+ "doctrine": "^3.0.0",
9099
9082
  "escape-string-regexp": "^4.0.0",
9100
- "eslint-scope": "^8.0.2",
9101
- "eslint-visitor-keys": "^4.0.0",
9102
- "espree": "^10.1.0",
9103
- "esquery": "^1.5.0",
9083
+ "eslint-scope": "^7.2.2",
9084
+ "eslint-visitor-keys": "^3.4.3",
9085
+ "espree": "^9.6.1",
9086
+ "esquery": "^1.4.2",
9104
9087
  "esutils": "^2.0.2",
9105
9088
  "fast-deep-equal": "^3.1.3",
9106
- "file-entry-cache": "^8.0.0",
9089
+ "file-entry-cache": "^6.0.1",
9107
9090
  "find-up": "^5.0.0",
9108
9091
  "glob-parent": "^6.0.2",
9092
+ "globals": "^13.19.0",
9093
+ "graphemer": "^1.4.0",
9109
9094
  "ignore": "^5.2.0",
9110
9095
  "imurmurhash": "^0.1.4",
9111
9096
  "is-glob": "^4.0.0",
9112
9097
  "is-path-inside": "^3.0.3",
9098
+ "js-yaml": "^4.1.0",
9113
9099
  "json-stable-stringify-without-jsonify": "^1.0.1",
9100
+ "levn": "^0.4.1",
9114
9101
  "lodash.merge": "^4.6.2",
9115
9102
  "minimatch": "^3.1.2",
9116
9103
  "natural-compare": "^1.4.0",
@@ -9122,18 +9109,10 @@
9122
9109
  "eslint": "bin/eslint.js"
9123
9110
  },
9124
9111
  "engines": {
9125
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
9112
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
9126
9113
  },
9127
9114
  "funding": {
9128
- "url": "https://eslint.org/donate"
9129
- },
9130
- "peerDependencies": {
9131
- "jiti": "*"
9132
- },
9133
- "peerDependenciesMeta": {
9134
- "jiti": {
9135
- "optional": true
9136
- }
9115
+ "url": "https://opencollective.com/eslint"
9137
9116
  }
9138
9117
  },
9139
9118
  "node_modules/eslint-config-prettier": {
@@ -9500,16 +9479,16 @@
9500
9479
  }
9501
9480
  },
9502
9481
  "node_modules/eslint-scope": {
9503
- "version": "8.0.2",
9504
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.2.tgz",
9505
- "integrity": "sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==",
9482
+ "version": "7.2.2",
9483
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
9484
+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
9506
9485
  "devOptional": true,
9507
9486
  "dependencies": {
9508
9487
  "esrecurse": "^4.3.0",
9509
9488
  "estraverse": "^5.2.0"
9510
9489
  },
9511
9490
  "engines": {
9512
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
9491
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
9513
9492
  },
9514
9493
  "funding": {
9515
9494
  "url": "https://opencollective.com/eslint"
@@ -9527,12 +9506,6 @@
9527
9506
  "url": "https://opencollective.com/eslint"
9528
9507
  }
9529
9508
  },
9530
- "node_modules/eslint/node_modules/@types/estree": {
9531
- "version": "1.0.6",
9532
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
9533
- "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
9534
- "devOptional": true
9535
- },
9536
9509
  "node_modules/eslint/node_modules/ansi-styles": {
9537
9510
  "version": "4.3.0",
9538
9511
  "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -9582,6 +9555,18 @@
9582
9555
  "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
9583
9556
  "devOptional": true
9584
9557
  },
9558
+ "node_modules/eslint/node_modules/doctrine": {
9559
+ "version": "3.0.0",
9560
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
9561
+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
9562
+ "devOptional": true,
9563
+ "dependencies": {
9564
+ "esutils": "^2.0.2"
9565
+ },
9566
+ "engines": {
9567
+ "node": ">=6.0.0"
9568
+ }
9569
+ },
9585
9570
  "node_modules/eslint/node_modules/escape-string-regexp": {
9586
9571
  "version": "4.0.0",
9587
9572
  "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
@@ -9594,18 +9579,6 @@
9594
9579
  "url": "https://github.com/sponsors/sindresorhus"
9595
9580
  }
9596
9581
  },
9597
- "node_modules/eslint/node_modules/eslint-visitor-keys": {
9598
- "version": "4.0.0",
9599
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz",
9600
- "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==",
9601
- "devOptional": true,
9602
- "engines": {
9603
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
9604
- },
9605
- "funding": {
9606
- "url": "https://opencollective.com/eslint"
9607
- }
9608
- },
9609
9582
  "node_modules/eslint/node_modules/glob-parent": {
9610
9583
  "version": "6.0.2",
9611
9584
  "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
@@ -9618,6 +9591,21 @@
9618
9591
  "node": ">=10.13.0"
9619
9592
  }
9620
9593
  },
9594
+ "node_modules/eslint/node_modules/globals": {
9595
+ "version": "13.24.0",
9596
+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
9597
+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
9598
+ "devOptional": true,
9599
+ "dependencies": {
9600
+ "type-fest": "^0.20.2"
9601
+ },
9602
+ "engines": {
9603
+ "node": ">=8"
9604
+ },
9605
+ "funding": {
9606
+ "url": "https://github.com/sponsors/sindresorhus"
9607
+ }
9608
+ },
9621
9609
  "node_modules/eslint/node_modules/has-flag": {
9622
9610
  "version": "4.0.0",
9623
9611
  "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
@@ -9639,30 +9627,30 @@
9639
9627
  "node": ">=8"
9640
9628
  }
9641
9629
  },
9642
- "node_modules/espree": {
9643
- "version": "10.1.0",
9644
- "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz",
9645
- "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==",
9630
+ "node_modules/eslint/node_modules/type-fest": {
9631
+ "version": "0.20.2",
9632
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
9633
+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
9646
9634
  "devOptional": true,
9647
- "dependencies": {
9648
- "acorn": "^8.12.0",
9649
- "acorn-jsx": "^5.3.2",
9650
- "eslint-visitor-keys": "^4.0.0"
9651
- },
9652
9635
  "engines": {
9653
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
9636
+ "node": ">=10"
9654
9637
  },
9655
9638
  "funding": {
9656
- "url": "https://opencollective.com/eslint"
9639
+ "url": "https://github.com/sponsors/sindresorhus"
9657
9640
  }
9658
9641
  },
9659
- "node_modules/espree/node_modules/eslint-visitor-keys": {
9660
- "version": "4.0.0",
9661
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz",
9662
- "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==",
9642
+ "node_modules/espree": {
9643
+ "version": "9.6.1",
9644
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
9645
+ "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
9663
9646
  "devOptional": true,
9647
+ "dependencies": {
9648
+ "acorn": "^8.9.0",
9649
+ "acorn-jsx": "^5.3.2",
9650
+ "eslint-visitor-keys": "^3.4.1"
9651
+ },
9664
9652
  "engines": {
9665
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
9653
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
9666
9654
  },
9667
9655
  "funding": {
9668
9656
  "url": "https://opencollective.com/eslint"
@@ -9940,15 +9928,15 @@
9940
9928
  }
9941
9929
  },
9942
9930
  "node_modules/file-entry-cache": {
9943
- "version": "8.0.0",
9944
- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
9945
- "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
9931
+ "version": "6.0.1",
9932
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
9933
+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
9946
9934
  "devOptional": true,
9947
9935
  "dependencies": {
9948
- "flat-cache": "^4.0.0"
9936
+ "flat-cache": "^3.0.4"
9949
9937
  },
9950
9938
  "engines": {
9951
- "node": ">=16.0.0"
9939
+ "node": "^10.12.0 || >=12.0.0"
9952
9940
  }
9953
9941
  },
9954
9942
  "node_modules/file-uri-to-path": {
@@ -9984,16 +9972,17 @@
9984
9972
  }
9985
9973
  },
9986
9974
  "node_modules/flat-cache": {
9987
- "version": "4.0.1",
9988
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
9989
- "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
9975
+ "version": "3.2.0",
9976
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
9977
+ "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
9990
9978
  "devOptional": true,
9991
9979
  "dependencies": {
9992
9980
  "flatted": "^3.2.9",
9993
- "keyv": "^4.5.4"
9981
+ "keyv": "^4.5.3",
9982
+ "rimraf": "^3.0.2"
9994
9983
  },
9995
9984
  "engines": {
9996
- "node": ">=16"
9985
+ "node": "^10.12.0 || >=12.0.0"
9997
9986
  }
9998
9987
  },
9999
9988
  "node_modules/flatted": {
@@ -10449,7 +10438,7 @@
10449
10438
  "version": "1.4.0",
10450
10439
  "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
10451
10440
  "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
10452
- "dev": true
10441
+ "devOptional": true
10453
10442
  },
10454
10443
  "node_modules/graphql": {
10455
10444
  "version": "16.9.0",
@@ -19979,39 +19968,6 @@
19979
19968
  "eslint": ">=6.0.0"
19980
19969
  }
19981
19970
  },
19982
- "node_modules/vue-eslint-parser/node_modules/eslint-scope": {
19983
- "version": "7.2.2",
19984
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
19985
- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
19986
- "dev": true,
19987
- "dependencies": {
19988
- "esrecurse": "^4.3.0",
19989
- "estraverse": "^5.2.0"
19990
- },
19991
- "engines": {
19992
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
19993
- },
19994
- "funding": {
19995
- "url": "https://opencollective.com/eslint"
19996
- }
19997
- },
19998
- "node_modules/vue-eslint-parser/node_modules/espree": {
19999
- "version": "9.6.1",
20000
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
20001
- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
20002
- "dev": true,
20003
- "dependencies": {
20004
- "acorn": "^8.9.0",
20005
- "acorn-jsx": "^5.3.2",
20006
- "eslint-visitor-keys": "^3.4.1"
20007
- },
20008
- "engines": {
20009
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
20010
- },
20011
- "funding": {
20012
- "url": "https://opencollective.com/eslint"
20013
- }
20014
- },
20015
19971
  "node_modules/vue-eslint-parser/node_modules/semver": {
20016
19972
  "version": "7.6.3",
20017
19973
  "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
@@ -6,6 +6,7 @@
6
6
  "init": "npm install",
7
7
  "reinit": "rm -rf node_modules && rm -rf package-lock.json && yes | npx nuxt cleanup && npm cache clean --force && npm i",
8
8
  "build": "nuxt build",
9
+ "app:build": "npm run build",
9
10
  "build:develop": "nuxt build",
10
11
  "build:test": "nuxt build",
11
12
  "start": "nuxt dev",
@@ -19,7 +20,8 @@
19
20
  "generate": "nuxt generate",
20
21
  "preview": "nuxt preview",
21
22
  "postinstall": "nuxt prepare",
22
- "test:e2e": "playwright test",
23
+ "app:e2e": "playwright test",
24
+ "test": "echo 'No test specified' && exit 0",
23
25
  "lint": "eslint --ext .ts,.js,.vue .",
24
26
  "lint:fix": "eslint --ext .ts,.js,.vue . --fix",
25
27
  "postbuild": "cd .output/server/node_modules/tslib; npm pkg set 'exports[.].import.node'='./tslib.es6.mjs'"
@@ -54,7 +56,7 @@
54
56
  "@types/node": "22.7.4",
55
57
  "@vitejs/plugin-vue": "5.1.4",
56
58
  "@vue/test-utils": "2.4.6",
57
- "eslint": "9.11.1",
59
+ "eslint": "8.57.1",
58
60
  "jsdom": "24.1.3",
59
61
  "nuxt": "3.13.2",
60
62
  "ts-loader": "9.5.1",
@@ -1,7 +1,8 @@
1
- import { fileURLToPath } from 'node:url'
2
- import { defineConfig, devices } from '@playwright/test'
3
- import type { ConfigOptions } from '@nuxt/test-utils/playwright'
4
- import { isCI, isWindows } from 'std-env'
1
+ import type { ConfigOptions } from '@nuxt/test-utils/playwright';
2
+
3
+ import { defineConfig, devices } from '@playwright/test';
4
+ import { fileURLToPath } from 'node:url';
5
+ import { isCI, isWindows } from 'std-env';
5
6
 
6
7
  const devicesToTest = [
7
8
  'Desktop Chrome',
@@ -14,30 +15,51 @@ const devicesToTest = [
14
15
  // Test against branded browsers.
15
16
  // { ...devices['Desktop Edge'], channel: 'msedge' },
16
17
  // { ...devices['Desktop Chrome'], channel: 'chrome' },
17
- ] satisfies Array<string | typeof devices[string]>
18
+ ] satisfies Array<(typeof devices)[string] | string>;
18
19
 
19
20
  /* See https://playwright.dev/docs/test-configuration. */
20
21
  export default defineConfig<ConfigOptions>({
21
- testDir: './tests',
22
- /* Run tests in files in parallel */
23
- fullyParallel: true,
24
22
  /* Fail the build on CI if you accidentally left test.only in the source code. */
25
23
  forbidOnly: !!isCI,
24
+ /* Run tests in files in parallel */
25
+ fullyParallel: true,
26
+ projects: devicesToTest.map((p) => (typeof p === 'string' ? { name: p, use: devices[p] } : p)),
27
+ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
28
+ reporter: 'html',
26
29
  /* Retry on CI only */
27
30
  retries: isCI ? 2 : 0,
28
- /* Opt out of parallel tests on CI. */
29
- workers: isCI ? 1 : undefined,
31
+ testDir: './tests',
32
+ timeout: 5 * 60 * 1000,
30
33
  timeout: isWindows ? 60000 : undefined,
31
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
32
- reporter: 'html',
33
34
  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
34
35
  use: {
35
- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
36
- trace: 'on-first-retry',
36
+ baseURL: 'http://localhost:3001',
37
+
38
+ launchOptions: {
39
+ // Slows down Playwright operations by the specified amount of milliseconds
40
+ slowMo: 10,
41
+ },
42
+
43
+ // Use German language
44
+ locale: 'de',
37
45
  /* Nuxt configuration options */
38
46
  nuxt: {
47
+ host: 'http://localhost:3001',
39
48
  rootDir: fileURLToPath(new URL('.', import.meta.url)),
40
49
  },
50
+ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
51
+ trace: 'on-first-retry',
41
52
  },
42
- projects: devicesToTest.map(p => typeof p === 'string' ? ({ name: p, use: devices[p] }) : p),
43
- })
53
+ webServer: [
54
+ {
55
+ command: 'npm run start',
56
+ reuseExistingServer: !process.env.CI,
57
+ stderr: 'pipe',
58
+ stdout: 'pipe',
59
+ timeout: 120 * 1000,
60
+ url: 'http://localhost:3001',
61
+ },
62
+ ],
63
+ /* Opt out of parallel tests on CI. */
64
+ workers: isCI ? 1 : undefined,
65
+ });
@@ -17,7 +17,7 @@ export default defineNuxtPlugin({
17
17
 
18
18
  let token = accessTokenState.value;
19
19
  if (isTokenExpired(accessTokenState.value)) {
20
- const refreshTokenResult = await ofetch(config.public.host, {
20
+ const refreshTokenResult = await ofetch(config.public.gqlHost, {
21
21
  body: JSON.stringify({
22
22
  query: 'mutation refreshToken {refreshToken {token, refreshToken}}',
23
23
  variables: {},
@@ -29,7 +29,7 @@ export default defineNuxtPlugin({
29
29
  }).catch((err) => {
30
30
  console.error('2.auth.server.ts::refreshToken::catch', err.data);
31
31
  clearSession();
32
- navigateTo('/auth/login');
32
+ navigateTo('/auth');
33
33
  });
34
34
 
35
35
  const data = refreshTokenResult?.data?.refreshToken;
@@ -38,14 +38,14 @@ export default defineNuxtPlugin({
38
38
  token = data?.token;
39
39
  } else {
40
40
  clearSession();
41
- await navigateTo('/auth/login');
41
+ await navigateTo('/auth');
42
42
  }
43
43
  }
44
44
 
45
45
  if (token && payload?.id) {
46
- const userResult = await ofetch(config.public.host, {
46
+ const userResult = await ofetch(config.public.gqlHost, {
47
47
  body: JSON.stringify({
48
- query: 'query getUser($id: String!){' + 'getUser(id: $id){' + 'id ' + 'avatar ' + 'firstName ' + 'lastName ' + 'email ' + 'gender ' + 'roles ' + '}}',
48
+ query: 'query getUser($id: String!){' + 'getUser(id: $id){' + 'id ' + 'firstName ' + 'lastName ' + 'email ' + 'roles ' + '}}',
49
49
  variables: {
50
50
  id: payload.id,
51
51
  },
@@ -60,7 +60,7 @@ export default defineNuxtPlugin({
60
60
 
61
61
  if (userResult?.errors) {
62
62
  clearSession();
63
- navigateTo('/auth/login');
63
+ navigateTo('/auth');
64
64
  return;
65
65
  }
66
66
 
@@ -1,6 +1,5 @@
1
- import { expect, test } from '@nuxt/test-utils/playwright'
1
+ import { test } from '@nuxt/test-utils/playwright';
2
2
 
3
- test('init test', async ({ page, goto }) => {
4
- await goto('https://lenne.tech', { waitUntil: 'domcontentloaded' })
5
- await expect(page.getByRole('heading', { name: 'Wir unterstützen Dich!' })).toHaveText('Wir unterstützen Dich!')
6
- })
3
+ test('init test', async ({ goto, page }) => {
4
+ await goto('.', { waitUntil: 'domcontentloaded' });
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nuxt-base",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Starter to generate a configured environment with VueJS, Nuxt, Tailwind, Eslint, @lenne.tech/nuxt-base, Unit Tests, Cypress etc.",
5
5
  "main": "index.js",
6
6
  "bin": {