Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-vtex

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-vtex

A Grunt convention-over-configuration parasite

  • 0.8.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-95.74%
Maintainers
4
Weekly downloads
 
Created
Source

Grunt VTEX

A Grunt convention-over-configuration meta-project.

The file index.coffee exposes only one function: generateConfig.
It receives your grunt, pkg (your package.json parsed object) and options.
It returns an object with configurations for all tasks used across projects in VTEX.

Your project should only define very specific customizations outside of this config.
This enforces uniformity and eases advancing configurations across every project simultaneously.

Important

If you are heavily altering a defined task or adding a new one, please bump the minor version.

Usage

In your Gruntfile:

GruntVTEX = require 'grunt-vtex'

module.exports = (grunt) ->
  pkg = grunt.file.readJSON 'package.json'

  options = {...}
  config = GruntVTEX.generateConfig grunt, pkg, options

  ## customize by altering config
  config.copy.main = {...}
  
  tasks = {...}

  grunt.initConfig config
  grunt.loadNpmTasks name for name of pkg.devDependencies when name[0..5] is 'grunt-'
  grunt.registerTask taskName, taskArray for taskName, taskArray of tasks

Options

options.relativePath where to put files under build folder
options.replaceGlob which files to replace on copy:deploy task
options.replaceMap which keys to replace with which values on copy:deploy task
options.copyIgnore array of globs to ignore on copy:main
options.dryrun if true, nothing will actually be deployed
options.open whether to open automatically a page on running
options.verbose whether to log all available information
options.port which port the connect proxy should listen to
options.replaceHost function to replace the host upon proxying
options.proxyTarget what target to proxy to
options.followHttps whether to follow HTTPS redirects transparently and return HTTP
options.livereload whether to use livereload, or in which port to use it options.middlewares array of middlewares to use in connect


VTEX - 2014

Keywords

FAQs

Package last updated on 30 Jan 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc