Skip to content
Browse files

fixed how commands instantiate the store

  • Loading branch information...
1 parent 3cfff95 commit c5baa19efba7ecf132d2a6fd1e759d60b095c90d @drewfish drewfish committed Aug 15, 2012
View
5 source/lib/app/commands/build.js
@@ -76,12 +76,15 @@ exports.run = function(params, options, callback) {
Y.applyConfig({
useSync: true,
modules: {
+ 'mojito-util': {
+ fullpath: libpath.join(__dirname, '../../app/autoload/util.common.js')
+ },
'mojito-resource-store': {
fullpath: libpath.join(__dirname, '../../store.server.js')
}
}
});
- Y.use('mojito-resource-store');
+ Y.use('mojito-util', 'mojito-resource-store');
Y.applyConfig({useSync: false});
store = new Y.mojito.ResourceStore({
root: cwd,
View
5 source/lib/app/commands/compile.js
@@ -194,12 +194,15 @@ function makeStore(cfg) {
Y.applyConfig({
useSync: true,
modules: {
+ 'mojito-util': {
+ fullpath: libpath.join(__dirname, '../../app/autoload/util.common.js')
+ },
'mojito-resource-store': {
fullpath: libpath.join(__dirname, '../../store.server.js')
}
}
});
- Y.use('mojito-resource-store');
+ Y.use('mojito-util', 'mojito-resource-store');
store = new Y.mojito.ResourceStore(cfg);
Y.applyConfig({useSync: true});
return store;
View
5 source/lib/app/commands/gv.js
@@ -439,12 +439,15 @@ run = function(params, options) {
Y.applyConfig({
useSync: true,
modules: {
+ 'mojito-util': {
+ fullpath: libpath.join(__dirname, '../../app/autoload/util.common.js')
+ },
'mojito-resource-store': {
fullpath: libpath.join(__dirname, '../../store.server.js')
}
}
});
- Y.use('mojito-resource-store');
+ Y.use('mojito-util', 'mojito-resource-store');
// load details
store = new Y.mojito.ResourceStore({
View
5 source/lib/app/commands/test.js
@@ -694,12 +694,15 @@ runTests = function(opts) {
Ystore.applyConfig({
useSync: true,
modules: {
+ 'mojito-util': {
+ fullpath: pathlib.join(targetMojitoPath, 'lib/app/autoload/util.common.js')
+ },
'mojito-resource-store': {
fullpath: pathlib.join(targetMojitoPath, 'lib/store.server.js')
}
}
});
- Ystore.use('mojito-resource-store');
+ Ystore.use('mojito-util', 'mojito-resource-store');
store = new Ystore.mojito.ResourceStore({
root: testPath,
context: {},

0 comments on commit c5baa19

Please sign in to comment.
Something went wrong with that request. Please try again.