@capillarytech/cap-ui-dev-tools 0.0.4 → 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 CHANGED
@@ -97,3 +97,29 @@ module.exports = {
97
97
  - **Check Paths**: Make sure the `path` in the `libs` configuration is an **absolute path** pointing to the **source code** of your library. Use `path.resolve(__dirname, '..', 'your-lib')`.
98
98
  - **Check Name**: Ensure the `name` property matches the package name your host application is trying to import (e.g., `'cap-creatives-ui'`).
99
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.
100
+
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.
120
+
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.4",
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"
package/architecture.png DELETED
Binary file
package/src/index.js DELETED
@@ -1,7 +0,0 @@
1
- import '@shared-ui-lib/index.js';
2
-
3
- console.log("Webpack entry point loaded.");
4
-
5
- if (module.hot) {
6
- module.hot.accept();
7
- }