I would like to run json-server
and then test protractor
on Windows and Linux. I currently have two configurations: one for Linux and one for Windows. Relevant part of packages.json
:
"scripts": {
"start": "json-server --watch testdb.json --static ./src",
"e2e-win": "npm run protractor",
"e2e-linux": "npm run protractor",
"pree2e-win": "start /b npm start",
"pree2e-linux": "npm start &",
...
}
json-server
starts as a background process and then runs protractor
. Is there any way to do this in OS agnostic mode? I just want one goal e2e
.
source
share