Skip to content

Instantly share code, notes, and snippets.

@rike422
Created December 17, 2013 16:59
Show Gist options
  • Save rike422/8008335 to your computer and use it in GitHub Desktop.
Save rike422/8008335 to your computer and use it in GitHub Desktop.
titanium用のgruntfail src配下をapp配下に移す想定
module.exports = function(grunt) {
'use strict';
// Grunt Initialize
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
watch : {
all : {
files : [ 'Resources/**/*.js' ],
tasks : [ 'tishadow:spec' ]
},
jade : {
files : [ 'src/**/*.jade' ],
tasks : [ 'jade' ]
}
},
jade: {
compile: {
options: {
pretty : true
},
files: [ {
expand : true,
src : [ '**/*.jade' ],
dest : 'app/',
cwd : 'src/',
ext : '.xml'
} ]
}
},
ltss : {
compile : {
options : {
pretty : true
},
files : [ {
expand : true,
src : [ '**/*.ltss' ],
dest : 'app',
cwd : 'src ',
ext : '.tss'
} ]
}
},
tishadow : {
spec : {
command : 'spec'
}
}
});
// Tasks
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-tishadow');
// Register Task
grunt.registerTask('default', ['jade','watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment