-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add build step to project * add dev script * instruct to use DATABASE_URL * put morgan in dependencies * inspired by https://github.com/babel/example-node-server/blob/master/package.json
- Loading branch information
1 parent
ad11893
commit 1d81cfa
Showing
4 changed files
with
75 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
logfile | ||
|
||
.env | ||
|
||
node_modules/ | ||
dist/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,10 @@ | |
"node": "10.11.0" | ||
}, | ||
"scripts": { | ||
"start": "nodemon --exec babel-node src/index.js", | ||
"start": "npm run build && node lib/index.js", | ||
"build": "babel src --out-dir dist", | ||
"dev": "nodemon --exec babel-node src/index.js", | ||
"heroku-postbuild": "npm run build", | ||
"test:run-server": "TEST_DATABASE=mytestdatabase npm start", | ||
"test:execute-test": "mocha --require @babel/register 'src/**/*.spec.js'", | ||
"test": "echo \"No test specified\" && exit 0" | ||
|
@@ -16,15 +19,15 @@ | |
"author": "Robin Wieruch <[email protected]> (https://www.robinwieruch.de)", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.1.6", | ||
"@babel/node": "^7.0.0", | ||
"@babel/preset-env": "^7.1.6", | ||
"@babel/register": "^7.0.0", | ||
"axios": "^0.18.0", | ||
"chai": "^4.2.0", | ||
"mocha": "^5.2.0", | ||
"nodemon": "^1.18.7", | ||
"morgan": "^1.9.1" | ||
"nodemon": "^1.18.7" | ||
}, | ||
"dependencies": { | ||
"apollo-server": "^2.2.3", | ||
|
@@ -38,6 +41,7 @@ | |
"graphql-iso-date": "^3.6.1", | ||
"graphql-resolvers": "^0.2.2", | ||
"jsonwebtoken": "^8.4.0", | ||
"morgan": "^1.9.1", | ||
"pg": "^7.6.1", | ||
"sequelize": "^4.41.2", | ||
"uuid": "^3.3.2" | ||
|