1 module.exports = function( grunt ) {
4 grunt.loadNpmTasks( "grunt-contrib-requirejs" );
6 // Project configuration.
8 pkg: grunt.file.readJSON( "package.json" ),
14 "libs": "../../libs/js",
15 "jqm": "../../libs/js/jquery-mobile-1.2.0/js"
20 location : '../../libs/js/jquery-mobile-1.2.0/js',
27 //Finds require() dependencies inside a require() or define call.
28 findNestedDependencies: true,
30 //If skipModuleInsertion is false, then files that do not use define()
31 //to define modules will get a define() placeholder inserted for them.
32 //Also, require.pause/resume calls will be inserted.
33 //Set it to true to avoid this. This is useful if you are building code that
34 //does not use require() in the built project or in the JS files, but you
35 //still want to use the optimization tool from RequireJS to concatenate modules
37 skipModuleInsertion: true,
39 include: ( grunt.option( "modules" ) || "jquery.mobile.tizen.full" ).split( "," ),
41 out: "build/tizen-web-ui-fw/tizen-web-ui-fw.full.js",
47 onBuildWrite: function (moduleName, path, contents) {
48 return contents.replace(/__version__/g, grunt.config.process( "\"<%= pkg.version %>\"" ) );
56 grunt.registerTask( "js", [ "requirejs" ] );