Skip to content

Commit

Permalink
chore(grunt): add ngAnnotate
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Oct 13, 2014
1 parent 5abbfae commit 695f663
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
10 changes: 8 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ module.exports = function(grunt) {
}
}
},

ngAnnotate: {
dist: {
files: {
'<%= concat.dist.dest %>': ['<%= concat.dist.dest %>']
}
}
},
uglify: {
options: {
banner: '<%= meta.banner %>'
Expand Down Expand Up @@ -139,7 +145,7 @@ module.exports = function(grunt) {
});

// Build task.
grunt.registerTask('build', ['jshint', 'concat', 'uglify', 'sass', 'autoprefixer', 'cssmin']);
grunt.registerTask('build', ['jshint', 'concat', 'ngAnnotate', 'uglify', 'sass', 'autoprefixer', 'cssmin']);

// Default task.
grunt.registerTask('default', ['build', 'connect', 'karma:unit', 'watch']);
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-carousel.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach

})

.service('computeCarouselSlideStyle', function(DeviceCapabilities) {
.service('computeCarouselSlideStyle', ["DeviceCapabilities", function(DeviceCapabilities) {
// compute transition transform properties for a given slide and global offset
return function(slideIndex, offset, transitionType) {
var style = {
Expand Down Expand Up @@ -192,7 +192,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
}
return style;
};
})
}])

.service('createStyleString', function() {
return function(object) {
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-carousel.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,13 @@ <h3>Custom templates without ng-repeat and auto-slide</h3>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular-touch.min.js"></script>

<!--<script src="./dist/angular-carousel.js"></script> -->
<script src="./src/angular-carousel.js"></script>
<script src="./dist/angular-carousel.min.js"></script>
<!--<script src="./src/angular-carousel.js"></script>
<script src="./src/directives/rn-carousel.js"></script>
<script src="./src/directives/rn-carousel-indicators.js"></script>
<script src="./src/directives/sliceFilter.js"></script>
<script src="./src/directives/shifty.js"></script>
-->
<script>
angular.module('DemoApp', [
'angular-carousel'
Expand Down
1 change: 1 addition & 0 deletions package.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"grunt-contrib-watch": "^0.5.3",
"grunt-conventional-changelog": "~1.1.0",
"grunt-karma": "~0.6.2",
"grunt-ng-annotate": "^0.4.0",
"karma": "~0.10.9",
"karma-chrome-launcher": "~0.1.2",
"karma-firefox-launcher": "~0.1.3",
Expand Down

0 comments on commit 695f663

Please sign in to comment.