New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-depend-concat

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-depend-concat

Concatenates files in order via path references

  • 0.1.0
  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grunt-depend-concat

A Grunt task that concatenates files in order via path references.

This task was initially developed to be used in conjunction with grunt-ts for concatenating separately compiled JavaScript files.

Written in TypeScript.

Supported Path References

Dependency Comments

/**
 * @depends ../path/to/file.js
 */

TypeScript References

/// <reference path="../path/to/file.ts" />

Installation

npm install grunt -g
npm install grunt-depend-concat --save-dev

Configuration

method

The method used for referencing dependencies. Default: "depends"

"depends"       @depends ../path/to/file.js
"reference"     /// <reference path="../path/to/file.ts" />

You can also provide your own.

{
    /**
     * A regular expression used to find the dependencies
     */
    regex: new RegExp('@requires (.*)', 'gi'),

    /**
     * An array index where each dependency's file path
     * can be found from the result of RegExp.exec()
     */
    index: 1
}
separator

File contents separator. Default: "\n"

concat_ext

File extension of concatenated file. Default: "js"

ignore_ext

When looking for matching dependency files, the file extensions are ignored. Allows TypeScript references (.ts) to discover their compiled (.js) counterparts. Default: true

Example

grunt.initConfig({
    'depend-concat': {
        options: {
            concat_ext: 'js',
            method: 'depends',
            separator: '\n'
        },
        build: {
            src: ['src/files/**.js'],
            dest: 'dist/concat.js'
        }
    }
});

License

Licensed under the MIT License.

(^_^)

Keywords

FAQs

Package last updated on 25 Jun 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

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