grunt-import-require

0.1.0 • Public • Published

grunt-import-require

Gruntfile.js ----use----

importRequire: { default_options: { options: { resource: 'src/recfs/js/module.config.js', configOption : { recfs : 'dist/recfs/', jsd : 'dist/recfs/js/display' } }, files: [ { expand: true, cwd: 'dist/recfs/js/', src: ['**/*.js'], dest: 'dist/recfs/js/' } ] } }

grunt.loadNpmTasks('grunt-import-require');

-------about options.resource config----------

1、module.config.js [for seajs]

seajs.config({ "paths": { "recfs" : "dist/recfs/", "jsd": "dist/recfs/js/display" }, "alias": { "juicer" : "recfs/js/lib/juicer/0.6.5/juicer",

    "120-240/b" : "jsd/120-240/b/1.0.7/b",
    "200-200/b" : "jsd/200-200/b/1.0.7/b"
}

});

2、resource.config.json [for json]

{ "a" : "test/lib/a.js", "b" : "test/lib/b.js", "t" : "test/lib/tt/t.js", "u" : "test/lib/u/u.js" }

Readme

Keywords

Package Sidebar

Install

npm i grunt-import-require

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • aeckoo