@ambita/design-system 6.1.1-541.0 → 6.1.1-561.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 +14 -14
- package/dist/ds.cjs +1 -1
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.js +89 -89
- package/dist/ds.js.map +1 -1
- package/dist/ds.umd.cjs +1 -1
- package/dist/ds.umd.cjs.map +1 -1
- package/package.json +36 -35
package/README.md
CHANGED
|
@@ -11,9 +11,9 @@ Generate NPM token (try `npm whoami` to check if configured). If no response, fo
|
|
|
11
11
|
To get the project up and running locally:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
pnpm install
|
|
15
|
+
pnpm run build:storybook:prepare
|
|
16
|
+
pnpm run storybook
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
This will install dependencies, build the required theme assets, and start Storybook on port 6006.
|
|
@@ -21,12 +21,12 @@ This will install dependencies, build the required theme assets, and start Story
|
|
|
21
21
|
> [!IMPORTANT]
|
|
22
22
|
> The `build:storybook:prepare` step is **required** before running Storybook for the first time. Storybook needs the compiled theme CSS files in `dist/themes/`. If you see an error about missing `./dist/themes` directory, run this build step first.
|
|
23
23
|
|
|
24
|
-
You can also run `
|
|
24
|
+
You can also run `pnpm start` to test it running with Vite.
|
|
25
25
|
|
|
26
26
|
### Subsequent Runs
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
|
|
29
|
+
pnpm run storybook
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -72,19 +72,19 @@ Recommended front-end template for new Ambita projects, pre-configured with this
|
|
|
72
72
|
#### Compile and Hot-Reload for Development
|
|
73
73
|
|
|
74
74
|
```sh
|
|
75
|
-
|
|
75
|
+
pnpm start
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
#### Documentation and manual testing with [Storybook](https://storybook.js.org/)
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
|
|
81
|
+
pnpm run storybook
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
#### Type-Check, Compile and Minify for Production
|
|
85
85
|
|
|
86
86
|
```sh
|
|
87
|
-
|
|
87
|
+
pnpm run build
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
#### Run Unit Tests with [Vitest](https://vitest.dev/)
|
|
@@ -92,37 +92,37 @@ npm run build
|
|
|
92
92
|
Once:
|
|
93
93
|
|
|
94
94
|
```sh
|
|
95
|
-
|
|
95
|
+
pnpm test
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Continuously:
|
|
99
99
|
|
|
100
100
|
```sh
|
|
101
|
-
|
|
101
|
+
pnpm run test:unit
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
#### Test coverage with [v8](https://vitest.dev/guide/coverage)
|
|
105
105
|
|
|
106
106
|
```sh
|
|
107
|
-
|
|
107
|
+
pnpm run test:coverage
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
#### Lint code
|
|
111
111
|
|
|
112
112
|
```sh
|
|
113
|
-
|
|
113
|
+
pnpm run lint
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
#### Format code with [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html)
|
|
117
117
|
|
|
118
118
|
```sh
|
|
119
|
-
|
|
119
|
+
pnpm run format
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
#### Type Check [TypeScript](https://www.typescriptlang.org/)
|
|
123
123
|
|
|
124
124
|
```sh
|
|
125
|
-
|
|
125
|
+
pnpm run type-check
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
---
|