🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

grunt-dist

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-dist

Bulk generate `js`,` min.js` and `min.map`.

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

grunt-dist

Bulk generate js, min.js and min.map.

screenshot

Getting Started

This plugin requires Grunt ~0.4.5

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-dist --save-dev

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

grunt.loadNpmTasks('grunt-dist');

The "dist" task

Overview

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

module.exports = function(grunt) {
  grunt.initConfig({
      dist: {
          default_options: {
              files: {
                  "dist":['dist/JSLite.js']
              }
          }
      }
  });
  // npm install --save-dev load-grunt-tasks
  require('load-grunt-tasks')(grunt); 
}

Usage Examples

Default Options

In this example

grunt.initConfig({
  dist: {
    options: {},
    files: {
      'dist': ['src/testing.txt', 'src/123.js', 'dist/JSLite.js'],
    },
  },
});

Contributing

Release History

(Nothing yet)

Keywords

gruntplugin

FAQs

Package last updated on 29 Sep 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