Created
December 17, 2013 16:59
-
-
Save rike422/8008335 to your computer and use it in GitHub Desktop.
titanium用のgruntfail src配下をapp配下に移す想定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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