-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
171 lines (171 loc) · 5.42 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"name": "@vtfk/components",
"version": "0.12.2",
"description": "Komponentbibliotek for Vestfold og Telemark fylkeskommune",
"keywords": [],
"author": "Vestfold og Telemark fylkeskommune (https://github.com/vtfk)",
"license": "MIT",
"source": "src/index.js",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vtfk/component-library.git"
},
"bugs": {
"url": "https://github.com/vtfk/component-library/issues"
},
"homepage": "https://github.com/vtfk/component-library#readme",
"scripts": {
"test": "npm run lint:fix && npm run test:jest",
"test:jest": "jest",
"test:watch": "jest --watch",
"test:lint": "eslint src",
"lint:fix": "eslint --fix src",
"generate": "plop --plopfile scripts/template/index.js",
"build": "rollup -c ./scripts/build/rollup.config.js",
"build-watch": "npm run build -- -w",
"storybook": "npm run test && cross-env STORYBOOK_DEBUG=true SBCONFIG_CONFIG_DIR=scripts/storybook start-storybook -p 4000 --quiet --ci",
"build-storybook": "build-storybook -c scripts/storybook -o storybook-static",
"release:patch": "npm run test && npm run build && npm run build-storybook && release patch",
"release:minor": "npm run test && npm run build && npm run build-storybook && release minor",
"release:major": "npm run test && npm run build && npm run build-storybook && release major",
"refresh": "rm -rf node_modules/ && rm package-lock.json && npm install",
"now-build": "npm run build-storybook"
},
"dependencies": {
"lodash.get": "^4.4.2",
"nanoid": "3.3.4",
"react-datepicker": "4.7.0",
"react-scrolllock": "5.0.1",
"use-debounce": "7.0.1"
},
"devDependencies": {
"@babel/core": "7.17.12",
"@babel/eslint-parser": "7.17.0",
"@babel/plugin-proposal-object-rest-spread": "7.17.12",
"@babel/preset-env": "7.16.11",
"@babel/preset-react": "7.16.7",
"@rollup/plugin-commonjs": "22.0.0",
"@rollup/plugin-node-resolve": "13.2.2",
"@rollup/plugin-replace": "4.0.0",
"@storybook/addon-a11y": "6.4.22",
"@storybook/addon-actions": "6.4.22",
"@storybook/addon-docs": "6.5.6",
"@storybook/addon-knobs": "6.4.0",
"@storybook/addon-storysource": "6.4.22",
"@storybook/addons": "6.4.22",
"@storybook/builder-webpack5": "6.4.22",
"@storybook/manager-webpack5": "6.4.22",
"@storybook/preset-scss": "1.0.3",
"@storybook/react": "6.5.6",
"@storybook/theming": "6.4.22",
"@svgr/rollup": "6.2.1",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.3.0",
"@testing-library/user-event": "14.2.0",
"@whitespace/storybook-addon-html": "5.0.0",
"babel-plugin-inline-react-svg": "1.1.2",
"babel-polyfill": "6.26.0",
"cross-env": "7.0.3",
"eslint": "8.16.0",
"eslint-config-standard": "17.0.0",
"eslint-config-standard-jsx": "11.0.0",
"eslint-config-standard-react": "11.0.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-n": "15.2.1",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.29.4",
"highlight.js": "11.5.1",
"jest": "27.5.1",
"jest-junit": "13.2.0",
"jest-transform-css": "4.0.1",
"marked": "4.0.16",
"node-sass": "7.0.1",
"plop": "3.0.6",
"postcss": "8.4.14",
"prop-types": "15.8.1",
"react": "*",
"react-dom": "*",
"react-router-dom": "*",
"react-syntax-highlighter": "15.5.0",
"release": "6.3.1",
"rimraf": "3.0.2",
"rollup": "2.70.2",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-svg": "2.0.0",
"rollup-plugin-terser": "7.0.2",
"sass-loader": "12.6.0",
"svg-jest": "1.0.1"
},
"peerDependencies": {
"prop-types": ">=15.7.2",
"react": "^16.14.0 || ^17.0.0 || ^17.0.1 || ^17.0.1 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.14.0 || ^17.0.0 || ^17.0.1 || ^17.0.1 || ^17.0.1 || ^18.0.0",
"react-router-dom": "^6.x.x"
},
"babel": {
"plugins": [
"@babel/plugin-proposal-object-rest-spread"
],
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
},
"jest": {
"rootDir": "src",
"setupFilesAfterEnv": [
"<rootDir>/../scripts/test/jest-setup.js"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/../scripts/test/file.mock.js",
"\\.(css|less|scss)$": "<rootDir>/../scripts/test/style.mock.js"
},
"transform": {
".+\\.js$": "babel-jest",
".+\\.svg$": "svg-jest",
".+\\.(css|styl|less|sass|scss)$": "jest-transform-css",
".+\\.(bmp|gif|jpg|jpeg|png|psd|webp)$": "<rootDir>/../scripts/test/media-file.mock.js"
},
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "<rootDir>/../scripts/test"
}
]
],
"verbose": true,
"testEnvironment": "jsdom"
},
"eslintConfig": {
"parser": "@babel/eslint-parser",
"extends": [
"standard",
"standard-jsx",
"standard-react"
],
"env": {
"jest": true
},
"rules": {
"no-console": 0,
"react/default-props-match-prop-types": 1,
"react/no-unused-prop-types": 1,
"react/prop-types": 1,
"react/sort-prop-types": 1
}
},
"standard": {
"env": [
"jest"
]
},
"engines": {
"node": ">=12.0.0"
}
}