You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
812 B

8 years ago
module.exports = grunt => {
require('load-grunt-tasks')(grunt);
10 years ago
8 years ago
const config = {
mkdir: {
tmp: {
options: {
create: ['tmp'],
10 years ago
},
8 years ago
},
},
gitclone: {
hterm: {
options: {
cwd : './tmp',
repository: 'https://chromium.googlesource.com/apps/libapps',
10 years ago
},
8 years ago
},
},
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',
},
10 years ago
},
8 years ago
},
},
clean: ['./tmp'],
};
10 years ago
8 years ago
grunt.initConfig(config);
10 years ago
grunt.registerTask('default', ['mkdir:tmp', 'gitclone:hterm', 'shell:build_hterm', 'clean']);
10 years ago
};