@capillarytech/cap-ui-dev-tools 0.0.2 → 1.0.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/README.md +27 -3
- package/package.json +17 -2
- package/src/index.js +0 -7
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ This plugin provides a single, clean interface to handle both aliasing and watch
|
|
|
21
21
|
|
|
22
22
|
**Based on initial testing, this can reduce development iteration time by over 90% (e.g., from 3 minutes to under 10 seconds).**
|
|
23
23
|
|
|
24
|
+

|
|
25
|
+
|
|
24
26
|
## Installation
|
|
25
27
|
|
|
26
28
|
```bash
|
|
@@ -74,7 +76,7 @@ module.exports = {
|
|
|
74
76
|
// Optional: Options passed directly to chokidar.
|
|
75
77
|
// See https://github.com/paulmillr/chokidar#api for details.
|
|
76
78
|
watchOptions: {
|
|
77
|
-
//
|
|
79
|
+
// ..
|
|
78
80
|
}
|
|
79
81
|
})
|
|
80
82
|
]
|
|
@@ -96,6 +98,28 @@ module.exports = {
|
|
|
96
98
|
- **Check Name**: Ensure the `name` property matches the package name your host application is trying to import (e.g., `'cap-creatives-ui'`).
|
|
97
99
|
- **Enable `verbose` mode**: Set `verbose: true` to see detailed logs. It will confirm which aliases are being created and which paths are being watched.
|
|
98
100
|
|
|
99
|
-
##
|
|
101
|
+
## For Maintainers: Publishing to NPM
|
|
102
|
+
|
|
103
|
+
To publish a new version of this package to the NPM registry, follow these steps.
|
|
104
|
+
|
|
105
|
+
1. **Update Version Number**:
|
|
106
|
+
- Update the `version` field in `package.json` according to [Semantic Versioning (SemVer)](https://semver.org/).
|
|
107
|
+
|
|
108
|
+
2. **Log in to NPM**:
|
|
109
|
+
- If you are not already logged in, run the following command and enter your credentials.
|
|
110
|
+
```bash
|
|
111
|
+
npm login
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
3. **Perform a Dry Run**:
|
|
115
|
+
- It is highly recommended to check what will be published without actually publishing it.
|
|
116
|
+
```bash
|
|
117
|
+
npm publish --dry-run
|
|
118
|
+
```
|
|
119
|
+
- This will list all files being included in the package. Verify that only necessary files (`src/LibraryWatcherPlugin.js`, `package.json`, `README.md`) are present.
|
|
100
120
|
|
|
101
|
-
|
|
121
|
+
4. **Publish**:
|
|
122
|
+
- Once you have verified the package contents, run the publish command:
|
|
123
|
+
```bash
|
|
124
|
+
npm publish
|
|
125
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capillarytech/cap-ui-dev-tools",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "src/LibraryWatcherPlugin.js",
|
|
5
|
+
"files": [
|
|
6
|
+
"src/LibraryWatcherPlugin.js",
|
|
7
|
+
"README.md"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/cap-ui-dev-tools/cap-ui-dev-tools.git"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/cap-ui-dev-tools/cap-ui-dev-tools/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/cap-ui-dev-tools/cap-ui-dev-tools#readme",
|
|
5
20
|
"scripts": {
|
|
6
21
|
"start": "webpack serve",
|
|
7
22
|
"test": "jest"
|
|
@@ -24,4 +39,4 @@
|
|
|
24
39
|
"peerDependencies": {
|
|
25
40
|
"webpack": "^5.0.0"
|
|
26
41
|
}
|
|
27
|
-
}
|
|
42
|
+
}
|