brunomilitzer | 87111ee | 2021-05-18 12:50:32 +0100 | [diff] [blame] | 1 | { |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 2 | "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", |
danielhanrahan | 426fa90 | 2021-09-08 12:34:22 +0100 | [diff] [blame] | 11 | "homepage": ".", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 12 | "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": { |
brunomilitzer | 4be96f8 | 2021-12-17 17:41:57 +0000 | [diff] [blame] | 29 | "@babel/runtime": "7.16.5", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 30 | "@fortawesome/fontawesome-free": "5.15.3", |
| 31 | "@json-editor/json-editor": "2.5.4", |
brunomilitzer | 4be96f8 | 2021-12-17 17:41:57 +0000 | [diff] [blame] | 32 | "@material-ui/core": "4.12.3", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 33 | "@material-ui/icons": "4.11.2", |
brunomilitzer | 4be96f8 | 2021-12-17 17:41:57 +0000 | [diff] [blame] | 34 | "@material-ui/lab": "4.0.0-alpha.60", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 35 | "@material-ui/pickers": "3.3.10", |
| 36 | "bootstrap-css-only": "4.4.1", |
| 37 | "js-yaml": "4.1.0", |
saul.gill | 896e9ea | 2021-10-08 15:19:46 +0100 | [diff] [blame] | 38 | "material-table": "1.68.0", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 39 | "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", |
brunomilitzer | 4be96f8 | 2021-12-17 17:41:57 +0000 | [diff] [blame] | 49 | "@babel/plugin-transform-runtime": "7.16.5", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 50 | "@babel/preset-env": "7.14.7", |
| 51 | "@babel/preset-react": "7.14.5", |
| 52 | "@wojtekmaj/enzyme-adapter-react-17": "0.6.2", |
brunomilitzer | 4be96f8 | 2021-12-17 17:41:57 +0000 | [diff] [blame] | 53 | "babel-jest": "26.6.0", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 54 | "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.gill | 3ce3724 | 2021-11-01 15:12:48 +0000 | [diff] [blame] | 60 | "jest-fetch-mock": "3.0.3", |
| 61 | "jest-sonar-reporter": "2.0.0" |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 62 | }, |
| 63 | "browserslist": [ |
| 64 | ">0.2%", |
| 65 | "not dead", |
| 66 | "not ie <= 11", |
| 67 | "not op_mini all" |
| 68 | ], |
| 69 | "jest": { |
| 70 | "verbose": true, |
saul.gill | 3ce3724 | 2021-11-01 15:12:48 +0000 | [diff] [blame] | 71 | "collectCoverage": true, |
| 72 | "coverageDirectory": "${project.build.directory}/code-coverage", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 73 | "collectCoverageFrom": [ |
lapentafd | 553f1e7 | 2022-03-16 10:44:25 +0000 | [diff] [blame] | 74 | "**/*.{js,jsx}", |
| 75 | "!./src/setupTests.js" |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 76 | ], |
saul.gill | 3ce3724 | 2021-11-01 15:12:48 +0000 | [diff] [blame] | 77 | "testResultsProcessor": "jest-sonar-reporter", |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 78 | "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.gill | 3ce3724 | 2021-11-01 15:12:48 +0000 | [diff] [blame] | 93 | "jestSonar": { |
| 94 | "reportPath": "../../target/reports", |
| 95 | "reportFile": "test-reporter.xml", |
| 96 | "indent": 4, |
| 97 | "sonar56x": true |
| 98 | }, |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 99 | "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.gill | ce0db16 | 2021-10-29 14:24:20 +0100 | [diff] [blame] | 113 | ], |
| 114 | [ |
| 115 | "@babel/plugin-proposal-private-methods", |
| 116 | { |
| 117 | "loose": true |
| 118 | } |
brunomilitzer | 9752dad | 2021-07-02 16:26:03 +0100 | [diff] [blame] | 119 | ] |
| 120 | ] |
| 121 | } |
brunomilitzer | 87111ee | 2021-05-18 12:50:32 +0100 | [diff] [blame] | 122 | } |