@idomatic/create 1.1.12 → 1.2.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/helpers/index.js +4 -2
- package/index.js +1 -7
- package/package.json +8 -1
- package/utils/index.js +1 -1
package/helpers/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
const defaultConfigs = {
|
|
2
2
|
js: {
|
|
3
3
|
attributeName: "id",
|
|
4
|
-
|
|
4
|
+
idStrategy: "semantic",
|
|
5
|
+
prefix: "",
|
|
5
6
|
excludeTags: ["html", "head", "script"],
|
|
6
7
|
includeExtensions: ["js", "jsx", "ts", "tsx"],
|
|
7
8
|
excludeFiles: ["node_modules", "public"],
|
|
8
9
|
},
|
|
9
10
|
html: {
|
|
10
11
|
attributeName: "id",
|
|
11
|
-
|
|
12
|
+
idStrategy: "semantic",
|
|
13
|
+
prefix: "",
|
|
12
14
|
excludeTags: ["html", "head", "script"],
|
|
13
15
|
includeExtensions: ["html", "vue"],
|
|
14
16
|
excludeFiles: ["node_modules", "public"],
|
package/index.js
CHANGED
|
@@ -21,13 +21,7 @@ const res = await prompts([
|
|
|
21
21
|
]);
|
|
22
22
|
|
|
23
23
|
// Detect package manager
|
|
24
|
-
const
|
|
25
|
-
let pkg = "npm";
|
|
26
|
-
if (agent?.includes("yarn")) pkg = "yarn";
|
|
27
|
-
else if (agent?.includes("pnpm")) pkg = "pnpm";
|
|
28
|
-
else if (agent?.includes("bun")) pkg = "bun";
|
|
29
|
-
else if (agent?.includes("npm")) pkg = "npm";
|
|
30
|
-
else pkg = detectPackageManagerFallback();
|
|
24
|
+
const pkg = detectPackageManagerFallback();
|
|
31
25
|
|
|
32
26
|
// Install parser if opted-in
|
|
33
27
|
if (res.installParsers) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idomatic/create",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"@idomatic/create": "./index.js"
|
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
"idomatic",
|
|
10
10
|
"init",
|
|
11
11
|
"create",
|
|
12
|
+
"data-testid",
|
|
13
|
+
"test-automation",
|
|
14
|
+
"e2e",
|
|
15
|
+
"playwright",
|
|
16
|
+
"cypress",
|
|
17
|
+
"testing-library",
|
|
18
|
+
"qa",
|
|
12
19
|
"ids",
|
|
13
20
|
"precommit"
|
|
14
21
|
],
|
package/utils/index.js
CHANGED