Permalink
Browse files

removing js files from app level

we consider js in that folder as external dependecies
  • Loading branch information...
1 parent 482c027 commit ae9809e080b8cefc4faa2b48ceb372634e639f79 @diervo diervo committed Oct 8, 2012
Showing with 12 additions and 2 deletions.
  1. +3 −0 examples/demo/assets/js/myjs.js
  2. +8 −1 examples/demo/mojits/master/controller.common.js
  3. +1 −1 lib/core.js
@@ -0,0 +1,3 @@
+function () {
+ alert('this is something');
+}
@@ -108,4 +108,11 @@ var DIMENSIONS = {
}
};
-}, '0.0.1', {requires: ['mojito', 'mojito-assets-addon','mojito-intl-addon']});
+}, '0.0.1', {requires: [
+ 'mojito',
+ 'mojito-assets-addon',
+ 'mojito-intl-addon',
+ 'mojito-params-addon',
+ 'mojito-composite-addon',
+ 'mojito-url-addon'
+ ]});
View
@@ -251,7 +251,7 @@ ShakerCore.prototype.shakeMojitByContext = function (mojitName, context) {
ShakerCore.prototype.shakeAppResourcesByContext = function (context) {
return this.getAppResourcesByContext(context).filter(function (item){
- return item.type === 'asset' && (item.subtype === 'css' || item.subtype === 'js');
+ return item.type === 'asset' && item.subtype === 'css';
});
};

0 comments on commit ae9809e

Please sign in to comment.