|
1 | 1 | {
|
2 | 2 | "name": "fpsak-frontend",
|
3 |
| - "version": "0.3.363", |
4 | 3 | "description": "Klient for Foreldrepenger",
|
5 | 4 | "main": "./dist/index.js",
|
6 | 5 | "author": "NAV",
|
|
11 | 10 | "url": "git+https://github.com/navikt/fpsak-frontend.git"
|
12 | 11 | },
|
13 | 12 | "scripts": {
|
14 |
| - "test": "mochapack --webpack-config webpack/webpack.test.js \"packages/**/*.spec.*\"", |
| 13 | + "test": "mochapack --colors --webpack-config webpack/webpack.test.js \"packages/**/*.spec.*\"", |
15 | 14 | "test:watch": "mochapack --watch --webpack-config webpack/webpack.test.watch.js \"packages/**/*.spec.*\"",
|
16 | 15 | "test:coverage": "nyc mochapack --webpack-config webpack/webpack.test.coverage.js \"packages/**/*.spec.*\"",
|
17 | 16 | "dev": "cross-env NODE_ENV=development node webpack/webpack.dev.server.js --config webpack/webpack.dev.js",
|
18 | 17 | "build": "cross-env NODE_ENV=production webpack --no-progress --colors --config webpack/webpack.prod.js",
|
19 |
| - "postinstall": "yarn run build && yarn test && yarn run less:lint", |
| 18 | + "postinstall": "yarn test && yarn less:lint", |
20 | 19 | "lerna": "lerna",
|
21 | 20 | "lerna:publish": "(lerna updated && lerna publish --cd-version patch --yes -m \"publish [ci skip]\") || echo \"Ingen endringer avslutter OK\"",
|
22 | 21 | "less:lint": "stylelint \"packages/**/*.less\"",
|
23 | 22 | "ts-check": "tsc --pretty",
|
24 | 23 | "doc": "react-asciidoc-generator ./packages/ -o ../../docs/generated/react.adoc --handlebar-template src/docs/asciidoc-template.handlebars",
|
25 |
| - "docker:build": "docker build . -t fpfront -f ./docker/Dockerfile --build-arg HTTP_PROXY=$HTTP_PROXY --build-arg HTTPS_PROXY=$HTTP_PROXY", |
26 |
| - "docker:start": "yarn docker:stop; yarn docker:build; docker run -d --env-file=./docker/.env --name fpfront -p 443:9000 fpfront", |
27 |
| - "docker:stop": "docker stop fpfront; docker rm fpfront", |
28 |
| - "redis:start": "docker stop redis; docker rm redis; docker run --name redis -p 6379:6379 -d redis", |
29 | 24 | "up": "docker-compose up -d --remove-orphans --build",
|
30 |
| - "down": "docker-compose down" |
| 25 | + "down": "docker-compose down", |
| 26 | + "lint": "./node_modules/.bin/eslint packages/**/*.jsx", |
| 27 | + "remove-node-modules": "find . -name \"node_modules\" -exec rm -rf '{}' +" |
31 | 28 | },
|
32 | 29 | "workspaces": [
|
33 | 30 | "packages/*"
|
|
36 | 33 | "@babel/polyfill": "^7.4.4",
|
37 | 34 | "@babel/runtime": "^7.4.4",
|
38 | 35 | "axios": "^0.19.0",
|
39 |
| - "circular-dependency-plugin": "^5.0.2", |
40 |
| - "copy-webpack-plugin": "^5.0.3", |
41 | 36 | "core-js": "^3.1.4",
|
42 | 37 | "dotenv": "^8.0.0",
|
43 | 38 | "history": "^4.9.0",
|
44 | 39 | "react": "^16.8.6",
|
45 | 40 | "react-dom": "^16.8.6",
|
46 |
| - "stylelint-order": "^3.0.0" |
| 41 | + "react-modal": "3.9.1" |
47 | 42 | },
|
48 | 43 | "devDependencies": {
|
49 |
| - "@babel/core": "^7.4.5", |
| 44 | + "@babel/core": "^7.5.5", |
50 | 45 | "@babel/plugin-proposal-class-properties": "^7.4.4",
|
51 | 46 | "@babel/plugin-transform-runtime": "^7.4.4",
|
52 | 47 | "@babel/preset-env": "^7.4.5",
|
53 | 48 | "@babel/preset-react": "^7.0.0",
|
54 | 49 | "@babel/preset-typescript": "^7.3.3",
|
55 |
| - "@babel/register": "^7.4.4", |
| 50 | + "@babel/register": "^7.5.5", |
56 | 51 | "@commercetools/enzyme-extensions": "^5.0.0",
|
| 52 | + "@istanbuljs/nyc-config-babel": "^2.1.1", |
57 | 53 | "@types/chai": "^4.1.7",
|
58 | 54 | "@types/classnames": "^2.2.8",
|
59 | 55 | "@types/enzyme": "^3.9.3",
|
|
68 | 64 | "@types/react-redux": "^7.1.0",
|
69 | 65 | "@types/react-router-dom": "^4.3.4",
|
70 | 66 | "@types/sinon": "^7.0.13",
|
71 |
| - "@typescript-eslint/eslint-plugin": "^1.10.2", |
| 67 | + "@typescript-eslint/eslint-plugin": "^1.13.0", |
72 | 68 | "@typescript-eslint/parser": "^1.10.2",
|
73 | 69 | "axios-mock-adapter": "^1.16.0",
|
74 | 70 | "babel-eslint": "^10.0.2",
|
75 | 71 | "babel-loader": "^8.0.6",
|
| 72 | + "babel-plugin-istanbul": "^5.2.0", |
| 73 | + "cache-loader": "^4.1.0", |
76 | 74 | "chai": "^4.2.0",
|
| 75 | + "circular-dependency-plugin": "^5.0.2", |
| 76 | + "copy-webpack-plugin": "^5.0.3", |
77 | 77 | "cross-env": "^5.2.0",
|
78 | 78 | "css-loader": "^1.0.1",
|
79 | 79 | "enzyme": "^3.10.0",
|
80 | 80 | "enzyme-adapter-react-16": "^1.14.0",
|
81 |
| - "eslint": "^5.16.0", |
82 |
| - "eslint-config-airbnb": "^17.1.0", |
83 |
| - "eslint-config-import": "^0.13.0", |
| 81 | + "eslint": "^5.3.0", |
| 82 | + "eslint-config-airbnb": "^17.1.1", |
84 | 83 | "eslint-import-resolver-webpack": "^0.11.1",
|
85 | 84 | "eslint-loader": "^2.1.2",
|
86 |
| - "eslint-plugin-import": "^2.17.2", |
87 |
| - "eslint-plugin-jsx-a11y": "^6.2.1", |
88 |
| - "eslint-plugin-react": "^7.13.0", |
| 85 | + "eslint-plugin-import": "^2.18.0", |
| 86 | + "eslint-plugin-jsx-a11y": "^6.2.3", |
| 87 | + "eslint-plugin-react": "^7.14.2", |
89 | 88 | "file-loader": "^4.0.0",
|
90 |
| - "happypack": "^5.0.1", |
91 | 89 | "html-webpack-plugin": "^3.2.0",
|
92 | 90 | "ignore-styles": "^5.0.1",
|
93 | 91 | "istanbul-instrumenter-loader": "^3.0.1",
|
|
97 | 95 | "less": "^3.8.1",
|
98 | 96 | "less-loader": "^5.0.0",
|
99 | 97 | "mini-css-extract-plugin": "^0.7.0",
|
100 |
| - "mocha": "^6.1.4", |
101 |
| - "mochapack": "^1.1.1", |
| 98 | + "mocha": "^6.2.0", |
| 99 | + "mochapack": "^1.1.2", |
102 | 100 | "null-loader": "^3.0.0",
|
103 | 101 | "nyc": "^14.1.1",
|
104 |
| - "optimize-css-assets-webpack-plugin": "^4.0.3", |
| 102 | + "optimize-css-assets-webpack-plugin": "^5.0.3", |
105 | 103 | "react-test-renderer": "^16.8.6",
|
106 | 104 | "redux-mock-store": "^1.5.3",
|
107 |
| - "sinon": "^5.0.10", |
108 |
| - "sinon-chai": "^3.2.0", |
| 105 | + "sinon": "^7.3.2", |
| 106 | + "sinon-chai": "^3.3.0", |
109 | 107 | "style-loader": "^0.23.1",
|
110 | 108 | "stylelint": "^10.1.0",
|
| 109 | + "stylelint-order": "^3.0.0", |
| 110 | + "thread-loader": "^2.1.2", |
111 | 111 | "typescript": "^3.4.5",
|
112 | 112 | "uglifyjs-webpack-plugin": "^2.1.0",
|
113 |
| - "wait-on": "^3.2.0", |
114 |
| - "webpack": "^4.35.0", |
115 |
| - "webpack-cli": "^3.3.5", |
| 113 | + "webpack": "^4.38.0", |
| 114 | + "webpack-cli": "^3.3.6", |
116 | 115 | "webpack-dev-server": "^3.3.1",
|
117 | 116 | "webpack-merge": "^4.2.1"
|
118 | 117 | },
|
119 | 118 | "resolutions": {
|
120 | 119 | "react-test-renderer": "^16.8.6"
|
121 | 120 | },
|
122 | 121 | "nyc": {
|
| 122 | + "cache": false, |
| 123 | + "check-coverage": true, |
123 | 124 | "require": [
|
124 | 125 | "@babel/register",
|
125 | 126 | "./setup/setup.jsx"
|
|
129 | 130 | "reporter": [
|
130 | 131 | "text",
|
131 | 132 | "lcov",
|
132 |
| - "html" |
| 133 | + "text-summary" |
133 | 134 | ],
|
134 | 135 | "extension": [
|
135 | 136 | ".jsx",
|
|
138 | 139 | ".es6"
|
139 | 140 | ],
|
140 | 141 | "exclude": [
|
141 |
| - "**/*.spec.jsx", |
142 |
| - "**/*.spec.tsx", |
143 |
| - "**/*.spec.ts" |
| 142 | + "packages/**/*.spec.jsx", |
| 143 | + "packages/**/*.spec.tsx", |
| 144 | + "packages/**/*.spec.ts" |
144 | 145 | ]
|
145 | 146 | }
|
146 | 147 | }
|
0 commit comments