Comparing version 0.1.8 to 0.2.0
@@ -31,7 +31,7 @@ /** | ||
function createApplication(params) { | ||
function createApplication(dir) { | ||
be_disposable(); | ||
var app = express(); | ||
app.dir = params.dir; | ||
app.dir = dir; | ||
@@ -52,3 +52,3 @@ var pkg = load_obj(app, locations.pkg); | ||
inject_into_views(app); | ||
init(app, params.init); | ||
init(app); | ||
@@ -63,2 +63,3 @@ return app; | ||
views: '/views', | ||
lib: '/lib', | ||
controllers: '/controllers', | ||
@@ -115,4 +116,7 @@ pub: '/public', | ||
function init(app, tasks) { | ||
tasks.forEach(function(task) { | ||
function init(app) { | ||
var lib = require(app.dir + locations.lib + '/index.json'); | ||
var autorun = lib.autorun, task; | ||
autorun.forEach(function(file) { | ||
task = require(app.dir + locations.lib + '/' + file); | ||
task(app); | ||
@@ -119,0 +123,0 @@ }); |
{ | ||
"name":"base12", | ||
"description":"12factor.net app platform for node.js, built on express 3", | ||
"version":"0.1.8", | ||
"version":"0.2.0", | ||
"author":"Hunter Loftis <hunter@hunterloftis.com>", | ||
@@ -16,2 +16,4 @@ "contributors": [ | ||
"express":"git://github.com/visionmedia/express.git", | ||
"async":"latest", | ||
"underscore":"latest", | ||
"jade":"latest" | ||
@@ -18,0 +20,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
1976218
32
573
5
7
+ Addedasync@latest
+ Addedunderscore@latest
+ Addedasync@3.2.6(transitive)
+ Addedunderscore@1.13.7(transitive)