Skip to content

Commit 71939b2

Browse files
committed
update testing example
1 parent 1c58896 commit 71939b2

File tree

103 files changed

+1032
-859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1032
-859
lines changed

00-start/.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

00-start/.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

00-start/.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#1accff",
4+
"activityBar.foreground": "#15202b",
5+
"activityBar.inactiveForeground": "#15202b99",
6+
"activityBarBadge.background": "#df00ad",
7+
"activityBarBadge.foreground": "#e7e7e7",
8+
"titleBar.activeBackground": "#00b3e6",
9+
"titleBar.inactiveBackground": "#00b3e699",
10+
"titleBar.activeForeground": "#15202b",
11+
"titleBar.inactiveForeground": "#15202b99",
12+
"statusBar.background": "#00b3e6",
13+
"statusBarItem.hoverBackground": "#008bb3",
14+
"statusBar.foreground": "#15202b"
15+
},
16+
"peacock.color": "#00b3e6"
17+
}

00-start/config/webpack/base.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

00-start/config/webpack/dev.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

00-start/config/webpack/helpers.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

00-start/config/webpack/prod.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

00-start/package.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name": "react-testing-excercise",
2+
"name": "reactlabsessions",
33
"version": "1.0.0",
4-
"description": "Excercise for react-test-by-example",
4+
"description": "In this sample we setup the basic plumbing to \"build\" our project and launch it in a dev server.",
55
"main": "index.js",
66
"scripts": {
7-
"start": "webpack-dev-server --config ./config/webpack/dev.js",
8-
"clean": "rimraf dist",
9-
"build": "npm run clean && webpack --config ./config/webpack/prod.js"
10-
},
11-
"author": "Lemoncode",
12-
"license": "MIT",
13-
"dependencies": {
14-
"@material-ui/core": "^4.2.1",
15-
"@material-ui/icons": "^4.2.1",
16-
"axios": "^0.19.0",
17-
"connected-react-router": "^6.5.2",
18-
"react": "^16.8.6",
19-
"react-dom": "^16.8.6",
20-
"react-redux": "^7.1.0",
21-
"react-router-dom": "^5.0.1",
22-
"redux-saga": "^1.0.5",
23-
"regenerator-runtime": "^0.13.3",
24-
"reselect": "^4.0.0"
7+
"start": "run-p -l start:dev start:mock-server",
8+
"start:dev": "webpack-dev-server",
9+
"start:mock-server": "cd ./server && npm start",
10+
"postinstall": "cd ./server && npm i"
2511
},
12+
"author": "",
13+
"license": "ISC",
2614
"devDependencies": {
27-
"@babel/cli": "^7.4.4",
28-
"@babel/core": "^7.4.5",
29-
"@babel/preset-env": "^7.4.5",
30-
"@types/react": "^16.8.19",
31-
"@types/react-dom": "^16.8.4",
32-
"@types/react-redux": "^7.1.1",
33-
"@types/react-router-dom": "^4.3.4",
15+
"@babel/cli": "^7.8.4",
16+
"@babel/core": "^7.8.4",
17+
"@babel/preset-env": "^7.8.4",
18+
"@types/react": "^16.9.19",
19+
"@types/react-dom": "^16.9.5",
20+
"@types/react-router-dom": "^5.1.3",
3421
"awesome-typescript-loader": "^5.2.1",
22+
"file-loader": "^5.0.2",
3523
"html-webpack-plugin": "^3.2.0",
36-
"rimraf": "^2.6.3",
37-
"typescript": "^3.5.2",
38-
"webpack": "^4.32.2",
39-
"webpack-cli": "^3.3.2",
40-
"webpack-dev-server": "^3.5.0",
41-
"webpack-merge": "^4.2.1"
24+
"npm-run-all": "^4.1.5",
25+
"typescript": "^3.7.5",
26+
"url-loader": "^3.0.0",
27+
"webpack": "^4.41.6",
28+
"webpack-cli": "^3.3.11",
29+
"webpack-dev-server": "^3.10.3"
30+
},
31+
"dependencies": {
32+
"@lemoncode/fonk": "^1.3.0",
33+
"@lemoncode/fonk-final-form": "^2.3.1",
34+
"@material-ui/core": "^4.9.2",
35+
"@material-ui/icons": "^4.9.1",
36+
"axios": "^0.19.2",
37+
"final-form": "^4.18.7",
38+
"react": "^16.12.0",
39+
"react-dom": "^16.12.0",
40+
"react-final-form": "^6.3.5",
41+
"react-router-dom": "^5.1.2"
4242
}
4343
}

00-start/server/config/routes.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"/api/*": "/$1"
3+
}

0 commit comments

Comments
 (0)