@micromerce/formbuilder-react 1.0.723 → 1.0.725

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 +24 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ ## Local development in services
2
+
3
+ Change the _output > path_ of the webpack.common.js to the local lib directory you want to build the lib to.
4
+
5
+ For example from:
6
+ ```
7
+ path: path.resolve(__dirname, "./dist"),
8
+ ```
9
+ to:
10
+ ```
11
+ path: path.resolve(__dirname, "../../service-entity/webclient/src/js/lib"),
12
+ ```
13
+
14
+ Then import the local file like in the other service:
15
+ ```
16
+ import Form from "../../lib/formbuilder"
17
+ ```
18
+ instead of
19
+ ```
20
+ import Form from "@micromerce/formbuilder-react"
21
+ ```
22
+
23
+ Then run `npm rum watch` to start the formbuilder.
24
+ The other service should now have access to the local lib.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromerce/formbuilder-react",
3
- "version": "1.0.723",
3
+ "version": "1.0.725",
4
4
  "description": "creates a form based on configuration",
5
5
  "main": "dist/formbuilder.js",
6
6
  "types": "dist/index.d.ts",