Socket
Book a DemoInstallSign in
Socket

gulp-component-updater

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-component-updater

Gulp-friendly module to auto add/delete files in your component.json

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Gulp Component.json Updater

Gulp-friendly module to auto add/delete files in your component.json

In a large project in can be annoying to manually add every new file created to component.json. This module can be used with Gulp to automatically add/remove files from your component.json.

Install

$ npm install component-json-updater --save-dev

Usage

var gulp = require('gulp'),
    updater = require('gulp-component-updater')

gulp.task('watch', function () {
    gulp.watch(
        ['component.json', 'src/**/*'],
        updater({ log: true })
    )
})

API

updater([component.json path], [options])

Component.json path

Optional. Defaults to component.json

Options

Optional. Default options:

{
    styles: ['css', 'styl', 'sass', 'less'],
    scripts: ['js', 'coffee'],
    templates: ['html', 'jade', 'mustache', 'handlebars'],
    images: ['jpg', 'png', 'gif'],
    files: [],
    log: false, // console.log file changes
    indent: 2 // indent spaces in component.json
}

FAQs

Package last updated on 04 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts