1.1.2 • Published 9 years ago
startanull v1.1.2
Startanull
Startanull is Gulp builder for styles, scripts, templates.
Prepare for using
Install latest Node.JS
$ node --version >> v6.3.* $ npm --version >> 3.*Install Gulp as global package.
[sudo] npm install -g gulp
Setup
Install
gulpandstartanullpackages as development dependencies for your project. To do this, run next command in your project folder:$ npm install --save-dev gulp startanullCreate
gulpfile.jsin your project folder'use strict'; const startanull = require('startanull'); const conf = {...}; // config object for startanull const gulp = conf.gulp = require('gulp'); startanull(conf);Setup config. You can find sample config and gulpfile in
testfolder
Tasks
Default
Build styles, scripts and templates
gulpStyles
Build CSS from styles
gulp styles.buildMinify CSS
gulp styles.minBuild CSS from styles and minify them
gulp stylesScripts
Build Scripts with Webpack. Pass min flag for minified version
gulp scripts.build [--min]Templates
Build HTML from Pug templates
gulp templates.buildWatchers
Rebuild assets on sources changed. Pass some options if you want watch for specific modules.
s- for stylesj- for scriptst- for templates
gulp watch [-s|j|t]BrowserSync
Serve files with BrowserSync
gulp serve