0.1.1 • Published 10 years ago

fis-postprocessor-ypm v0.1.1

Weekly downloads
11
License
-
Repository
github
Last release
10 years ago

fis-postprocessor-ypm

A postprocessor plugin for ypm to wrap javascript with closure or amd define.

settings

$ vi path/to/project/fis-conf.js
fis.config.merge({
    settings : {
        postprocessor : {
            jswrapper : {
                //wrap type. if omitted, it will wrap js file with '(function(){...})();'.
                type : 'amd',
                //you can use template also, ${content} means the file content
                //template : '!function(){${content}}();',
                //wrap all js file, default is false, wrap modular js file only.
                wrapAll : true
            }
        }
    }
});
0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago