parent
08ebc8d292
commit
32d7da91b7
@ -1,19 +1,45 @@
|
||||
module.exports = {
|
||||
var phantom = require('./phantom');
|
||||
|
||||
var paths = {
|
||||
src: {
|
||||
root: './src/UI/',
|
||||
templates: './src/UI/**/*.hbs',
|
||||
html: './src/UI/*.html',
|
||||
partials: './src/UI/**/*Partial.hbs',
|
||||
scripts: './src/UI/**/*.js',
|
||||
less: ['./src/UI/**/*.less'],
|
||||
content: './src/UI/Content/',
|
||||
images: './src/UI/Content/Images/**/*',
|
||||
exclude: {
|
||||
libs: '!./src/UI/JsLibraries/**'
|
||||
}
|
||||
},
|
||||
dest: {
|
||||
root: './_output/UI/',
|
||||
content: './_output/UI/Content/'
|
||||
}
|
||||
};
|
||||
|
||||
if (phantom) {
|
||||
paths = {
|
||||
src: {
|
||||
root: './src/UI/',
|
||||
templates: './src/UI/**/*.hbs',
|
||||
html: './src/UI/*.html',
|
||||
partials: './src/UI/**/*Partial.hbs',
|
||||
scripts: './src/UI/**/*.js',
|
||||
less: ['./src/UI/**/*.less'],
|
||||
content: './src/UI/Content/',
|
||||
images: './src/UI/Content/Images/**/*',
|
||||
exclude :{
|
||||
libs:'!./src/UI/JsLibraries/**'
|
||||
}
|
||||
root: './src/UI.Phantom/',
|
||||
templates: './src/UI.Phantom/**/*.hbs',
|
||||
html: './src/UI.Phantom/*.html',
|
||||
partials: './src/UI.Phantom/**/*Partial.hbs',
|
||||
scripts: './src/UI.Phantom/**/*.js',
|
||||
less: ['./src/UI.Phantom/**/*.less'],
|
||||
content: './src/UI.Phantom/Content/',
|
||||
images: './src/UI.Phantom/Content/Images/**/*',
|
||||
exclude: {
|
||||
libs: '!./src/UI.Phantom/JsLibraries/**'
|
||||
}
|
||||
},
|
||||
dest: {
|
||||
root: './_output/UI/',
|
||||
content: './_output/UI/Content/'
|
||||
root: './_output/UI.Phantom/',
|
||||
content: './_output/UI.Phantom/Content/'
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = paths;
|
||||
|
@ -0,0 +1,10 @@
|
||||
var args = require('yargs').argv;
|
||||
// Switch to phantom.
|
||||
// Example:
|
||||
// gulp --phantom
|
||||
|
||||
var phantom = !!args.phantom;
|
||||
|
||||
console.log('Phantom:', phantom);
|
||||
|
||||
module.exports = phantom;
|
Loading…
Reference in new issue