0.4.3 • Published 8 years ago
gulp-task-runner v0.4.3
gulp-task-runner
gulp-task-runner registers the following tasks to gulp:
- minify html/php files via gulp-htmlmin
- support ejs template via gulp-ejs
- compile sass files via gulp-sass
- minify css files via gulp-clean-css
- add prefixes automatically via gulp-autoprefixer
- compile js files via browserify+babelify
- generate sourcemaps via gulp-sourcemaps
- minify js files via gulp-uglify
- compress images via gulp-imagemin & imagemin-pngquant
- browser sync via browser-sync
- generate sitemap.xml via gulp-sitemap
Examples
example/src/homepage/gulpfile.babel.js
/**
*
* @file
* gulpfile.babel.js
*
*/
'use strict';
var config = {
localhost : 'localhost/build/',
buildPath : '../../build',
sitemap : {
url : 'https://example.com'
},
browser : 'Google Chrome',
contents : [
'index',
'report',
{
'report' : [
'report01',
{
'report02' : [
'details01',
'details02'
]
}
],
},
'plan',
{
'plan' : [
'plan01',
'plan02'
]
},
'about',
],
watches : [
{
srcs : [
'html/_header.html',
'html/_footer.html',
],
tasks : [ 'index.html', 'about.html', 'plan01.html', 'plan02.html' ]
},
]
};
import { GulpTaskRunner } from '../../../src/gulp-task-runner';
var gulpTaskRunner = new GulpTaskRunner( config );
html directory:
.
├── _footer.html
├── _header.html
├── about.html
├── plan.html
├── plan___01.html
├── plan___02.html
├── report.html
├── report___01.html
├── report___01___details.html
├── report___02.html
└── index.html
generates
├── about
│ └── index.html
├── index.html
├── plan
│ ├── 01
│ │ └── index.html
│ ├── 02
│ │ └── index.html
│ └── index.html
├── report
│ ├── 01
│ │ ├── details
│ │ │ └── index.html
│ │ └── index.html
│ ├── 02
│ │ └── index.html
│ └── index.html
├── sitemap.xml
in examples/build directory.
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.9
8 years ago
0.3.8
8 years ago
0.3.7
8 years ago
0.3.6
8 years ago
0.3.5
8 years ago
0.3.4
8 years ago
0.3.3
8 years ago
0.3.2
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.9
8 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.9
9 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago