Skip to content

Commit

Permalink
Added ng-annotate to build to make it survive minification
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Jones committed Jan 26, 2015
1 parent 8e27d22 commit d0faa99
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-grid",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "https://github.com/ThirdCornerLLC/tc-grid",
"authors": [
"Zach Barnes <[email protected]>",
Expand Down
5 changes: 3 additions & 2 deletions dist/tc-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
post: function (scope, element, attrs, ctrl) {}
};
},
controller: function ($scope, $element, $attrs) {
controller: ["$scope", "$element", "$attrs", function ($scope, $element, $attrs) {
var init = function () {
initOptions();
initWatch();
Expand Down Expand Up @@ -215,10 +215,11 @@
var watchInitialized = false;

return init();
}
}]
};

};
tcGrid.$inject = ["$parse", "$templateCache"];

var tcGridColumn = function () {
return {
Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var less = require('gulp-less');
var templateCache = require('gulp-angular-templatecache');
var to5 = require('gulp-6to5');
var runSequence = require('run-sequence');
var ngAnnotate = require('gulp-ng-annotate');

var config = {
src: {
Expand Down Expand Up @@ -48,6 +49,7 @@ gulp.task('js-build', function() {
return gulp.src(config.src.js)
.pipe(concat(config.dist.js))
.pipe(to5())
.pipe(ngAnnotate())
.pipe(gulp.dest(config.dist.base));
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"gulp-angular-templatecache": "^1.4.2",
"gulp-concat": "^2.4.2",
"gulp-less": "^1.3.6",
"gulp-ng-annotate": "^0.5.0",
"run-sequence": "^1.0.2"
}
}

0 comments on commit d0faa99

Please sign in to comment.