JSFiddle - React, Tailwind, and code Playground
JavaScript
/* gulp.config.js */
module.exports = function() {
var client = './client/';
var server = './server/';
var clientApp = client + 'app/';
var report = './report/';
var root = './';
var specRunnerFile = 'specs.html';
var temp = './.tmp/';
var wiredep = require('wiredep');
var bowerFiles = wiredep({devDependencies: true})['js'];
var config = {
/**
* File paths
*/
// all javascript that we want to vet
alljs: [
'./client/**/*.js', './server/**/*.js',
'./*.js', temp + '**/*.js', '!**/bower_components/**',
'!**/not_bower_components/**', '!**/i18n/**'
],
build: './build/',
client: client,
css: temp + 'styles.css',
fonts: './bower_components/font-awesome/fonts/**/*.*',
html: client + '**/*.html',
htmltemplates: clientApp + '**/*.html',
images: client + 'images/**/*.*',
index: client + 'index.html',
// app js, with no specs
js: [
clientApp + '**/*.module.js',
clientApp + '**/*.js',
'!' + clientApp + '**/*.spec.js'
],
less: client + 'styles/styles.less',
report: report,
root: root,
server: server,
source: 'src/',
temp: temp,
/**
* optimized files
*/
optimized: {
app: 'app.js',
lib: 'lib.js'
},
/**
* plato
*/
plato: {js: clientApp + '**/*.js'},
/**
* browser sync
*/
browserReloadDelay: 1000,
/**
* template cache
*/
templateCache: {
file: 'templates.js',
options: {
module: 'app.core',
root: 'app/',
standAlone: false
}
},
/**
* Bower and NPM locations
*/
bower: {
json:...