@idomatic/core 1.3.0 → 1.6.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.
Files changed (2) hide show
  1. package/lib/core.js +23 -1
  2. package/package.json +6 -2
package/lib/core.js CHANGED
@@ -9,7 +9,29 @@ const parserMap = {
9
9
  ".tsx": "@idomatic/parser-js",
10
10
  ".html": "@idomatic/parser-html",
11
11
  ".vue": "@idomatic/parser-html",
12
- ".ng.html": "@idomatic/parser-html",
12
+ ".svelte": "@idomatic/parser-html",
13
+ ".astro": "@idomatic/parser-html",
14
+ ".hbs": "@idomatic/parser-html",
15
+ ".handlebars": "@idomatic/parser-html",
16
+ ".php": "@idomatic/parser-html",
17
+ ".phtml": "@idomatic/parser-html",
18
+ ".twig": "@idomatic/parser-html",
19
+ ".jinja": "@idomatic/parser-html",
20
+ ".jinja2": "@idomatic/parser-html",
21
+ ".j2": "@idomatic/parser-html",
22
+ ".njk": "@idomatic/parser-html",
23
+ ".erb": "@idomatic/parser-html",
24
+ ".ejs": "@idomatic/parser-html",
25
+ ".cshtml": "@idomatic/parser-html",
26
+ ".razor": "@idomatic/parser-html",
27
+ ".gjs": "@idomatic/parser-html",
28
+ ".gts": "@idomatic/parser-html",
29
+ ".mdx": "@idomatic/parser-html",
30
+ ".pug": "@idomatic/parser-html",
31
+ ".jade": "@idomatic/parser-html",
32
+ ".swift": "@idomatic/parser-swift",
33
+ ".dart": "@idomatic/parser-dart",
34
+ ".kt": "@idomatic/parser-kotlin",
13
35
  };
14
36
 
15
37
  export async function processFile(filePath, config, dry = false) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idomatic/core",
3
- "version": "1.3.0",
4
- "description": "CLI that injects stable, human-readable id attributes into React/HTML/Vue/Angular elements so Playwright, Cypress and Testing Library tests stop breaking.",
3
+ "version": "1.6.0",
4
+ "description": "CLI that injects stable, human-readable id attributes into components and templates (React, Vue, Angular, Svelte, Astro, Lit, Blade, Twig, Django, Rails, Razor, Pug, MDX, HTML) so Playwright, Cypress and Testing Library tests stop breaking.",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,6 +40,10 @@
40
40
  "react",
41
41
  "html",
42
42
  "vue",
43
+ "svelte",
44
+ "astro",
45
+ "solid",
46
+ "handlebars",
43
47
  "ids",
44
48
  "precommit",
45
49
  "parser"