Comparing version 1.0.11 to 1.1.0
{ | ||
"name": "nyg-jam3", | ||
"version": "1.0.11", | ||
"version": "1.1.0", | ||
"description": "Jam3 project scaffold generator based on nyg", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"development": { | ||
"entry": "./index.js", | ||
"entry": "./lib/index.js", | ||
"bundle": "bundle.js", | ||
"app": "./app/", | ||
"static": "./static/", | ||
"raw": "./raw-assets/", | ||
"output": "./.tmp/", | ||
"output": "./build/", | ||
"style": "./lib/style/main.{{css}}", | ||
@@ -12,5 +12,5 @@ "ASSET_PATH": "./assets/" | ||
"production": { | ||
"entry": "./index.js", | ||
"entry": "./lib/index.js", | ||
"bundle": "bundle.js", | ||
"app": "./app/", | ||
"static": "./static/", | ||
"raw": "./raw-assets/", | ||
@@ -17,0 +17,0 @@ "output": "./release/", |
@@ -22,3 +22,3 @@ { | ||
"lowercase": "node scripts/lowercase.js", | ||
"lint": "xo index.js lib/**/*.js" | ||
"lint": "xo lib/**/*.js" | ||
}, | ||
@@ -25,0 +25,0 @@ "license": "ISC", |
@@ -21,11 +21,9 @@ 'use strict'; | ||
}); | ||
if (config.NODE_ENV==='production') { | ||
glob(path.join(config.app,'**/*'),{dot: true, nodir: true},function(err,files) { | ||
if (!err) { | ||
files.forEach(copyFile.bind(null,path.join(config.output),config.app)); | ||
} else { | ||
console.log(err); | ||
} | ||
}); | ||
} | ||
glob(path.join(config.static,'**/*'),{dot: true, nodir: true},function(err,files) { | ||
if (!err) { | ||
files.forEach(copyFile.bind(null,path.join(config.output),config.static)); | ||
} else { | ||
console.log(err); | ||
} | ||
}); | ||
} | ||
@@ -32,0 +30,0 @@ } |
@@ -14,3 +14,3 @@ 'use strict'; | ||
open: true, | ||
dir: ['./app','./.tmp'], | ||
dir: config.output, | ||
stream: process.stdout{{if pushState}}, | ||
@@ -17,0 +17,0 @@ pushstate: true{{/if}} |
Sorry, the diff of this file is not supported yet
96672
537