conf update for e2e tests

This commit is contained in:
SamR1 2018-01-13 21:20:32 +01:00
parent 41abdc13c4
commit 2a83d7e105
2 changed files with 34 additions and 6 deletions

View File

@ -16,13 +16,10 @@ ENV REACT_APP_USERS_SERVICE_URL $REACT_APP_USERS_SERVICE_URL
# install and cache app dependencies # install and cache app dependencies
ADD package.json /usr/src/app/package.json ADD package.json /usr/src/app/package.json
RUN npm install --silent RUN npm install --silent
RUN npm install pushstate-server -g --silent RUN npm install react-scripts -g
# add app # add app
ADD . /usr/src/app/ ADD . /usr/src/app/
# build react app
RUN npm run build
# start app # start app
CMD ["pushstate-server", "build"] CMD ["npm", "start"]

View File

@ -1,4 +1,35 @@
{ {
"name": "mpwo_client", "name": "mpwo_client",
"version": "0.1.0" "version": "0.1.0",
"private": true,
"dependencies": {
"date-fns": "^1.29.0",
"history": "^4.7.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-helmet": "^5.2.0",
"react-key-index": "^0.1.1",
"react-redux": "^5.0.6",
"react-router-dom": "^4.2.2",
"react-router-redux": "^5.0.0-alpha.9",
"react-scripts": "1.0.17",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
},
"scripts": {
"start": "cd mpwo_client && react-scripts start",
"build": "cd mpwo_client && react-scripts build",
"test": "cd mpwo_client && testcafe firefox e2e",
"eject": "cd mpwo_client && react-scripts eject",
"lint": "cd mpwo_client && eslint --cache --ext .jsx --ext .js src"
},
"devDependencies": {
"babel-eslint": "^8.0.3",
"eslint": "^4.13.1",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-react": "^7.5.1",
"eslint-plugin-testcafe": "^0.2.1",
"randomstring": "^1.1.5",
"testcafe": "^0.18.6"
}
} }