@idomatic/core 1.1.3 → 1.1.4

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/README.md +11 -34
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,10 @@
1
- idomatic
1
+ IDomatic
2
2
  idomatic is a CLI tool that automatically adds id attributes to your HTML/JSX/TSX components. It helps improve your testing and QA processes by ensuring that key elements always have unique, predictable identifiers.
3
3
 
4
4
  Note: idomatic is optimized for React and HTML-based projects (including Vue and Angular). You can choose your framework during setup, and the tool will create a default configuration accordingly.
5
5
 
6
- Features
6
+ ## Features
7
+
7
8
  Automatic ID Injection: Scans your project files and injects id attributes into components that are missing them.
8
9
 
9
10
  Configurable Behavior: Customize the prefix, specify file extensions, exclude certain tags, and more.
@@ -14,39 +15,18 @@ Framework Specific Defaults: Pre-populated configurations for React (JS/TSX) or
14
15
 
15
16
  Easy Integration: Use with your existing build or CI/CD processes.
16
17
 
17
- Installation
18
- You can install idomatic using your favorite package manager. For example:
19
-
20
- bash
21
- Copy
22
-
23
- # Using npm
24
-
25
- ```shell
26
- npm install --save-dev @idomatic/core`
27
- ```
28
-
29
- # Using yarn
30
-
31
- ```shell
32
- yarn add --dev @idomatic/core
33
- ```
18
+ ## Installation
34
19
 
35
- # Using bun
20
+ To install idomatic, simply run the initializer command:
36
21
 
37
22
  ```shell
38
- bun add --dev @idomatic/core
23
+ npm init @idomatic
39
24
  ```
40
25
 
41
- Additionally, if you haven't set up the configuration for idomatic, you can run the initializer:
26
+ This command will guide you through selecting your framework and automatically install the necessary configuration file and parser for your project. The default configuration file (e.g., .idomatic.config.json) will be created in your project's root.
42
27
 
43
- ```shell
44
- npx idomatic --init
45
- ```
28
+ ## Usage
46
29
 
47
- This command will guide you through selecting your framework and create a default configuration file (.idomatic.config.json) in your project's root.
48
-
49
- Usage
50
30
  CLI Commands
51
31
  After installation and configuration, you can run idomatic using the following commands:
52
32
 
@@ -79,9 +59,10 @@ The configuration file .idomatic.config.json is created during the setup process
79
59
 
80
60
  You can customize these values to better suit your project’s needs. For HTML/Vue/Angular projects, the includeExtensions field will be set to ["html", "vue", "ng.html"].
81
61
 
82
- How It Works
62
+ ## How It Works
63
+
83
64
  Setup:
84
- Run the setup command (npx idomatic --init) to choose your framework and create a configuration file.
65
+ Run the setup command (e.g npm init @idomatic) to choose your framework and create a configuration file.
85
66
 
86
67
  Scanning:
87
68
  The tool uses your configuration to search for files matching the specified extensions.
@@ -116,7 +97,3 @@ The generated id includes a prefix (from the configuration) and a unique identif
116
97
 
117
98
  Contributing
118
99
  Contributions are welcome! Feel free to open issues or pull requests on GitHub.
119
-
120
- ```
121
-
122
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idomatic/core",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "idomatic": "./bin/index.js"