create-nuxt-base 0.2.0 → 0.2.1
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,8 @@
|
|
|
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.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.0...v0.2.1) (2024-02-02)
|
|
6
|
+
|
|
5
7
|
## [0.2.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.23...v0.2.0) (2024-02-02)
|
|
6
8
|
|
|
7
9
|
### [0.1.23](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.22...v0.1.23) (2023-10-21)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { test, expect } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
test('has title', async ({ page }) => {
|
|
4
|
+
await page.goto('https://playwright.dev/');
|
|
5
|
+
|
|
6
|
+
// Expect a title "to contain" a substring.
|
|
7
|
+
await expect(page).toHaveTitle(/Playwright/);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
test('get started link', async ({ page }) => {
|
|
11
|
+
await page.goto('https://playwright.dev/');
|
|
12
|
+
|
|
13
|
+
// Click the get started link.
|
|
14
|
+
await page.getByRole('link', { name: 'Get started' }).click();
|
|
15
|
+
|
|
16
|
+
// Expects page to have a heading with the name of Installation.
|
|
17
|
+
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
|
|
18
|
+
});
|
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
"@nuxtjs/plausible": "0.2.4",
|
|
30
30
|
"@nuxtjs/sitemap": "5.1.0",
|
|
31
31
|
"@nuxtjs/tailwindcss": "6.11.2",
|
|
32
|
+
"@playwright/test": "^1.41.2",
|
|
32
33
|
"@tailwindcss/forms": "0.5.7",
|
|
33
34
|
"@tailwindcss/typography": "0.5.10",
|
|
35
|
+
"@types/node": "^20.11.16",
|
|
34
36
|
"@vitejs/plugin-vue": "5.0.3",
|
|
35
37
|
"@vue/test-utils": "2.4.4",
|
|
36
38
|
"eslint": "8.56.0",
|
|
@@ -5566,6 +5568,21 @@
|
|
|
5566
5568
|
"url": "https://opencollective.com/unts"
|
|
5567
5569
|
}
|
|
5568
5570
|
},
|
|
5571
|
+
"node_modules/@playwright/test": {
|
|
5572
|
+
"version": "1.41.2",
|
|
5573
|
+
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.41.2.tgz",
|
|
5574
|
+
"integrity": "sha512-qQB9h7KbibJzrDpkXkYvsmiDJK14FULCCZgEcoe2AvFAS64oCirWTwzTlAYEbKaRxWs5TFesE1Na6izMv3HfGg==",
|
|
5575
|
+
"dev": true,
|
|
5576
|
+
"dependencies": {
|
|
5577
|
+
"playwright": "1.41.2"
|
|
5578
|
+
},
|
|
5579
|
+
"bin": {
|
|
5580
|
+
"playwright": "cli.js"
|
|
5581
|
+
},
|
|
5582
|
+
"engines": {
|
|
5583
|
+
"node": ">=16"
|
|
5584
|
+
}
|
|
5585
|
+
},
|
|
5569
5586
|
"node_modules/@polka/url": {
|
|
5570
5587
|
"version": "1.0.0-next.24",
|
|
5571
5588
|
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.24.tgz",
|
|
@@ -16951,6 +16968,50 @@
|
|
|
16951
16968
|
"node": ">=10"
|
|
16952
16969
|
}
|
|
16953
16970
|
},
|
|
16971
|
+
"node_modules/playwright": {
|
|
16972
|
+
"version": "1.41.2",
|
|
16973
|
+
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.41.2.tgz",
|
|
16974
|
+
"integrity": "sha512-v0bOa6H2GJChDL8pAeLa/LZC4feoAMbSQm1/jF/ySsWWoaNItvrMP7GEkvEEFyCTUYKMxjQKaTSg5up7nR6/8A==",
|
|
16975
|
+
"dev": true,
|
|
16976
|
+
"dependencies": {
|
|
16977
|
+
"playwright-core": "1.41.2"
|
|
16978
|
+
},
|
|
16979
|
+
"bin": {
|
|
16980
|
+
"playwright": "cli.js"
|
|
16981
|
+
},
|
|
16982
|
+
"engines": {
|
|
16983
|
+
"node": ">=16"
|
|
16984
|
+
},
|
|
16985
|
+
"optionalDependencies": {
|
|
16986
|
+
"fsevents": "2.3.2"
|
|
16987
|
+
}
|
|
16988
|
+
},
|
|
16989
|
+
"node_modules/playwright-core": {
|
|
16990
|
+
"version": "1.41.2",
|
|
16991
|
+
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.41.2.tgz",
|
|
16992
|
+
"integrity": "sha512-VaTvwCA4Y8kxEe+kfm2+uUUw5Lubf38RxF7FpBxLPmGe5sdNkSg5e3ChEigaGrX7qdqT3pt2m/98LiyvU2x6CA==",
|
|
16993
|
+
"dev": true,
|
|
16994
|
+
"bin": {
|
|
16995
|
+
"playwright-core": "cli.js"
|
|
16996
|
+
},
|
|
16997
|
+
"engines": {
|
|
16998
|
+
"node": ">=16"
|
|
16999
|
+
}
|
|
17000
|
+
},
|
|
17001
|
+
"node_modules/playwright/node_modules/fsevents": {
|
|
17002
|
+
"version": "2.3.2",
|
|
17003
|
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
|
17004
|
+
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
|
17005
|
+
"dev": true,
|
|
17006
|
+
"hasInstallScript": true,
|
|
17007
|
+
"optional": true,
|
|
17008
|
+
"os": [
|
|
17009
|
+
"darwin"
|
|
17010
|
+
],
|
|
17011
|
+
"engines": {
|
|
17012
|
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
17013
|
+
}
|
|
17014
|
+
},
|
|
16954
17015
|
"node_modules/portfinder": {
|
|
16955
17016
|
"version": "1.0.32",
|
|
16956
17017
|
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.32.tgz",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@iconify-json/bi": "1.1.23",
|
|
30
30
|
"@lenne.tech/nuxt-base": "3.4.0",
|
|
31
31
|
"@nuxt/image": "1.3.0",
|
|
32
|
+
"@vee-validate/yup": "4.12.5",
|
|
32
33
|
"@vueuse/core": "10.7.2",
|
|
33
34
|
"@vueuse/integrations": "10.7.2",
|
|
34
35
|
"@vueuse/nuxt": "10.7.2",
|
|
35
|
-
"@vee-validate/yup": "4.12.5",
|
|
36
|
-
"vee-validate": "4.12.5",
|
|
37
36
|
"ios-pwa-splash": "1.0.0",
|
|
38
37
|
"pinia": "2.1.7",
|
|
39
|
-
"tailwind-merge": "2.2.1"
|
|
38
|
+
"tailwind-merge": "2.2.1",
|
|
39
|
+
"vee-validate": "4.12.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@lenne.tech/eslint-config-vue": "0.0.16",
|
|
@@ -47,8 +47,10 @@
|
|
|
47
47
|
"@nuxtjs/plausible": "0.2.4",
|
|
48
48
|
"@nuxtjs/sitemap": "5.1.0",
|
|
49
49
|
"@nuxtjs/tailwindcss": "6.11.2",
|
|
50
|
+
"@playwright/test": "1.41.2",
|
|
50
51
|
"@tailwindcss/forms": "0.5.7",
|
|
51
52
|
"@tailwindcss/typography": "0.5.10",
|
|
53
|
+
"@types/node": "20.11.16",
|
|
52
54
|
"@vitejs/plugin-vue": "5.0.3",
|
|
53
55
|
"@vue/test-utils": "2.4.4",
|
|
54
56
|
"eslint": "8.56.0",
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Read environment variables from file.
|
|
5
|
+
* https://github.com/motdotla/dotenv
|
|
6
|
+
*/
|
|
7
|
+
// require('dotenv').config();
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* See https://playwright.dev/docs/test-configuration.
|
|
11
|
+
*/
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
testDir: './e2e',
|
|
14
|
+
/* Run tests in files in parallel */
|
|
15
|
+
fullyParallel: true,
|
|
16
|
+
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
17
|
+
forbidOnly: !!process.env.CI,
|
|
18
|
+
/* Retry on CI only */
|
|
19
|
+
retries: process.env.CI ? 2 : 0,
|
|
20
|
+
/* Opt out of parallel tests on CI. */
|
|
21
|
+
workers: process.env.CI ? 1 : undefined,
|
|
22
|
+
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
23
|
+
reporter: 'html',
|
|
24
|
+
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
25
|
+
use: {
|
|
26
|
+
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
27
|
+
// baseURL: 'http://127.0.0.1:3000',
|
|
28
|
+
|
|
29
|
+
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
30
|
+
trace: 'on-first-retry',
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
/* Configure projects for major browsers */
|
|
34
|
+
projects: [
|
|
35
|
+
{
|
|
36
|
+
name: 'chromium',
|
|
37
|
+
use: { ...devices['Desktop Chrome'] },
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
{
|
|
41
|
+
name: 'firefox',
|
|
42
|
+
use: { ...devices['Desktop Firefox'] },
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
{
|
|
46
|
+
name: 'webkit',
|
|
47
|
+
use: { ...devices['Desktop Safari'] },
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
/* Test against mobile viewports. */
|
|
51
|
+
// {
|
|
52
|
+
// name: 'Mobile Chrome',
|
|
53
|
+
// use: { ...devices['Pixel 5'] },
|
|
54
|
+
// },
|
|
55
|
+
// {
|
|
56
|
+
// name: 'Mobile Safari',
|
|
57
|
+
// use: { ...devices['iPhone 12'] },
|
|
58
|
+
// },
|
|
59
|
+
|
|
60
|
+
/* Test against branded browsers. */
|
|
61
|
+
// {
|
|
62
|
+
// name: 'Microsoft Edge',
|
|
63
|
+
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
|
|
64
|
+
// },
|
|
65
|
+
// {
|
|
66
|
+
// name: 'Google Chrome',
|
|
67
|
+
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
|
68
|
+
// },
|
|
69
|
+
],
|
|
70
|
+
|
|
71
|
+
/* Run your local dev server before starting the tests */
|
|
72
|
+
// webServer: {
|
|
73
|
+
// command: 'npm run start',
|
|
74
|
+
// url: 'http://127.0.0.1:3000',
|
|
75
|
+
// reuseExistingServer: !process.env.CI,
|
|
76
|
+
// },
|
|
77
|
+
});
|
package/package.json
CHANGED