From 172bf6553cb217656170ea0c62dab81615dc3e27 Mon Sep 17 00:00:00 2001 From: Boyan Rabchev Date: Thu, 2 Apr 2015 15:53:54 +0300 Subject: [PATCH] Grunt tasks --- Gruntfile.js | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 2505427..ab9b1af 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -3,10 +3,35 @@ module.exports = function (grunt) { require('load-grunt-tasks')(grunt); var config = { - + mkdir: { + tmp: { + options: { + create: ['tmp'] + } + } + }, + gitclone: { + hterm: { + options: { + cwd: './tmp', + repository: 'https://chromium.googlesource.com/apps/libapps' + } + } + }, + shell: { + build_hterm: { + command: 'LIBDOT_SEARCH_PATH=$(pwd) ./libdot/bin/concat.sh -i ./hterm/concat/hterm_all.concat -o ../../public/wetty/hterm_all.js', + options: { + execOptions: { + cwd: './tmp/libapps' + } + } + } + }, + clean: ['./tmp'] }; grunt.initConfig(config); - grunt.registerTask('update-hterm', ['shell:greet:hello']); + grunt.registerTask('update-hterm', ['mkdir:tmp', 'gitclone:hterm', 'shell:build_hterm', 'clean']); };