Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'isao/buildjsfix' into merge-perf
Browse files Browse the repository at this point in the history
Conflicts:
	lib/app/commands/build/index.js
  • Loading branch information
drewfish committed Nov 28, 2012
2 parents 6e4e79b + 1aa8cd9 commit 1dfef32
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/app/commands/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ var path = require('path'),
CWD = process.cwd(),

writer = require('./writer'),
util = require(BASE + 'lib/management/utils'),

Y = util.getYUIInstance({
'mojito-resource-store': BASE + 'lib/store.server.js'
});
Store = require(BASE + 'lib/store'),
util = require(BASE + 'lib/management/utils');


function getConfigs(opts, buildtype, builddir, store) {
Expand Down Expand Up @@ -103,8 +100,10 @@ function run(args, opts, cb) {
opts.context = typeof opts.context === 'string' ? csvctx(opts.context) : {};

// init resource store
store = new Y.mojito.ResourceStore({root: CWD, context: opts.context});
store.preload();
store = Store.createStore({
root: CWD,
context: opts.context
});

// normalize inputs
conf = getConfigs(opts, buildtype, args[1], store);
Expand Down

0 comments on commit 1dfef32

Please sign in to comment.