blob: c699c19994e0e57ed82c8009149e873e062928e7 [file] [log] [blame]
brunomilitzer87111ee2021-05-18 12:50:32 +01001{
brunomilitzer9752dad2021-07-02 16:26:03 +01002 "name": "onap-policy-clamp-ui",
3 "version": "${project.version}",
4 "description": "ONAP Policy Clamp UI",
5 "author": "ONAP Policy Team",
6 "license": "Apache-2.0",
7 "publishConfig": {
8 "registry": "${npm.publish.url}"
9 },
10 "main": "index.js",
danielhanrahan426fa902021-09-08 12:34:22 +010011 "homepage": ".",
brunomilitzer9752dad2021-07-02 16:26:03 +010012 "proxy": "https://localhost:8443",
13 "scripts": {
14 "start": "HTTPS=true react-scripts start",
15 "build": "react-scripts build",
16 "test": "jest",
17 "test:watch": "jest --watch",
18 "test:coverage": "jest --coverage",
19 "eject": "react-scripts eject"
20 },
21 "files": [
22 "src/*.js",
23 "src/*.png",
24 "src/api",
25 "src/components",
26 "src/theme"
27 ],
28 "dependencies": {
brunomilitzer4be96f82021-12-17 17:41:57 +000029 "@babel/runtime": "7.16.5",
brunomilitzer9752dad2021-07-02 16:26:03 +010030 "@fortawesome/fontawesome-free": "5.15.3",
31 "@json-editor/json-editor": "2.5.4",
brunomilitzer4be96f82021-12-17 17:41:57 +000032 "@material-ui/core": "4.12.3",
brunomilitzer9752dad2021-07-02 16:26:03 +010033 "@material-ui/icons": "4.11.2",
brunomilitzer4be96f82021-12-17 17:41:57 +000034 "@material-ui/lab": "4.0.0-alpha.60",
brunomilitzer9752dad2021-07-02 16:26:03 +010035 "@material-ui/pickers": "3.3.10",
36 "bootstrap-css-only": "4.4.1",
37 "js-yaml": "4.1.0",
saul.gill896e9ea2021-10-08 15:19:46 +010038 "material-table": "1.68.0",
brunomilitzer9752dad2021-07-02 16:26:03 +010039 "react": "17.0.2",
40 "react-bootstrap": "1.6.1",
41 "react-dom": "17.0.2",
42 "react-router-dom": "5.2.0",
43 "react-scripts": "4.0.3",
44 "react-select": "4.3.1",
45 "styled-components": "5.3.0"
46 },
47 "devDependencies": {
48 "@babel/plugin-proposal-class-properties": "7.14.5",
brunomilitzer4be96f82021-12-17 17:41:57 +000049 "@babel/plugin-transform-runtime": "7.16.5",
brunomilitzer9752dad2021-07-02 16:26:03 +010050 "@babel/preset-env": "7.14.7",
51 "@babel/preset-react": "7.14.5",
52 "@wojtekmaj/enzyme-adapter-react-17": "0.6.2",
brunomilitzer4be96f82021-12-17 17:41:57 +000053 "babel-jest": "26.6.0",
brunomilitzer9752dad2021-07-02 16:26:03 +010054 "enzyme": "3.11.0",
55 "enzyme-adapter-react-17-updated": "1.0.2",
56 "enzyme-to-json": "3.6.2",
57 "history": "5.0.0",
58 "jest": "26.6.0",
59 "jest-canvas-mock": "2.3.1",
saul.gill3ce37242021-11-01 15:12:48 +000060 "jest-fetch-mock": "3.0.3",
61 "jest-sonar-reporter": "2.0.0"
brunomilitzer9752dad2021-07-02 16:26:03 +010062 },
63 "browserslist": [
64 ">0.2%",
65 "not dead",
66 "not ie <= 11",
67 "not op_mini all"
68 ],
69 "jest": {
70 "verbose": true,
saul.gill3ce37242021-11-01 15:12:48 +000071 "collectCoverage": true,
72 "coverageDirectory": "${project.build.directory}/code-coverage",
brunomilitzer9752dad2021-07-02 16:26:03 +010073 "collectCoverageFrom": [
lapentafd553f1e72022-03-16 10:44:25 +000074 "**/*.{js,jsx}",
75 "!./src/setupTests.js"
brunomilitzer9752dad2021-07-02 16:26:03 +010076 ],
saul.gill3ce37242021-11-01 15:12:48 +000077 "testResultsProcessor": "jest-sonar-reporter",
brunomilitzer9752dad2021-07-02 16:26:03 +010078 "rootDir": "${project.build.directory}/${ui.react.src}",
79 "coverageReporters": [
80 "lcov"
81 ],
82 "moduleNameMapper": {
83 "\\.(css|png)$": "identity-obj-proxy"
84 },
85 "setupFiles": [
86 "./src/setupTests.js",
87 "jest-canvas-mock"
88 ],
89 "snapshotSerializers": [
90 "enzyme-to-json/serializer"
91 ]
92 },
saul.gill3ce37242021-11-01 15:12:48 +000093 "jestSonar": {
94 "reportPath": "../../target/reports",
95 "reportFile": "test-reporter.xml",
96 "indent": 4,
97 "sonar56x": true
98 },
brunomilitzer9752dad2021-07-02 16:26:03 +010099 "babel": {
100 "presets": [
101 "@babel/preset-env",
102 "@babel/preset-react"
103 ],
104 "plugins": [
105 [
106 "@babel/plugin-proposal-class-properties",
107 {
108 "loose": true
109 }
110 ],
111 [
112 "@babel/plugin-transform-runtime"
saul.gillce0db162021-10-29 14:24:20 +0100113 ],
114 [
115 "@babel/plugin-proposal-private-methods",
116 {
117 "loose": true
118 }
brunomilitzer9752dad2021-07-02 16:26:03 +0100119 ]
120 ]
121 }
brunomilitzer87111ee2021-05-18 12:50:32 +0100122}