0.0.4 • Published 9 years ago

grunt-insert-varjs v0.0.4

Weekly downloads
13
License
-
Repository
github
Last release
9 years ago

#grunt-insert-varjs

grunt.initConfig({
        varJs   : {
            fileone   : {
                output  : "/lib/config.js",
                keyName : "__varJs",
                vars    : {
                    version     : true,
                    name        : true,
                    age         : 18
                }
            },
            filetwo   : {
                output  : "/lib/configOther.js",
                keyName : "__John",
                vars    : {
                    ver             : true,
                    fav             : true,
                    other           : {
                        friends     : [
                            { name : true , age : 20 },
                            { name : true , age : 21 },
                            { name : true , age : 22 }
                        ]
                    }
                }
            }
        }
    });

#options

###output the js file output file

###vars the variant you want to insert into js file it should be a json the value is true means replace to a md5 value

###keyName the variant name you want to use in js files

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago