Skip to content

Commit 7d5995f

Browse files
committed
migration
1 parent 4fd56aa commit 7d5995f

File tree

6 files changed

+191
-2
lines changed

6 files changed

+191
-2
lines changed

front/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10
1+
12

front/.yarnclean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@types/react-native

front/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ module.exports = {
2323
},
2424
coverageDirectory: './coverage/',
2525
collectCoverage: true,
26-
};
26+
};

front/package.json

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
{
2+
"name": "react-bootstrap-webpack-starter-front",
3+
"version": "9.0.0",
4+
"description": "react js + bootstrap + webpack starter",
5+
"author": "Erwan DATIN (MacKentoch)",
6+
"license": "MIT",
7+
"main": "src/index.js",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/MacKentoch/react-bootstrap-webpack-starter.git"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/MacKentoch/react-bootstrap-webpack-starter/issues"
14+
},
15+
"engines": {
16+
"node": ">=12",
17+
"npm": ">=6.10.0",
18+
"yarn": ">=1.19.0"
19+
},
20+
"scripts": {
21+
"test": "cross-env NODE_ENV=test jest",
22+
"test:coverage": "cross-env NODE_ENV=test jest --coverage",
23+
"clean-docs": "rimraf ../docs/*",
24+
"predev": "npm run clean-docs",
25+
"dev": "cross-env NODE_ENV=dev webpack --config webpack.dev.config.js",
26+
"postdev": "react-snap",
27+
"preprod": "npm run clean-docs",
28+
"prod": "cross-env NODE_ENV=production webpack -p --config webpack.production.config.js",
29+
"postprod": "react-snap",
30+
"analyze": "rimraf docs/assets && cross-env NODE_ENV=production webpack -p --config webpack.analyze.config.js",
31+
"prestart": "npm run clean-docs",
32+
"start": "cross-env NODE_ENV=dev webpack-dev-server --config ./webpack.hot.reload.config.js"
33+
},
34+
"reactSnap": {
35+
"source": "docs"
36+
},
37+
"keywords": [
38+
"react",
39+
"react 16",
40+
"react 16.4",
41+
"context",
42+
"context api",
43+
"Typescript",
44+
"bootstrap",
45+
"starter",
46+
"webpack",
47+
"hot-reload",
48+
"webpack 4",
49+
"webpack",
50+
"react-router",
51+
"react-router 4",
52+
"react-router v4"
53+
],
54+
"devDependencies": {
55+
"@babel/cli": "^7.1.5",
56+
"@babel/core": "^7.1.6",
57+
"@babel/plugin-proposal-class-properties": "^7.1.0",
58+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
59+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
60+
"@babel/plugin-transform-async-to-generator": "^7.1.0",
61+
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
62+
"@babel/plugin-transform-regenerator": "^7.0.0",
63+
"@babel/preset-env": "^7.1.6",
64+
"@babel/preset-flow": "^7.0.0",
65+
"@babel/preset-react": "^7.0.0",
66+
"@babel/register": "^7.0.0",
67+
"@types/axios": "^0.14.0",
68+
"@types/chai": "^4.0.4",
69+
"@types/classnames": "^2.2.6",
70+
"@types/date-fns": "^2.6.0",
71+
"@types/enzyme": "^3.1.10",
72+
"@types/history": "^4.7.2",
73+
"@types/jest": "^22.2.3",
74+
"@types/jquery": "^3.2.16",
75+
"@types/js-base64": "^2.3.1",
76+
"@types/jwt-decode": "^2.2.1",
77+
"@types/react": "^16.7.6",
78+
"@types/react-dom": "^16.0.9",
79+
"@types/react-motion": "^0.0.27",
80+
"@types/react-router": "^5.1.3",
81+
"@types/react-router-bootstrap": "^0.24.5",
82+
"@types/react-router-dom": "^5.1.3",
83+
"@types/reactstrap": "^6.4.3",
84+
"@types/redux": "^3.6.0",
85+
"@types/styled-components": "^4.4.0",
86+
"babel-core": "^7.0.0-bridge.0",
87+
"babel-eslint": "^10.0.1",
88+
"babel-jest": "^23.6.0",
89+
"babel-loader": "^8.0.4",
90+
"babel-plugin-transform-remove-console": "^6.9.4",
91+
"clean-webpack-plugin": "^0.1.19",
92+
"compression-webpack-plugin": "^1.1.11",
93+
"cross-env": "^5.1.4",
94+
"css-loader": "^0.28.11",
95+
"enzyme": "^3.3.0",
96+
"enzyme-adapter-react-16": "^1.1.1",
97+
"enzyme-to-json": "^3.3.4",
98+
"eslint": "^5.9.0",
99+
"eslint-plugin-flowtype": "^3.2.0",
100+
"eslint-plugin-react": "^7.11.1",
101+
"expose-loader": "^0.7.3",
102+
"extract-text-webpack-plugin": "^4.0.0-beta.0",
103+
"fetch-mock": "^6.5.2",
104+
"file-loader": "^1.1.11",
105+
"html-webpack-plugin": "^3.2.0",
106+
"identity-obj-proxy": "^3.0.0",
107+
"jest": "^23.6.0",
108+
"jest-localstorage-mock": "^2.4.0",
109+
"json-loader": "^0.5.7",
110+
"mini-css-extract-plugin": "^0.4.0",
111+
"modernizr-webpack-plugin": "^1.0.7",
112+
"nodemon": "^1.17.3",
113+
"optimize-css-assets-webpack-plugin": "^4.0.1",
114+
"prettier": "^1.19.1",
115+
"progress-bar-webpack-plugin": "^1.11.0",
116+
"react-hot-loader": "^4.12.15",
117+
"react-snap": "^1.20.0",
118+
"rimraf": "^2.6.2",
119+
"sass-loader": "^7.0.1",
120+
"sinon": "^2.3.1",
121+
"style-loader": "^0.21.0",
122+
"typescript": "^3.7.2",
123+
"url-loader": "^1.0.1",
124+
"webpack": "^4.6.0",
125+
"webpack-bundle-analyzer": "^2.11.1",
126+
"webpack-cli": "^2.1.2",
127+
"webpack-dev-middleware": "^3.1.3",
128+
"webpack-dev-server": "^3.1.3",
129+
"webpack-hot-middleware": "^2.22.1",
130+
"webpack-node-externals": "^1.7.2",
131+
"workbox-webpack-plugin": "^3.2.0"
132+
},
133+
"dependencies": {
134+
"@babel/polyfill": "^7.6.0",
135+
"@hot-loader/react-dom": "^16.10.2",
136+
"@types/recompose": "^0.30.7",
137+
"animate.css": "^3.5.2",
138+
"axios": "^0.19.0",
139+
"babel-polyfill": "^6.26.0",
140+
"bootstrap": "^4.3.1",
141+
"classnames": "^2.2.6",
142+
"compression": "^1.7.2",
143+
"core-js": "^3.6.0",
144+
"date-fns": "^2.6.0",
145+
"font-awesome": "^4.7.0",
146+
"helmet": "^3.21.2",
147+
"history": "^4.10.1",
148+
"jquery": "^3.2.1",
149+
"js-base64": "^2.5.1",
150+
"jwt-decode": "^2.2.0",
151+
"loadable-components": "^2.2.3",
152+
"lodash.debounce": "^4.0.8",
153+
"lodash.throttle": "^4.1.1",
154+
"modernizr": "^3.8.0",
155+
"popper.js": "^1.16.0",
156+
"prettier-eslint": "^8.8.2",
157+
"react": "^16.11.0",
158+
"react-bootstrap": "^1.0.0-beta.14",
159+
"react-dom": "^16.11.0",
160+
"react-helmet": "^5.2.1",
161+
"react-motion": "^0.5.2",
162+
"react-overdrive": "^0.0.10",
163+
"react-router": "^5.1.2",
164+
"react-router-bootstrap": "^0.24.4",
165+
"react-router-dom": "^5.1.2",
166+
"reactstrap": "^8.1.1",
167+
"recompose": "^0.30.0",
168+
"smoothscroll-polyfill": "^0.4.4",
169+
"styled-components": "^4.4.1"
170+
}
171+
}

front/test/__mocks__/fileMock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'test-file-stub';

front/test/setupTests.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// to avoid: Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. http://fb.me/react-polyfills
2+
// @ts-ignore
3+
require('raf/polyfill');
4+
// @ts-ignore
5+
require('jest-localstorage-mock');
6+
// @ts-ignore
7+
require('core-js/stable');
8+
// @ts-ignore
9+
require('regenerator-runtime/runtime');
10+
// @ts-ignore
11+
const Enzyme = require('enzyme');
12+
// @ts-ignore
13+
const EnzymeAdapter = require('enzyme-adapter-react-16');
14+
15+
// Setup enzyme's react adapter
16+
Enzyme.configure({ adapter: new EnzymeAdapter() });

0 commit comments

Comments
 (0)