Created
June 28, 2014 09:33
-
-
Save tgerring/e4831abacb2e578511b7 to your computer and use it in GitHub Desktop.
gulp config
This file contains 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
var GLOBSTAR = '**/*'; | |
var basePaths = { | |
src: 'src/', | |
dest: 'build/' | |
}; | |
var typeMap = { | |
// templates | |
jade: ['*.jade'], | |
// styles | |
css: [GLOBSTAR + '.css'], | |
less: [GLOBSTAR + '.less'], | |
// scripts | |
js: [GLOBSTAR + '.js', '!libs/**/*.js'], | |
coffee: [GLOBSTAR + '.coffee'], | |
jslibs: ['libs/**/*.js'], | |
// images | |
png: [GLOBSTAR + '.png'], | |
jpg: [GLOBSTAR + '.jpg', GLOBSTAR + '.jpeg'], | |
gif: [GLOBSTAR + '.gif'], | |
// extras | |
extras: [GLOBSTAR] | |
}; | |
module.exports = { | |
SERVER_PORT: 1337, | |
GLOBSTAR: GLOBSTAR, | |
basePaths: basePaths, | |
typePaths: { | |
templates: { | |
src: basePaths.src + 'templates/', | |
dest: basePaths.dest + '' | |
}, | |
styles: { | |
src: basePaths.src + 'styles/', | |
dest: basePaths.dest + 'styles/' | |
}, | |
scripts: { | |
src: basePaths.src + 'scripts/', | |
dest: basePaths.dest + 'scripts/' | |
}, | |
images: { | |
src: basePaths.src + 'images/', | |
dest: basePaths.dest + 'images/' | |
}, | |
extras: { | |
src: basePaths.src + 'extras/', | |
dest: basePaths.dest + '' | |
} | |
}, | |
typeMap: typeMap, | |
appFiles: { | |
templates: typeMap.jade, | |
styles: typeMap.css.concat(typeMap.less), | |
scripts: typeMap.js.concat(typeMap.coffee), | |
images: typeMap.png.concat(typeMap.gif).concat(typeMap.jpg), | |
extras: typeMap.extras | |
}, | |
vendorFiles: { | |
scripts: typeMap.jslibs | |
}, | |
scriptOrder: [ | |
], | |
styleOrder: [ | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment