Socket
Socket
Sign inDemoInstall

grunt-contrib-concat

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-contrib-concat - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

16

docs/concat-options.md
# Options
## separator
Type: `String`
Type: `String`
Default: linefeed

@@ -10,3 +10,3 @@

## banner
Type: `String`
Type: `String`
Default: empty string

@@ -18,4 +18,12 @@

#### footer
Type: `String`
Default: empty string
This string will be appended to the end of the concatenated output. It is processed using [grunt.template.process][], using the default options.
_(Default processing options are explained in the [grunt.template.process][] documentation)_
## stripBanners
Type: `Boolean` `Object`
Type: `Boolean` `Object`
Default: `false`

@@ -33,3 +41,3 @@

## process
Type: `Boolean` `Object`
Type: `Boolean` `Object`
Default: `false`

@@ -36,0 +44,0 @@

@@ -43,2 +43,3 @@ /*

banner: '/* THIS TEST IS <%= banner_property %> */\n',
footer: 'dude'
},

@@ -45,0 +46,0 @@ files: {

{
"name": "grunt-contrib-concat",
"description": "Concatenate files.",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/gruntjs/grunt-contrib-concat",

@@ -6,0 +6,0 @@ "author": {

@@ -16,3 +16,3 @@ # grunt-contrib-concat [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-concat.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-concat)

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

@@ -33,3 +33,3 @@ ```js

#### separator
Type: `String`
Type: `String`
Default: linefeed

@@ -40,3 +40,3 @@

#### banner
Type: `String`
Type: `String`
Default: empty string

@@ -48,4 +48,12 @@

###### footer
Type: `String`
Default: empty string
This string will be appended to the end of the concatenated output. It is processed using [grunt.template.process][], using the default options.
_(Default processing options are explained in the [grunt.template.process][] documentation)_
#### stripBanners
Type: `Boolean` `Object`
Type: `Boolean` `Object`
Default: `false`

@@ -63,3 +71,3 @@

#### process
Type: `Boolean` `Object`
Type: `Boolean` `Object`
Default: `false`

@@ -218,2 +226,3 @@

* 2013-02-21   v0.1.3   Support footer option.
* 2013-02-14   v0.1.2   First official release for Grunt 0.4.0.

@@ -229,2 +238,2 @@ * 2013-01-17   v0.1.2rc6   Updating grunt/gruntplugin dependencies to rc6. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.

*This file was generated on Mon Feb 18 2013 08:36:44.*
*This file was generated on Fri Feb 22 2013 09:32:37.*

@@ -21,2 +21,3 @@ /*

banner: '',
footer: '',
stripBanners: false,

@@ -30,8 +31,9 @@ process: false

// Process banner.
// Process banner and footer.
var banner = grunt.template.process(options.banner);
var footer = grunt.template.process(options.footer);
// Iterate over all src-dest file pairs.
this.files.forEach(function(f) {
// Concat banner + specified files.
// Concat banner + specified files + footer.
var src = banner + f.src.filter(function(filepath) {

@@ -57,3 +59,3 @@ // Warn on and remove invalid source files (if nonull was set).

return src;
}).join(grunt.util.normalizelf(options.separator));
}).join(grunt.util.normalizelf(options.separator)) + footer;

@@ -60,0 +62,0 @@ // Write the destination file.

@@ -21,3 +21,3 @@ 'use strict';

var expected = grunt.file.read('test/expected/custom_options');
test.equal(actual, expected, 'should utilize custom banner and separator.');
test.equal(actual, expected, 'should utilize custom banner, footer and separator.');

@@ -24,0 +24,0 @@ test.done();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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