@inseefr/lunatic 3.8.0 → 3.8.1-rc-pnpm-migration.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 +7 -13
- package/package.json +4 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Lunatic is a front-end library in the form of a React hook and component librari
|
|
|
39
39
|
To get started, you need to install Lunatic:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
|
|
42
|
+
pnpm add @inseefr/lunatic
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### The useLunatic Hook
|
|
@@ -172,7 +172,6 @@ To facilitate expression execution, an `executeExpression()` method is exposed i
|
|
|
172
172
|
- Files containing JSX should use the .jsx (or .tsx) extension.
|
|
173
173
|
- Commits follow the specification [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
174
174
|
- Pull Requests should be prefixed in the same convention as commits:
|
|
175
|
-
|
|
176
175
|
- `test(XXX?)`: XXX for adding tests.
|
|
177
176
|
- `feat(XXX?)`: XXX for adding new features.
|
|
178
177
|
- `fix(XXX?)`: XXX for bug fixes.
|
|
@@ -211,30 +210,25 @@ Assuming `you/my-app` have `@inseefr/lunatic` as a dependency.
|
|
|
211
210
|
cd ~/github
|
|
212
211
|
git clone https://github.com/you/my-app
|
|
213
212
|
cd my-app
|
|
214
|
-
|
|
213
|
+
pnpm install
|
|
215
214
|
|
|
216
215
|
cd ~/github
|
|
217
216
|
git clone https://github.com/InseeFr/Lunatic
|
|
218
217
|
cd Lunatic
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
yarn link-in-app my-app
|
|
218
|
+
pnpm install
|
|
219
|
+
pnpm run build
|
|
222
220
|
npx tsc -w
|
|
223
221
|
|
|
224
222
|
# Open another terminal
|
|
225
223
|
|
|
226
224
|
cd ~/github/my-app
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
pnpm link ../lunatic # assuming both project are in the same folder
|
|
226
|
+
pnpm run start # Or whatever my-app is using for starting the project
|
|
229
227
|
```
|
|
230
228
|
|
|
231
229
|
You don't have to use `~/github` as reference path. Just make sure `my-app` and `@inseefr/lunatic`
|
|
232
230
|
are in the same directory.
|
|
233
231
|
|
|
234
|
-
> Note for the maintainer: You might run into issues if you do not list all your singleton dependencies in
|
|
235
|
-
> `src/link-in-app.js -> singletonDependencies`. A singleton dependency is a dependency that can
|
|
236
|
-
> only be present once in an App. Singleton dependencies are usually listed as peerDependencies example `react`, `@emotion/*`.
|
|
237
|
-
|
|
238
232
|
### Releasing
|
|
239
233
|
|
|
240
234
|
For releasing a new version on GitHub and NPM you don't need to create a tag.
|
|
@@ -272,7 +266,7 @@ or with UI (launched in your local browser):
|
|
|
272
266
|
|
|
273
267
|
To have real time test (refreshed when you're coding), you need to run storybook in a separate command prompt and launch test.
|
|
274
268
|
|
|
275
|
-
- `
|
|
269
|
+
- `pnpm run storybook`
|
|
276
270
|
- `npx playwright test`
|
|
277
271
|
|
|
278
272
|
The inconvenient is that “dev” mode can be too slow to display storybook pages and fails test. (timeout exceeded)..
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inseefr/lunatic",
|
|
3
|
-
"version": "3.8.0",
|
|
3
|
+
"version": "3.8.1-rc-pnpm-migration.0",
|
|
4
4
|
"description": "Library of questionnaire components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -2044,8 +2044,10 @@
|
|
|
2044
2044
|
"@storybook/test": "^8.2.9",
|
|
2045
2045
|
"@storybook/test-runner": "^0.19.1",
|
|
2046
2046
|
"@tailwindcss/vite": "^4.1.4",
|
|
2047
|
+
"@testing-library/dom": "^10.4.1",
|
|
2047
2048
|
"@testing-library/jest-dom": "^6.4.8",
|
|
2048
2049
|
"@testing-library/react": "^16.0.0",
|
|
2050
|
+
"@testing-library/user-event": "^14.6.1",
|
|
2049
2051
|
"@types/node": "^22.8.0",
|
|
2050
2052
|
"@types/react": "^18.3.3",
|
|
2051
2053
|
"@types/react-dom": "^18.3.0",
|
|
@@ -2081,6 +2083,6 @@
|
|
|
2081
2083
|
},
|
|
2082
2084
|
"volta": {
|
|
2083
2085
|
"node": "20.16.0",
|
|
2084
|
-
"
|
|
2086
|
+
"pnpm": "9.15.0"
|
|
2085
2087
|
}
|
|
2086
2088
|
}
|