myrentokil-components-library 1.0.9
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 +27 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# myRentokil-components-library
|
|
2
|
+
|
|
3
|
+
Custom components library
|
|
4
|
+
|
|
5
|
+
This library can be installed using npm.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install @myRentokil/myRentokil-components-library
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Available Scripts:
|
|
12
|
+
|
|
13
|
+
### Run tests
|
|
14
|
+
```
|
|
15
|
+
npm run test
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Run storybook locally
|
|
19
|
+
This project uses Storybook. To see the components in the browser, run:
|
|
20
|
+
```
|
|
21
|
+
npm run storybook
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Build storybook
|
|
25
|
+
```
|
|
26
|
+
npm run build-storybook
|
|
27
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "myrentokil-components-library",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"description": "myRentokil shared components library",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs && storybook build",
|
|
15
|
+
"build:esm": "tsc",
|
|
16
|
+
"build:cjs": "tsc --module CommonJS --outDir dist/cjs",
|
|
17
|
+
"storybook": "storybook dev -p 6006",
|
|
18
|
+
"build-storybook": "storybook build",
|
|
19
|
+
"test": "jest"
|
|
20
|
+
},
|
|
21
|
+
"author": "Fernando Brandao",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@babel/preset-env": "^7.22.5",
|
|
25
|
+
"@babel/preset-react": "^7.22.5",
|
|
26
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
27
|
+
"@emotion/react": "^11.11.1",
|
|
28
|
+
"@emotion/styled": "^11.11.0",
|
|
29
|
+
"@mui/material": "^5.13.6",
|
|
30
|
+
"@mui/styled-engine-sc": "^5.12.0",
|
|
31
|
+
"@storybook/addon-essentials": "^7.0.24",
|
|
32
|
+
"@storybook/addon-interactions": "^7.0.24",
|
|
33
|
+
"@storybook/addon-links": "^7.0.24",
|
|
34
|
+
"@storybook/blocks": "^7.0.24",
|
|
35
|
+
"@storybook/react": "^7.0.24",
|
|
36
|
+
"@storybook/react-webpack5": "^7.0.24",
|
|
37
|
+
"@storybook/testing-library": "^0.0.14-next.2",
|
|
38
|
+
"@testing-library/react": "^14.0.0",
|
|
39
|
+
"@types/jest": "^29.5.2",
|
|
40
|
+
"@types/node": "^20.3.2",
|
|
41
|
+
"@types/react": "^18.2.14",
|
|
42
|
+
"@types/react-dom": "^18.2.6",
|
|
43
|
+
"@types/styled-components": "^5.1.26",
|
|
44
|
+
"jest": "^29.5.0",
|
|
45
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
46
|
+
"prop-types": "^15.8.1",
|
|
47
|
+
"react": "^18.2.0",
|
|
48
|
+
"react-dom": "^18.2.0",
|
|
49
|
+
"storybook": "^7.0.24",
|
|
50
|
+
"styled-components": "^5.3.1",
|
|
51
|
+
"typescript": "^5.1.5"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"react": "^18.2.0",
|
|
55
|
+
"react-dom": "^18.2.0"
|
|
56
|
+
}
|
|
57
|
+
}
|