Comparing version 0.1.0 to 0.1.1
@@ -7,3 +7,3 @@ /* | ||
* | ||
*/ | ||
*/ | ||
var async = require('utile').async, | ||
@@ -91,3 +91,11 @@ utile = require('utile'), | ||
var merged = utile.mixin({}, packages[0], packages[1]); | ||
// Add env variable | ||
if (penv.env !== "base") { | ||
merged.env = { | ||
"NODE_ENV": penv.env | ||
}; | ||
} | ||
fs.writeFile(penv.pkgFile, JSON.stringify(merged, null, 2), next); | ||
} | ||
} |
{ | ||
"name": "penv", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A package.json enviroment manager", | ||
@@ -36,2 +36,2 @@ "author": "Julian Duque <julianduquej@gmail.com>", | ||
} | ||
} | ||
} |
@@ -65,2 +65,5 @@ # penv | ||
"node": "0.8.x" | ||
}, | ||
"env": { | ||
"NODE_ENV": "staging" | ||
} | ||
@@ -101,2 +104,2 @@ } | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
THE SOFTWARE. |
@@ -57,3 +57,6 @@ { | ||
"www.staging.myawesomedomain.com" | ||
] | ||
} | ||
], | ||
"env": { | ||
"NODE_ENV": "staging" | ||
} | ||
} |
@@ -7,9 +7,9 @@ /* | ||
* | ||
*/ | ||
*/ | ||
var should = require('chai').should(), | ||
assert = require('chai').assert, | ||
rimraf = require('rimraf'), | ||
assert = require('chai').assert, | ||
rimraf = require('rimraf'), | ||
penv = require('../lib/penv'), | ||
path = require('path'), | ||
fs = require('fs'); | ||
path = require('path'), | ||
fs = require('fs'); | ||
@@ -56,6 +56,6 @@ // | ||
function checkFixtureMatch(str, fileName, matchName) { | ||
function checkFixtureMatch(str, fileName, matchFile) { | ||
it(str, function () { | ||
var file = fs.readFileSync(path.join(testRoot, fileName), 'utf8'); | ||
assert.deepEqual(JSON.parse(matchName), JSON.parse(file)); | ||
assert.deepEqual(JSON.parse(matchFile), JSON.parse(file)); | ||
}); | ||
@@ -80,2 +80,2 @@ } | ||
}); | ||
}); | ||
}); |
{ | ||
"prod": { | ||
"subdomain": "awesomeapp", | ||
"domains": [ | ||
"myawesomedomain.com", | ||
"www.myawesomedomain.com" | ||
] | ||
}, | ||
"staging": { | ||
"subdomain": "staging-awesomeapp", | ||
"domains": [ | ||
"staging.myawesomedomain.com", | ||
"www.staging.myawesomedomain.com" | ||
] | ||
} | ||
} | ||
"prod": { | ||
"subdomain": "awesomeapp", | ||
"domains": [ | ||
"myawesomedomain.com", | ||
"www.myawesomedomain.com" | ||
] | ||
}, | ||
"staging": { | ||
"subdomain": "staging-awesomeapp", | ||
"domains": [ | ||
"staging.myawesomedomain.com", | ||
"www.staging.myawesomedomain.com" | ||
] | ||
} | ||
} |
{ | ||
"devDependencies": { | ||
"vows": "0.5.x", | ||
"request": "2.1.x" | ||
"keywords": [ | ||
"cli", | ||
"http", | ||
"server" | ||
], | ||
"preferGlobal": true, | ||
"scripts": { | ||
"start": "node ./bin/http-server", | ||
"test": "vows --spec --isolate", | ||
"predeploy": "echo This will be run before deploying the app", | ||
"postdeploy": "echo This will be run after deploying the app" | ||
}, | ||
"bin": { | ||
"http-server": "./bin/http-server" | ||
}, | ||
"analyze": false, | ||
"dependencies": { | ||
@@ -18,22 +22,11 @@ "colors": "*", | ||
}, | ||
"name": "http-server", | ||
"preferGlobal": true, | ||
"engines": { | ||
"node": ">=0.6" | ||
"author": "Nodejitsu <support@nodejitsu.com>", | ||
"bin": { | ||
"http-server": "./bin/http-server" | ||
}, | ||
"version": "0.3.0", | ||
"scripts": { | ||
"start": "node ./bin/http-server", | ||
"test": "vows --spec --isolate", | ||
"predeploy": "echo This will be run before deploying the app", | ||
"postdeploy": "echo This will be run after deploying the app" | ||
"devDependencies": { | ||
"vows": "0.5.x", | ||
"request": "2.1.x" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Marak Squires", | ||
"email": "marak@nodejitsu.com" | ||
} | ||
], | ||
"author": "Nodejitsu <support@nodejitsu.com>", | ||
"license": "MIT", | ||
"description": "a simple zero-configuration command-line http server", | ||
@@ -48,8 +41,15 @@ "repository": { | ||
], | ||
"name": "http-server", | ||
"main": "./lib/http-server", | ||
"keywords": [ | ||
"cli", | ||
"http", | ||
"server" | ||
"analyze": false, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=0.6" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Marak Squires", | ||
"email": "marak@nodejitsu.com" | ||
} | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12019
291
104
0