Skip to content

Instantly share code, notes, and snippets.

@tgerring
Created June 28, 2014 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgerring/e4831abacb2e578511b7 to your computer and use it in GitHub Desktop.
Save tgerring/e4831abacb2e578511b7 to your computer and use it in GitHub Desktop.
gulp config
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