grunt-source-wrap

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-source-wrap

Weekly Downloads

1

Version

0.1.4

License

none

Last publish

Collaborators

  • jiawulu