Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
add audit logs for platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Dec 11, 2013
1 parent 14f4226 commit ebe17b9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
27 changes: 25 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,28 @@ module.exports = function(grunt) {
}
}
},

audit: {
platform: {
options: {
repos: [
'../CustomElements',
'../HTMLImports',
'../NodeBind',
'../PointerEvents',
'../PointerGestures',
'../ShadowDOM',
'../TemplateBinding',
'../WeakMap',
'../observe-js',
'../platform',
'../polymer-expressions'
]
},
files: {
'build/build.log': 'build/platform.js'
}
}
},
yuidoc: {
compile: {
name: '<%= pkg.name %>',
Expand All @@ -83,6 +104,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-concat-sourcemap');
grunt.loadNpmTasks('grunt-audit');

grunt.registerTask('stash', 'prepare for testing build', function() {
grunt.option('force', true);
Expand All @@ -97,7 +119,8 @@ module.exports = function(grunt) {

grunt.registerTask('test-build', ['default', 'stash', 'test', 'restore']);

grunt.registerTask('default', ['concat_sourcemap', 'uglify', 'sourcemap_copy:build/platform.concat.js.map:build/platform.js.map']);
grunt.registerTask('minify', ['concat_sourcemap', 'uglify', 'sourcemap_copy:build/platform.concat.js.map:build/platform.js.map']);
grunt.registerTask('default', ['minify', 'audit']);
grunt.registerTask('docs', ['yuidoc']);
grunt.registerTask('test', ['override-chrome-launcher', 'karma:platform']);
grunt.registerTask('test-buildbot', ['override-chrome-launcher', 'karma:buildbot', 'test-build']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"karma-safari-launcher": "~0.1.1",
"karma-script-launcher": "~0.1.0",
"karma-crbot-reporter": "0.0.4",
"grunt-concat-sourcemap": "~0.3.2"
"grunt-concat-sourcemap": "~0.3.2",
"grunt-audit": "~0.0.2"
}
}

0 comments on commit ebe17b9

Please sign in to comment.