Skip to content

Commit 60f5812

Browse files
author
Eleni Rundle
committed
Merge pull request #46 from waldenraines/ng-annotate
Fixes #34: add ng-annotate to build process.
2 parents 81215c4 + 66cae0b commit 60f5812

14 files changed

+1753
-1780
lines changed

Gruntfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ module.exports = function (grunt) {
158158
dest: 'templates/charts.js'
159159
}
160160
},
161+
// ng-annotate tries to make the code safe for minification automatically
162+
// by using the Angular long form for dependency injection.
163+
ngAnnotate: {
164+
dist: {
165+
files: [{
166+
src: 'dist/angular-patternfly.js',
167+
dest: 'dist/angular-patternfly.js'
168+
}]
169+
}
170+
},
161171
uglify: {
162172
options: {
163173
mangle: false
@@ -198,7 +208,7 @@ module.exports = function (grunt) {
198208
concatSrc = 'src/**/*.js';
199209
}
200210

201-
grunt.task.run(['clean', 'lint', 'test', 'ngtemplates', 'concat', 'uglify:build', 'cssmin', 'copy', 'ngdocs', 'clean:templates']);
211+
grunt.task.run(['clean', 'lint', 'test', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'cssmin', 'copy', 'ngdocs', 'clean:templates']);
202212
});
203213

204214
grunt.registerTask('default', ['build']);

0 commit comments

Comments
 (0)