docker icon indicating copy to clipboard operation
docker copied to clipboard

Gulp task integration

Open gtsiokos opened this issue 11 years ago • 1 comments

I'm new to the node ecosystem, has anyone tried to integrate docker.js with Gulp?

gtsiokos avatar May 23 '14 12:05 gtsiokos

@gtsiokos Yes, docker integrates very nicely with gulp. I have a specific gulp task that runs the docs only on updated files, making it really quick to integrate with our build process.

Here's a short snippet example of use:

var opts = {
    inDir: path.resolve(utils.relative('src')),
    outDir: path.join(utils.relative('src'), 'docs');,
    sidebarState: 'yes',
    multiLineOnly: true,
    onlyUpdated: true
};

var d = new docker(opts);

// Grab directories, drop excluded dirs, format for docker
var assetDirs = utils.globDirs('src/*/');
var assetDocs = [];
assetDirs.forEach(function(dirName){
    if (!_.contains(['docs','some_other_exclude_here'], dirName)) {
        assetDocs.push('./' + dirName);
    }
});

d.doc(assetDocs);

jasonseney avatar Oct 13 '14 14:10 jasonseney