Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
fix: start command that install packages and loads .env file #62
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielrtakeda committed Apr 25, 2018
1 parent 4a50079 commit e440678
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PORT=3001
REACT_APP_API_URL='http://api.staging.bonde.org'
REACT_APP_SIGNING_URL_ENDPOINT='/uploads'
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"private": true,
"scripts": {
"start": "yarn install && node -r dotenv/config ./node_modules/.bin/lerna run start --scope slate-editor-example --parallel",
"boot": "lerna bootstrap",
"test": "lerna run test",
"prepublish": "rimraf packages/**/dist",
Expand All @@ -13,6 +14,7 @@
"packages/*"
],
"devDependencies": {
"dotenv": "^5.0.1",
"lerna": "^2.7.1",
"rimraf": "^2.6.2"
}
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2647,6 +2647,10 @@ dotenv@4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-4.0.0.tgz#864ef1379aced55ce6f95debecdce179f7a0cd1d"

dotenv@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-5.0.1.tgz#a5317459bd3d79ab88cff6e44057a6a3fbb1fcef"

duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
Expand Down

0 comments on commit e440678

Please sign in to comment.