Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Copy over webworker files on build.

  • Loading branch information...
commit b2331920909555aa6076828e9ad89ab6dd35adfc 1 parent 4b42950
@arlolra authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 gruntfile.js
View
12 gruntfile.js
@@ -87,8 +87,18 @@ module.exports = function (grunt) {
})
})
+ grunt.registerTask('copy_ww', function () {
+ var files = ['dsa-webworker.js', 'sm-webworker.js']
+ , src = 'lib/'
+ , dest = 'build/'
+ files.forEach(function (f) {
+ grunt.file.copy(src + f, dest + f)
+ })
+ })
+
grunt.registerTask('otr', ['concat:otr', 'uglify:otr'])
grunt.registerTask('dep', ['concat:cryptojs', 'copy_dep'])
- grunt.registerTask('default', ['clean', 'otr', 'dep'])
+ grunt.registerTask('ww', ['copy_ww'])
+ grunt.registerTask('default', ['clean', 'otr', 'dep', 'ww'])
}
Please sign in to comment.
Something went wrong with that request. Please try again.