|
11 | 11 | "url": "git+https://github.com/navikt/fpsak-frontend.git"
|
12 | 12 | },
|
13 | 13 | "scripts": {
|
14 |
| - "test": "mochapack --webpack-config webpack/webpack.test.js \"packages/**/*.spec.jsx\"", |
15 |
| - "test:watch": "mochapack --watch --webpack-config webpack/webpack.test.watch.js \"packages/**/*.spec.jsx\"", |
16 |
| - "test:coverage": "nyc mochapack --webpack-config webpack/webpack.test.coverage.js \"packages/**/src/**/*.jsx\"", |
| 14 | + "test": "mochapack --webpack-config webpack/webpack.test.js \"packages/**/*.spec.*\"", |
| 15 | + "test:watch": "mochapack --watch --webpack-config webpack/webpack.test.watch.js \"packages/**/*.spec.*\"", |
| 16 | + "test:coverage": "nyc mochapack --webpack-config webpack/webpack.test.coverage.js \"packages/**/*.spec.*\"", |
17 | 17 | "dev": "cross-env NODE_ENV=development node webpack/webpack.dev.server.js --config webpack/webpack.dev.js",
|
18 | 18 | "build": "cross-env NODE_ENV=production webpack --no-progress --colors --config webpack/webpack.prod.js",
|
19 | 19 | "postinstall": "yarn run build && yarn test && yarn run less:lint",
|
20 | 20 | "lerna": "lerna",
|
21 | 21 | "lerna:publish": "(lerna updated && lerna publish --cd-version patch --yes -m \"publish [ci skip]\") || echo \"Ingen endringer avslutter OK\"",
|
22 | 22 | "less:lint": "stylelint \"packages/**/*.less\"",
|
| 23 | + "ts-check": "tsc --pretty", |
23 | 24 | "doc": "react-asciidoc-generator ./packages/ -o ../../docs/generated/react.adoc --handlebar-template src/docs/asciidoc-template.handlebars",
|
24 | 25 | "docker:build": "docker build . -t fpfront -f ./docker/Dockerfile --build-arg HTTP_PROXY=$HTTP_PROXY --build-arg HTTPS_PROXY=$HTTP_PROXY",
|
25 | 26 | "docker:start": "yarn docker:stop; yarn docker:build; docker run -d --env-file=./docker/.env --name fpfront -p 443:9000 fpfront",
|
|
49 | 50 | "@babel/plugin-proposal-class-properties": "^7.3.4",
|
50 | 51 | "@babel/plugin-transform-runtime": "^7.3.4",
|
51 | 52 | "@babel/preset-env": "^7.3.4",
|
52 |
| - "@babel/preset-flow": "^7.0.0", |
53 | 53 | "@babel/preset-react": "^7.0.0",
|
| 54 | + "@babel/preset-typescript": "^7.3.3", |
54 | 55 | "@babel/register": "^7.0.0",
|
55 | 56 | "@commercetools/enzyme-extensions": "^4.0.0",
|
| 57 | + "@types/chai": "^4.1.7", |
| 58 | + "@types/classnames": "^2.2.7", |
| 59 | + "@types/enzyme": "^3.9.0", |
| 60 | + "@types/enzyme-adapter-react-16": "^1.0.5", |
| 61 | + "@types/history": "^4.7.2", |
| 62 | + "@types/mocha": "^5.2.6", |
| 63 | + "@types/prop-types": "^15.7.0", |
| 64 | + "@types/react": "^16.8.7", |
| 65 | + "@types/react-collapse": "^4.0.2", |
| 66 | + "@types/react-dom": "^16.8.2", |
| 67 | + "@types/react-intl": "^2.3.17", |
| 68 | + "@types/react-redux": "^7.0.5", |
| 69 | + "@types/react-router-dom": "^4.3.1", |
| 70 | + "@types/sinon": "^7.0.10", |
| 71 | + "@typescript-eslint/eslint-plugin": "^1.4.2", |
| 72 | + "@typescript-eslint/parser": "^1.4.2", |
56 | 73 | "axios-mock-adapter": "^1.16.0",
|
57 | 74 | "babel-eslint": "^10.0.1",
|
58 | 75 | "babel-loader": "^8.0.5",
|
|
66 | 83 | "eslint-config-import": "^0.13.0",
|
67 | 84 | "eslint-import-resolver-webpack": "^0.11.0",
|
68 | 85 | "eslint-loader": "^2.1.2",
|
69 |
| - "eslint-plugin-flowtype": "^3.4.2", |
70 | 86 | "eslint-plugin-import": "^2.16.0",
|
71 | 87 | "eslint-plugin-jsx-a11y": "^6.2.1",
|
72 | 88 | "eslint-plugin-react": "^7.12.4",
|
73 | 89 | "file-loader": "^3.0.1",
|
74 |
| - "flow-bin": "^0.94.0", |
75 |
| - "flow-typed": "^2.5.1", |
76 | 90 | "happypack": "^5.0.1",
|
77 | 91 | "html-webpack-plugin": "^3.2.0",
|
78 | 92 | "ignore-styles": "^5.0.1",
|
|
94 | 108 | "sinon-chai": "^3.2.0",
|
95 | 109 | "style-loader": "^0.23.1",
|
96 | 110 | "stylelint": "^9.10.1",
|
| 111 | + "typescript": "^3.3.3333", |
97 | 112 | "uglifyjs-webpack-plugin": "^2.1.0",
|
98 | 113 | "wait-on": "^3.2.0",
|
99 | 114 | "webpack": "^4.29.6",
|
|
115 | 130 | ],
|
116 | 131 | "extension": [
|
117 | 132 | ".jsx",
|
| 133 | + ".tsx", |
| 134 | + ".ts", |
118 | 135 | ".es6"
|
119 | 136 | ],
|
120 | 137 | "exclude": [
|
121 |
| - "**/*.spec.jsx" |
| 138 | + "**/*.spec.jsx", |
| 139 | + "**/*.spec.tsx", |
| 140 | + "**/*.spec.ts" |
122 | 141 | ]
|
123 | 142 | }
|
124 | 143 | }
|
0 commit comments