Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

Commit 695f663

Browse files
committed
chore(grunt): add ngAnnotate
1 parent 5abbfae commit 695f663

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

Gruntfile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ module.exports = function(grunt) {
7474
}
7575
}
7676
},
77-
77+
ngAnnotate: {
78+
dist: {
79+
files: {
80+
'<%= concat.dist.dest %>': ['<%= concat.dist.dest %>']
81+
}
82+
}
83+
},
7884
uglify: {
7985
options: {
8086
banner: '<%= meta.banner %>'
@@ -139,7 +145,7 @@ module.exports = function(grunt) {
139145
});
140146

141147
// Build task.
142-
grunt.registerTask('build', ['jshint', 'concat', 'uglify', 'sass', 'autoprefixer', 'cssmin']);
148+
grunt.registerTask('build', ['jshint', 'concat', 'ngAnnotate', 'uglify', 'sass', 'autoprefixer', 'cssmin']);
143149

144150
// Default task.
145151
grunt.registerTask('default', ['build', 'connect', 'karma:unit', 'watch']);

dist/angular-carousel.js

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
147147

148148
})
149149

150-
.service('computeCarouselSlideStyle', function(DeviceCapabilities) {
150+
.service('computeCarouselSlideStyle', ["DeviceCapabilities", function(DeviceCapabilities) {
151151
// compute transition transform properties for a given slide and global offset
152152
return function(slideIndex, offset, transitionType) {
153153
var style = {
@@ -192,7 +192,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach
192192
}
193193
return style;
194194
};
195-
})
195+
}])
196196

197197
.service('createStyleString', function() {
198198
return function(object) {

dist/angular-carousel.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ <h3>Custom templates without ng-repeat and auto-slide</h3>
112112
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script>
113113
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular-touch.min.js"></script>
114114

115-
<!--<script src="./dist/angular-carousel.js"></script> -->
116-
<script src="./src/angular-carousel.js"></script>
115+
<script src="./dist/angular-carousel.min.js"></script>
116+
<!--<script src="./src/angular-carousel.js"></script>
117117
<script src="./src/directives/rn-carousel.js"></script>
118118
<script src="./src/directives/rn-carousel-indicators.js"></script>
119119
<script src="./src/directives/sliceFilter.js"></script>
120120
<script src="./src/directives/shifty.js"></script>
121+
-->
121122
<script>
122123
angular.module('DemoApp', [
123124
'angular-carousel'

package.json

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"grunt-contrib-watch": "^0.5.3",
3232
"grunt-conventional-changelog": "~1.1.0",
3333
"grunt-karma": "~0.6.2",
34+
"grunt-ng-annotate": "^0.4.0",
3435
"karma": "~0.10.9",
3536
"karma-chrome-launcher": "~0.1.2",
3637
"karma-firefox-launcher": "~0.1.3",

0 commit comments

Comments
 (0)