Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    grunt-includejspublic

    grunt-includejs

    include.js is a node preprocessor for including one JavaScript files into another by "@include" operator. It's a fork of wepp module.

    Getting Started

    This plugin requires Grunt ~0.4.1

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

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

    grunt.loadNpmTasks('grunt-includejs');

    The "includejs" task

    Overview

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

    grunt.initConfig({
      includejs: {
        your_target: {
          'dest_file.js': 'src_file.js'
        },
      },
    })

    Release History

    16.06.2013: 0.1.0

    Keywords

    none

    install

    npm i grunt-includejs

    Downloadsweekly downloads

    7

    version

    0.1.5

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar