UNPKG

generator-bitch

Version:

A simple generator (for Yeoman) to scaffolding web applications, just frontend stack

46 lines (44 loc) 1.31 kB
import browserSync from 'browser-sync' import yargs from 'yargs' module.exports = { lint: [ './gulpfile.js', './test/**/*.js',<% if (appFramework !== 'none') { %> './sources/<%= appFramework %>/**/*.js'<% } %><% if (appFramework === 'none') { %> './sources/scripts/**/*.js',<% } %> ], views: { src: './sources/views/*.<%= viewEngine %>', watch: './sources/views/**/*.<%= viewEngine %>', dest: './public/', },<% if (appFramework === 'angular') { %> templates: { src: './sources/<%= appFramework %>/**/*.template.<%= viewEngine %>', dest: './public/templates/', },<% } %> styles: { src: './sources/styles/*.<%= extPreprocessor %>', watch: './sources/styles/**/*.<%= extPreprocessor %>', dest: './public/styles/', }, scripts: { src: <% if (appFramework === 'angular') { %>[ './sources/angular/**/*.js', '!./sources/angular/**/*.spec.js' ]<% } %><% if (appFramework === 'none') { %>'./sources/scripts/**/*.js'<% } %>, dest: './public/scripts/', }, sprites: { src: './sources/sprites/*.png', dest: './public/imgs/sprites/', }, browserSync: browserSync.create(), browserSyncOptions: { server: { baseDir: './public', }, notify: false, reloadDelay: 100, open: yargs.argv.open, }, }