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

    grunt-source-wrappublic

    grunt-source-wrap

    wap sources

    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-source-wrap --save-dev

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

    grunt.loadNpmTasks('grunt-source-wrap');

    The "source_wrap" task

    source_wrap: {
        test:{
            files: [{
                expand: true,
                cwd: 'test/1.0',
                src: ['**/*.js','**/*.css','!**/*.cah.js'],
                dest: 'test/1.0',
                ext: '.cah.js',
                funcName : 'window.lib.awp.cache'
            }]
        }
    }
    

    TODO

    1. support user define template
    2. support user define wrapper

    Keywords

    none

    install

    npm i grunt-source-wrap

    Downloadslast 7 days

    1

    version

    0.1.4

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar