🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

grunt-vlt

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-vlt

Plugin for automating vlt add/commit/delete

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
7
-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-vlt

Plugin for auto commiting, deleting and adding files from grunt-regarde into CQ's Filevault(VLT)

Getting Started

This plugin requires Grunt ~0.4.1 && Grunt Regarde

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-vlt --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-vlt');

The "vlt" task

Overview

In your project's Gruntfile, add a section named vlt to the data object passed into grunt.initConfig().

grunt.initConfig({
  vlt: {
    options: {
      flags: ['-v', '--force'] // optional flags to send to VLT 
    }
    ui: {
      cwd: 'ui/src/main/content/jcr_root/' // path to current working directory to run VLT commands from
    },
  },
})

Options

options.flags

Type: Array Default value: []

The optional flags to send to VLT adds, commits and deletes

Usage Examples

Default Options

In this example, regarde is listening for file changes and once detected triggering VLT and passing the changed file(s).


grunt.initConfig({
  // regarde does the actual file watching emitting change notifications that VLT picks up
  regarde: {
    ui: {
      files: ['ui/src/main/content/jcr_root/**/*.{txt,css,js,jsp}'],
      tasks: ['vlt']
    }
  },
  // VLT then processes the change notifications updates CRX accordingly
  vlt: {
    options: {
      flags: ['-v', '--force'] // optional flags to send to VLT 
    },
    ui: {
      cwd: 'ui/src/main/content/jcr_root/' // path to current working directory to run VLT commands from
    },
  },
})

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

Keywords

gruntplugin

FAQs

Package last updated on 03 Apr 2013

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