Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gulp-task-runner

0.4.3 • Public • Published

gulp-task-runner

npm version

gulp-task-runner registers the following tasks to gulp:

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.

Keywords

Install

npm i gulp-task-runner

DownloadsWeekly Downloads

1

Version

0.4.3

License

MIT

Last publish

Collaborators

  • avatar