Add API models, mock backend, more tests

This commit is contained in:
Jan Tuomi
2018-06-20 14:51:12 +03:00
parent 4ba5b368a6
commit 9e2403ba8a
15 changed files with 686 additions and 1923 deletions
+7 -2
View File
@@ -25,8 +25,9 @@
"start-dev": "webpack-dev-server --config=configs/webpack/dev.js",
"serve": "node express.js",
"start-prod": "npm run build && npm run serve",
"mock-backend": "json-server --watch db.json -p 1234",
"test": "npm-run-all lint test:e2e",
"test:e2e": "npm-run-all -s build -p -r serve test:e2e:run",
"test:e2e": "npm-run-all -s build -p -r mock-backend serve test:e2e:run",
"test:e2e:run": "testcafe -S -s 'tests/testcafe/screenshots' --app-init-delay 2000 chrome tests/testcafe",
"plop": "plop"
},
@@ -51,6 +52,7 @@
"html-webpack-plugin": "^3.2.0",
"husky": "^1.0.0-rc.9",
"image-webpack-loader": "^4.3.0",
"json-server": "^0.14.0",
"node-sass": "^4.9.0",
"npm-run-all": "^4.1.3",
"plop": "^2.0.0",
@@ -76,8 +78,11 @@
"webpack-merge": "^4.1.2"
},
"dependencies": {
"axios": "^0.18.0",
"dotenv-webpack": "^1.5.7",
"mobx": "^5.0.3",
"mobx-react": "^5.2.3"
"mobx-react": "^5.2.3",
"normalize.css": "^8.0.0"
},
"postcss": {}
}