Skip to content

Commit 1eafba2

Browse files
committedMay 30, 2017
Added ga beacon build option
1 parent 1f9c8e3 commit 1eafba2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎gruntfile.coffee

+13
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ module.exports = (grunt)->
4040
'Contrib/PhantomJS/runner.js'
4141
'Auditor/HTMLCSAuditor.js'
4242
],
43+
beacon:
44+
options:
45+
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n' + grunt.file.read('Contrib/Build/umd-header.js')
46+
footer: grunt.file.read('Contrib/Build/umd-footer.js')
47+
files:
48+
'build/HTMLCS.js': [
49+
'Standards/**/*.js'
50+
'HTMLCS.js'
51+
'HTMLCS.Util.js'
52+
'Contrib/PhantomJS/runner.js'
53+
'Auditor/Auditor_with_beacon.js'
54+
],
4355

4456
copy:
4557
dist:
@@ -77,4 +89,5 @@ module.exports = (grunt)->
7789

7890
grunt.registerTask 'default', ['jshint']
7991
grunt.registerTask 'build', ['uglify:dist', 'copy:dist']
92+
grunt.registerTask 'build-beacon', ['uglify:beacon', 'copy:dist']
8093
grunt.registerTask 'build-debug', ['uglify:debug', 'copy:dist']

0 commit comments

Comments
 (0)
Please sign in to comment.