Merge pull request #425 from glowing-bear/build-process
Add a minification process
This commit is contained in:
commit
cd483eed7b
3 changed files with 13 additions and 9 deletions
|
@ -1320,7 +1320,7 @@ weechat.config(['$routeProvider',
|
|||
]);
|
||||
|
||||
|
||||
weechat.directive('plugin', function($rootScope) {
|
||||
weechat.directive('plugin', ['$rootScope', function($rootScope) {
|
||||
/*
|
||||
* Plugin directive
|
||||
* Shows additional plugin content
|
||||
|
@ -1373,10 +1373,10 @@ weechat.directive('plugin', function($rootScope) {
|
|||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
}]);
|
||||
|
||||
|
||||
weechat.directive('inputBar', function() {
|
||||
weechat.directive('inputBar', ['$rootScope', function() {
|
||||
|
||||
return {
|
||||
|
||||
|
@ -1386,7 +1386,8 @@ weechat.directive('inputBar', function() {
|
|||
inputId: '@inputId'
|
||||
},
|
||||
|
||||
controller: function($rootScope,
|
||||
controller: ['$rootScope', '$scope', '$log', 'connection', 'models',
|
||||
function($rootScope,
|
||||
$scope,
|
||||
$element,
|
||||
$log,
|
||||
|
@ -1666,6 +1667,6 @@ weechat.directive('inputBar', function() {
|
|||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}]
|
||||
};
|
||||
});
|
||||
}]);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
var ls = angular.module('localStorage',[]);
|
||||
|
||||
ls.factory("$store",function($parse){
|
||||
ls.factory("$store", ["$parse", function($parse){
|
||||
/**
|
||||
* Global Vars
|
||||
*/
|
||||
|
@ -113,5 +113,5 @@ ls.factory("$store",function($parse){
|
|||
}
|
||||
};
|
||||
return publicMethods;
|
||||
});
|
||||
}]);
|
||||
})();
|
||||
|
|
|
@ -12,11 +12,14 @@
|
|||
"bower": "^1.3.1",
|
||||
"shelljs": "^0.2.6",
|
||||
"jshint": "^2.5.2",
|
||||
"karma-junit-reporter": "^0.2.2"
|
||||
"karma-junit-reporter": "^0.2.2",
|
||||
"uglify-js": "^2.4"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "bower install",
|
||||
|
||||
"minify": " uglifyjs js/localstorage.js js/weechat.js js/irc-utils.js js/glowingbear.js js/websockets.js js/models.js js/plugins.js -c -m --screw-ie8 -o min.js --source-map min.map",
|
||||
|
||||
"prestart": "npm install",
|
||||
"start": "http-server -a localhost -p 8000",
|
||||
|
||||
|
|
Loading…
Reference in a new issue