summaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2013-12-18 21:32:42 -0500
committerJulie Lala <jules@okfoc.us>2013-12-18 21:32:42 -0500
commit5ef224e2a9b37d4b5b283d5bf5ebd4f5d0ec226b (patch)
treebf47e4b5447dc01c31dd718de0de8a75bc060ad4 /Gruntfile.js
initial commit...
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..bb6dfbd
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,52 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ concat: {
+ options: {
+ separator: ';'
+ },
+ dist: {
+ src: [
+ 'js/vendor/FileSaver/FileSaver.js',
+ 'js/vendor/dataUriToBlob.js',
+ 'js/gif-encode/client.js',
+ 'js/record.js'
+ ],
+ dest: 'js/record.concat.js',
+ },
+ worker: {
+ src: [
+ 'js/gif-encode/GIFEncoder.js',
+ 'js/gif-encode/LZWEncoder.js',
+ 'js/gif-encode/NeuQuant.js',
+ 'js/gif-encode/worker.js'
+ ],
+ dest: 'js/gif-encode/worker.concat.js'
+ }
+ },
+ uglify: {
+ options: {
+ banner: '/* asdf.us/dither */\n'
+ },
+ build: {
+ src: 'js/record.concat.js',
+ dest: 'js/record.min.js'
+ }
+ },
+ watch: {
+ files: ['js/!(live.min|live.concat).js','js/vendor/*'],
+ tasks: ['default']
+ }
+ });
+
+ // Load tasks that we'll be using
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+
+
+ // Default task(s).
+ grunt.registerTask('default', ['concat', 'uglify']);
+};