@idomatic/create 1.1.0 → 1.1.11
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 +2 -2
- package/index.js +6 -6
- package/package.json +1 -1
package/helpers/index.js
CHANGED
|
@@ -4,14 +4,14 @@ const defaultConfigs = {
|
|
|
4
4
|
prefix: "auto-id-",
|
|
5
5
|
excludeTags: ["html", "head", "script"],
|
|
6
6
|
includeExtensions: ["js", "jsx", "ts", "tsx"],
|
|
7
|
-
excludeFiles: [],
|
|
7
|
+
excludeFiles: ["node_modules", "public"],
|
|
8
8
|
},
|
|
9
9
|
html: {
|
|
10
10
|
attributeName: "id",
|
|
11
11
|
prefix: "auto-id-",
|
|
12
12
|
excludeTags: ["html", "head", "script"],
|
|
13
13
|
includeExtensions: ["html", "vue"],
|
|
14
|
-
excludeFiles: [],
|
|
14
|
+
excludeFiles: ["node_modules", "public"],
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
|
package/index.js
CHANGED
|
@@ -31,9 +31,9 @@ if (res.installParsers) {
|
|
|
31
31
|
const parser =
|
|
32
32
|
framework === "js" ? "@idomatic/parser-js" : "@idomatic/parser-html";
|
|
33
33
|
const installParserCmd = {
|
|
34
|
-
npm: `npm install ${parser}`,
|
|
35
|
-
yarn: `yarn add ${parser}`,
|
|
36
|
-
bun: `bun add ${parser}`,
|
|
34
|
+
npm: `npm install ${parser} --save-dev`,
|
|
35
|
+
yarn: `yarn add ${parser} --dev`,
|
|
36
|
+
bun: `bun add -d ${parser}`,
|
|
37
37
|
}[pkg];
|
|
38
38
|
|
|
39
39
|
console.log(`📦 Installing ${parser} with ${pkg}...`);
|
|
@@ -42,9 +42,9 @@ if (res.installParsers) {
|
|
|
42
42
|
|
|
43
43
|
// Install core package (always install it)
|
|
44
44
|
const installCoreCmd = {
|
|
45
|
-
npm: `npm install @idomatic/core`,
|
|
46
|
-
yarn: `yarn add @idomatic/core`,
|
|
47
|
-
bun: `bun add @idomatic/core`,
|
|
45
|
+
npm: `npm install @idomatic/core --save-dev`,
|
|
46
|
+
yarn: `yarn add @idomatic/core --dev`,
|
|
47
|
+
bun: `bun add -d @idomatic/core`,
|
|
48
48
|
}[pkg];
|
|
49
49
|
|
|
50
50
|
console.log(`📦 Installing @idomatic/core with ${pkg}...`);
|