@lysaab/lysa-pep 7.1.0 → 7.2.1-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 +62 -10
- package/package.json +40 -31
package/README.md
CHANGED
|
@@ -1,23 +1,63 @@
|
|
|
1
|
-
|
|
1
|
+
# Lysa PEP (Politically Exposed Person)
|
|
2
|
+
|
|
3
|
+
## What is it?
|
|
4
|
+
|
|
5
|
+
Lysa PEP is a small React library that implements a guided, internationalized flow for collecting Politically Exposed Person (PEP) declarations.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
- pnpm package manager
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
Make sure you have pnpm installed.
|
|
14
|
+
|
|
15
|
+
Using npm:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g pnpm@latest-10
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Check [pnpm official installation docs](https://pnpm.io/installation) for other options.
|
|
22
|
+
|
|
23
|
+
Install dependencies:
|
|
2
24
|
|
|
3
|
-
|
|
25
|
+
```sh
|
|
26
|
+
pnpm install
|
|
27
|
+
```
|
|
4
28
|
|
|
5
|
-
|
|
29
|
+
## Development
|
|
6
30
|
|
|
7
|
-
|
|
31
|
+
In the project directory, run:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
pnpm start
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This runs the app in the development mode.<br />
|
|
8
38
|
|
|
9
|
-
Runs the app in the development mode.<br />
|
|
10
39
|
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
11
40
|
|
|
12
41
|
The page will reload if you make edits.<br />
|
|
42
|
+
|
|
13
43
|
You will also see any lint errors in the console.
|
|
14
44
|
|
|
15
|
-
|
|
45
|
+
## Other available scripts
|
|
46
|
+
|
|
47
|
+
### Test
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm test
|
|
51
|
+
```
|
|
16
52
|
|
|
17
53
|
Launches the test runner in the interactive watch mode.<br />
|
|
18
54
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
19
55
|
|
|
20
|
-
###
|
|
56
|
+
### Build
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
pnpm build
|
|
60
|
+
```
|
|
21
61
|
|
|
22
62
|
Builds the app for production to the `build` folder.<br />
|
|
23
63
|
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
@@ -27,7 +67,11 @@ Your app is ready to be deployed!
|
|
|
27
67
|
|
|
28
68
|
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
29
69
|
|
|
30
|
-
###
|
|
70
|
+
### Eject - DANGER ZONE
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
pnpm eject
|
|
74
|
+
```
|
|
31
75
|
|
|
32
76
|
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
33
77
|
|
|
@@ -37,7 +81,9 @@ Instead, it will copy all the configuration files and the transitive dependencie
|
|
|
37
81
|
|
|
38
82
|
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
39
83
|
|
|
40
|
-
##
|
|
84
|
+
## Built with
|
|
85
|
+
|
|
86
|
+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
41
87
|
|
|
42
88
|
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
43
89
|
|
|
@@ -45,7 +91,13 @@ To learn React, check out the [React documentation](https://reactjs.org/).
|
|
|
45
91
|
|
|
46
92
|
## Testing pre-release version
|
|
47
93
|
|
|
48
|
-
1. `
|
|
94
|
+
1. `pnpm build`
|
|
49
95
|
2. Copy the built files to where you want to use them. Example (standing in a
|
|
50
96
|
project that you want to test the new version in):
|
|
51
97
|
`cp -r ../lysa-pep/lib/* node_modules/\@lysaab/lysa-pep/`
|
|
98
|
+
|
|
99
|
+
## Notes on pnpm workspace
|
|
100
|
+
|
|
101
|
+
- Uses `pnpm-workspace.yaml` and `pnpm-lock.yaml` at repo root.
|
|
102
|
+
- Scripts are run with `pnpm <script>` (no `run` needed except for scoped scripts).
|
|
103
|
+
- If you work across packages, prefer `pnpm -w <command>` to run at the workspace root.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lysaab/lysa-pep",
|
|
3
3
|
"author": "Lysa AB",
|
|
4
|
-
"version": "7.1
|
|
4
|
+
"version": "7.2.1-0",
|
|
5
5
|
"main": "./Exports.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@types/luxon": "^1.15.2",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@formatjs/cli": "^1.1.22",
|
|
12
|
-
"@lysaab/ui-2": "
|
|
12
|
+
"@lysaab/ui-2": "49.0.0-0",
|
|
13
13
|
"@types/jest": "24.0.20",
|
|
14
14
|
"@types/luxon": "^1.15.2",
|
|
15
15
|
"@types/node": "12.11.7",
|
|
@@ -17,43 +17,22 @@
|
|
|
17
17
|
"@types/react-datepicker": "^6.2.0",
|
|
18
18
|
"@types/react-dom": "^18.3.0",
|
|
19
19
|
"copyfiles": "^2.3.0",
|
|
20
|
+
"date-fns": "3.6.0",
|
|
20
21
|
"eslint-plugin-formatjs": "^3.0.0",
|
|
21
22
|
"luxon": "^1.21.1",
|
|
22
|
-
"react": "
|
|
23
|
+
"react": "18.3.1",
|
|
23
24
|
"react-datepicker": "^6.9.0",
|
|
24
|
-
"react-dom": "
|
|
25
|
+
"react-dom": "18.3.1",
|
|
25
26
|
"react-intl": "^6.6.8",
|
|
26
27
|
"react-intl-translations-manager": "^5.0.3",
|
|
27
|
-
"react-router-dom": "^5.2.0",
|
|
28
28
|
"react-scripts": "^5.0.0",
|
|
29
29
|
"sass": "^1.50.0",
|
|
30
|
-
"typescript": "^4.
|
|
30
|
+
"typescript": "^4.9.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@lysaab/ui-2": "
|
|
34
|
-
"react": "
|
|
35
|
-
"react-intl": "^6.6.8"
|
|
36
|
-
"react-router-dom": "^5.2.0"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"start": "react-scripts start",
|
|
40
|
-
"build": "react-scripts build",
|
|
41
|
-
"test": "react-scripts test",
|
|
42
|
-
"eject": "react-scripts eject",
|
|
43
|
-
"build:lib": "tsc -p ./tsconfig_build.json && npm run copyscss",
|
|
44
|
-
"translations:extract": "formatjs extract --messages-dir ./build/messages \"./src/**/*.tsx\" \"./src/**/*.ts\"",
|
|
45
|
-
"translations:manage": "node ./translationRunner.js",
|
|
46
|
-
"translations": "npm run translations:extract && npm run translations:manage",
|
|
47
|
-
"copyscss": "copyfiles -u 1 \"src/components/**/*.scss\" lib/",
|
|
48
|
-
"copymessages": "copyfiles -u 1 \"build/messages/**/*.json\" lib/",
|
|
49
|
-
"copypkgfiles": "cp README.md ./lib/ && cp package.json ./lib/",
|
|
50
|
-
"postversioning": "npm run translations:extract && npm run copymessages && npm run copypkgfiles",
|
|
51
|
-
"release:patch": "npm run build:lib && npm version patch && npm run postversioning && cd lib && npm publish",
|
|
52
|
-
"release:minor": "npm run build:lib && npm version minor && npm run postversioning && cd lib && npm publish",
|
|
53
|
-
"release:major": "npm run build:lib && npm version major && npm run postversioning && cd lib && npm publish",
|
|
54
|
-
"release:premajor": "npm run build:lib && npm version premajor && npm run postversioning && cd lib && npm publish --tag next",
|
|
55
|
-
"release:prepatch": "npm run build:lib && npm version prepatch && npm run postversioning && cd lib && npm publish --tag next",
|
|
56
|
-
"release:prerelease": "npm run build:lib && npm version prerelease && npm run postversioning && cd lib && npm publish --tag next"
|
|
33
|
+
"@lysaab/ui-2": "49.0.0",
|
|
34
|
+
"react": "18",
|
|
35
|
+
"react-intl": "^6.6.8"
|
|
57
36
|
},
|
|
58
37
|
"eslintConfig": {
|
|
59
38
|
"extends": "react-app"
|
|
@@ -69,5 +48,35 @@
|
|
|
69
48
|
"last 1 firefox version",
|
|
70
49
|
"last 1 safari version"
|
|
71
50
|
]
|
|
51
|
+
},
|
|
52
|
+
"devEngines": {
|
|
53
|
+
"packageManager": {
|
|
54
|
+
"name": "pnpm",
|
|
55
|
+
"onFail": "error",
|
|
56
|
+
"version": "11.1.3"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"pnpm": "11.1.3"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"start": "react-scripts start",
|
|
64
|
+
"build": "react-scripts build",
|
|
65
|
+
"test": "react-scripts test",
|
|
66
|
+
"eject": "react-scripts eject",
|
|
67
|
+
"build:lib": "tsc -p ./tsconfig_build.json && pnpm copyscss",
|
|
68
|
+
"translations:extract": "formatjs extract --messages-dir ./build/messages \"./src/**/*.tsx\" \"./src/**/*.ts\"",
|
|
69
|
+
"translations:manage": "node ./translationRunner.js",
|
|
70
|
+
"translations": "pnpm translations:extract && pnpm translations:manage",
|
|
71
|
+
"copyscss": "copyfiles -u 1 \"src/components/**/*.scss\" lib/",
|
|
72
|
+
"copymessages": "copyfiles -u 1 \"build/messages/**/*.json\" lib/",
|
|
73
|
+
"copypkgfiles": "cp README.md ./lib/ && cp package.json ./lib/",
|
|
74
|
+
"postversioning": "pnpm translations:extract && pnpm copymessages && pnpm copypkgfiles",
|
|
75
|
+
"release:patch": "pnpm build:lib && pnpm version patch && pnpm postversioning && cd lib && pnpm publish",
|
|
76
|
+
"release:minor": "pnpm build:lib && pnpm version minor && pnpm postversioning && cd lib && pnpm publish",
|
|
77
|
+
"release:major": "pnpm build:lib && pnpm version major && pnpm postversioning && cd lib && pnpm publish",
|
|
78
|
+
"release:premajor": "pnpm build:lib && pnpm version premajor && pnpm postversioning && cd lib && pnpm publish --tag next",
|
|
79
|
+
"release:prepatch": "pnpm build:lib && pnpm version prepatch && pnpm postversioning && cd lib && pnpm publish --tag next",
|
|
80
|
+
"release:prerelease": "pnpm build:lib && pnpm version prerelease && pnpm postversioning && cd lib && pnpm publish --tag next"
|
|
72
81
|
}
|
|
73
|
-
}
|
|
82
|
+
}
|