mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-23 13:50:24 +08:00
75 lines
1.3 KiB
CoffeeScript
75 lines
1.3 KiB
CoffeeScript
module.exports = (grunt) ->
|
|
grunt.initConfig {
|
|
pkg: grunt.file.readJSON 'package.json'
|
|
|
|
var: {
|
|
source: 'source/documents'
|
|
destination: 'build'
|
|
}
|
|
|
|
connect: {
|
|
server: {
|
|
options: {
|
|
base: '<%= var.destination %>'
|
|
}
|
|
}
|
|
}
|
|
|
|
copy: {
|
|
main: {
|
|
expand: true
|
|
cwd: '<%= var.source %>'
|
|
src: 'tests/the_raven/*'
|
|
dest: '<%= var.destination %>'
|
|
}
|
|
}
|
|
|
|
coffee: {
|
|
main: {
|
|
expand: true
|
|
cwd: '<%= var.source %>'
|
|
src: '**/*.coffee'
|
|
dest: '<%= var.destination %>'
|
|
ext: '.js'
|
|
}
|
|
}
|
|
|
|
stylus: {
|
|
main: {
|
|
expand: true
|
|
cwd: '<%= var.source %>'
|
|
src: '**/*.styl'
|
|
dest: '<%= var.destination %>'
|
|
ext: '.css'
|
|
}
|
|
}
|
|
|
|
jade: {
|
|
main: {
|
|
expand: true
|
|
cwd: '<%= var.source %>'
|
|
src: '**/*.jade'
|
|
dest: '<%= var.destination %>'
|
|
ext: '.html'
|
|
}
|
|
}
|
|
|
|
qunit: {
|
|
main: {
|
|
options: {
|
|
urls: [ 'http://0.0.0.0:8000/tests.html' ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
grunt.loadNpmTasks('grunt-contrib-coffee');
|
|
grunt.loadNpmTasks('grunt-contrib-stylus');
|
|
grunt.loadNpmTasks('grunt-contrib-jade');
|
|
grunt.loadNpmTasks("grunt-contrib-qunit");
|
|
|
|
grunt.registerTask 'default', [ 'copy', 'coffee', 'stylus', 'jade' ]
|
|
grunt.registerTask 'test', [ 'default', 'connect', 'qunit' ]
|