@scania/tegel-lite 0.1.0-pnpm-beta.1 → 0.1.0-pnpm-beta.2
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.dev.md +11 -7
- package/package.json +1 -1
package/README.dev.md
CHANGED
|
@@ -68,16 +68,12 @@ Tegel Lite’s styles reside in the Tegel Core package, ensuring consistency wit
|
|
|
68
68
|
To **generate** the `@scania/tegel-lite` library, first navigate to project root and run:
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
|
|
71
|
+
pnpm install
|
|
72
72
|
```
|
|
73
73
|
then navigate to `packages/core` and run:
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npm run build:tegel-lite
|
|
76
|
+
pnpm build:tegel-lite
|
|
81
77
|
```
|
|
82
78
|
|
|
83
79
|
This command will compile all scss files related to Tegel Lite and output the compiled css to the `packages/tegel-lite/dist` folder. It will also copy assets that are needed and add neccessary exports to the `packages/tegel-lite/package.json` .
|
|
@@ -231,6 +227,14 @@ npm link @scania/tegel-lite
|
|
|
231
227
|
The above command will symlink the Tegel Lite package into your app. Check node_modules to see if the package is linked correctly.
|
|
232
228
|
You will now be able to import Tegel Lite components in your app.
|
|
233
229
|
|
|
230
|
+
### Using a pnpm workspace
|
|
231
|
+
|
|
232
|
+
If your application is part of the same pnpm workspace as Tegel, no manual linking is required. The workspace automatically links local packages using the `workspace:` protocol after running:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
pnpm install
|
|
236
|
+
```
|
|
237
|
+
|
|
234
238
|
---
|
|
235
239
|
|
|
236
240
|
## Tegel Lite SCSS Conventions
|
|
@@ -514,7 +518,7 @@ Once your SCSS are in place, verify that the component compiles correctly.
|
|
|
514
518
|
In the `packages/core` directory, run:
|
|
515
519
|
|
|
516
520
|
```bash
|
|
517
|
-
|
|
521
|
+
pnpm build:tegel-lite
|
|
518
522
|
```
|
|
519
523
|
|
|
520
524
|
This will:
|