Skip to content

Commit

Permalink
Add package.json to root directory with engine and script for Heroku …
Browse files Browse the repository at this point in the history
…deployment (based on yarnpkg/yarn#711)
  • Loading branch information
goncalog committed Sep 23, 2020
1 parent eff98e4 commit 4a03ade
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
6 changes: 1 addition & 5 deletions fully-electric-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"name": "fully-electric-backend",
"version": "0.0.0",
"engines": {
"node": "14.7.0"
},
"private": true,
"scripts": {
"start": "node ./bin/www",
"devstart": "nodemon ./bin/www",
"serverstart": "DEBUG=fully-electric-backend:* npm run devstart",
"test": "mocha",
"heroku-postbuild": "cd .. && cd fully-electric-frontend && npm install --only=dev && npm install && npm run build"
"test": "mocha"
},
"dependencies": {
"async": "^3.2.0",
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "fully-electric",
"version": "0.0.0",
"engines": {
"node": "14.7.0"
},
"private": true,
"scripts": {
"start": "node ./fully-electric-backend/bin/www",
"heroku-postbuild": "cd fully-electric-frontend && npm install --only=dev && npm install && npm run build"
},
"dependencies": {}
}

0 comments on commit 4a03ade

Please sign in to comment.