springbokjs-base
A collection of gulp tasks
Installation
npm install --save-dev gulp springbokjs-base
Then create the file gulpfile.js
:
var gulp = ;var pkg = ; pkg gulp src: css: // here put css files from bower or node_modules or other assets, // included before the main less file in src/browser/less/main.less. js: // here put js files from bower or node_modules or other assets, // included before files from src/browser/js/ folder. 'node_modules/springbokjs-shim/init.js' //'node_modules/ejs/ejs.min.js' jshintBrowserOptions: "predef": "S" jshintServerOptions: "predef": "S" ;
Configuration
You can configure with the options below, the value displayed is the default:
paths: scripts: "**/*.js" 'public': 'public/' config: 'src/config/' stylesIncludePath: 'bower_components/' common: src: false dest: 'lib/common/' // destination for server-side. // can be false, a string (the src option) server: 'src/server/' // or an object server: src: 'src/server/' common: 'src/common/' dist: 'lib/server/' startfile: 'server.js' templatesEJS: '**/*.ejs' templatesJSX: '**/*.jsx' configdest: 'lib/' browser: src: 'src/browser/' dist: 'public/dist/' js: 'js/' mainscripts: pkgname + ".js" styles: 'style/' mainstyle: 'main.less' templatesEJS: 'templates/' images: "images"