Skip to content

Commit

Permalink
Added @babel/cli that was missing, added scripts for building the fil…
Browse files Browse the repository at this point in the history
…es to upload to Heroku, and modified the folders to better organize the code.
  • Loading branch information
israelmuca committed Mar 4, 2019
1 parent 75b1792 commit fb07918
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
node_modules/
.env
.env
dist
88 changes: 88 additions & 0 deletions package-lock.json

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

11 changes: 8 additions & 3 deletions package.json
Expand Up @@ -4,8 +4,11 @@
"description": "Small example for a i18n in node tutorial.",
"main": "server.js",
"scripts": {
"start": "nodemon --exec babel-node server.js",
"test": "echo \"Error: no test specified\" && exit 1"
"start": "nodemon --exec babel-node ./src/server.js",
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rm -rf dist && mkdir dist",
"compile": "babel -d ./dist ./src",
"build": "npm run clean && npm run compile"
},
"repository": {
"type": "git",
Expand All @@ -30,9 +33,11 @@
"express": "^4.16.4",
"express-locale": "^1.0.5",
"express-validator": "^5.3.1",
"node-polyglot": "^2.3.0"
"node-polyglot": "^2.3.0",
"object.fromentries": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/node": "^7.2.2",
"@babel/preset-env": "^7.3.1",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fb07918

Please sign in to comment.