@equinor/echo-framework 0.14.1-beta-5 → 0.14.1-beta-6
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 +17 -1
- package/index.cjs +1 -17391
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,13 +17,29 @@ How to develop EchoFramework in the new, monorepo structure?
|
|
|
17
17
|
- Do not run npm install in `libs/echo-framework`
|
|
18
18
|
- Do that in the root folder: NX uses every dependency from the root for all libraries
|
|
19
19
|
- Do not add anything to `package.json` found in `echo-framework` library
|
|
20
|
-
- For `echo-framework` NX generates the `package.json` on build partly based on the
|
|
20
|
+
- For `echo-framework` NX generates the `package.json` on build partly based on the root `package.json`
|
|
21
21
|
- All dependencies used during development will be taken from the root folder, based on the `package.json` found there
|
|
22
22
|
- Note: some initial peerDependencies have been added to the base `echo-framework` package.json
|
|
23
23
|
- That's because instead of a fixed version we would like to define a version range.
|
|
24
24
|
- In case of react: `"react": ">= 17.0.2"`
|
|
25
25
|
- When `echo-framework`'s package.json is generated, these pre-defined versions will be used
|
|
26
26
|
|
|
27
|
+
### Adding new dependency to EchoFramework
|
|
28
|
+
|
|
29
|
+
Only add any new dependency to framework if it's really necessary.
|
|
30
|
+
|
|
31
|
+
As mentioned above:
|
|
32
|
+
|
|
33
|
+
- Do not add anything to `package.json` found in `echo-framework` library
|
|
34
|
+
- For `echo-framework` NX generates the `package.json` on build partly based on the root `package.json`
|
|
35
|
+
|
|
36
|
+
Steps
|
|
37
|
+
|
|
38
|
+
1. Setup - Install the new dependency on the root folder package.json
|
|
39
|
+
2. Coding - Use it in echo-framework code as normal (NX will generate the dependency as peerDep in the build package.json)
|
|
40
|
+
3. Adjusting NX rollup build - In `libs/echo-framework` add the new package as `external` into the `project.json`
|
|
41
|
+
4. Updating EchoClient - in `non-monorepo-libs/echo-client` install the same package. As EchoClient is the dev tool for other teams (they're not developing in echopediaWeb context), it needs to provide the peerDependencies for echoFramework to work.
|
|
42
|
+
|
|
27
43
|
## How to make new release of echoFramework?
|
|
28
44
|
|
|
29
45
|
- Bump version in the package.json for `echoFramework` in libs/echo-framework in your PR
|