Commit 2b204ae9 authored by Patricio Bruna's avatar Patricio Bruna

Merge pull request #99 from ZBoxApp/deploy_fix

deploy npm target
parents 12560b80 6f1d993e
...@@ -58,3 +58,6 @@ sftp-config.json ...@@ -58,3 +58,6 @@ sftp-config.json
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea .idea
.vagrant
vagrant
Vagrantfile
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
"scripts": { "scripts": {
"check": "eslint --ext \".jsx\" --ignore-pattern node_modules --quiet .", "check": "eslint --ext \".jsx\" --ignore-pattern node_modules --quiet .",
"build": "NODE_ENV=production webpack", "build": "NODE_ENV=production webpack",
"deploy": "NODE_ENV=production webpack",
"run": "webpack --progress --watch", "run": "webpack --progress --watch",
"run-fullmap": "webpack --progress --watch", "run-fullmap": "webpack --progress --watch",
"companies-service": "babel-node companies-service.js", "companies-service": "babel-node companies-service.js",
......
...@@ -22,7 +22,7 @@ const hash = timestamp.slice(-6, timestamp.length); ...@@ -22,7 +22,7 @@ const hash = timestamp.slice(-6, timestamp.length);
var DEV = false; var DEV = false;
var FULLMAP = false; var FULLMAP = false;
if (NPM_TARGET === 'run' || NPM_TARGET === 'run-fullmap') { if (NPM_TARGET === 'run' || NPM_TARGET === 'run-fullmap' || NPM_TARGET === 'deploy') {
DEV = true; DEV = true;
if (NPM_TARGET === 'run-fullmap') { if (NPM_TARGET === 'run-fullmap') {
FULLMAP = true; FULLMAP = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment