create-playwright-pom-start 1.0.3 → 1.0.5
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/README.md +19 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,9 +16,7 @@ Or with a project name:
|
|
|
16
16
|
npm init playwright-pom-start my-playwright-project
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
**JavaScript based output example**
|
|
20
19
|
|
|
21
|
-

|
|
22
20
|
|
|
23
21
|
You’ll be prompted for:
|
|
24
22
|
|
|
@@ -26,7 +24,7 @@ You’ll be prompted for:
|
|
|
26
24
|
2. **Page names** — optional; space-separated, or Enter to skip. Names are normalized to PascalCase + `Page` (e.g. `dashboard` → `DashboardPage`).
|
|
27
25
|
3. **Playwright** — installed automatically if missing.
|
|
28
26
|
|
|
29
|
-
**Requirements:** Node.js **v18** or later.
|
|
27
|
+
**Requirements:** Node.js **v18** or later.
|
|
30
28
|
|
|
31
29
|
## Alternative: install then run
|
|
32
30
|
|
|
@@ -73,9 +71,26 @@ Or scaffold in a subfolder: `npx playwright-pom my-project`
|
|
|
73
71
|
- Converted to PascalCase + `Page` (e.g. `checkout` → `CheckoutPage`, `userProfile` → `UserProfilePage`).
|
|
74
72
|
- Invalid tokens and existing files are skipped (reported in the console).
|
|
75
73
|
|
|
74
|
+
|
|
75
|
+
**JavaScript based output project structure**
|
|
76
|
+
|
|
77
|
+

|
|
78
|
+
|
|
79
|
+
**JavaScript based output created page example**
|
|
80
|
+
|
|
81
|
+

|
|
82
|
+
|
|
83
|
+
**TypeScript based output project structure**
|
|
84
|
+
|
|
85
|
+

|
|
86
|
+
|
|
87
|
+
**TypeScript based output created page example**
|
|
88
|
+
|
|
89
|
+

|
|
90
|
+
|
|
76
91
|
## Repository & docs
|
|
77
92
|
|
|
78
|
-
- **GitHub:** [github.com/GabrielDali/pom-pw-js](https://github.com/GabrielDali/
|
|
93
|
+
- **GitHub:** [github.com/GabrielDali/pom-pw-js](https://github.com/GabrielDali/pom-pw-js)
|
|
79
94
|
- **Main package (playwright-pom):** [npmjs.com/package/playwright-pom](https://www.npmjs.com/package/playwright-pom)
|
|
80
95
|
|
|
81
96
|
## Author & license
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-playwright-pom-start",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Scaffold a Playwright POM project (run via npm init playwright-pom-start)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"playwright",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"url": "https://github.com/GabrielDali/pom-pw-js.git"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"playwright-pom": "1.0.
|
|
33
|
+
"playwright-pom": "1.0.1"
|
|
34
34
|
}
|
|
35
35
|
}
|