grunt-to-commonjs
v1.3.6
Published
[](https://travis-ci.org/Vomvoru/grunt-to-commonjs)
Readme
grunt-to-commonjs 1.3.5
amd source -> commonjs source + amd source
install
npm
npm install grunt-to-commonjscode
grunt.loadNpmTasks('grunt-to-commonjs');Use
toCommonjs:{
//options . etc..
}the same option r.js example
example
module.exports = function (grunt) {
grunt.initConfig({
toCommonjs: {
options: {
baseUrl: 'test/files',
optimize: 'none'
},
dependence: {
options: {
out: 'test/dist/dependence.js',
name: 'dependence'
}
},
defineFunction: {
options: {
out: 'test/dist/defineFunction.js',
name: 'defineFunction'
}
},
defineObejct: {
options: {
out: 'test/dist/defineObejct.js',
name: 'defineObejct'
}
},
other: {
options: {
baseUrl: 'test/files/folder',
out: 'test/dist/other.js',
name: 'other'
}
}
}
});
grunt.loadNpmTasks('grunt-to-commonjs');
grunt.registerTask('test-build', ['toCommonjs']);
};
Release History
- 2014-08-30
v1.3.4 bug fixed
v1.3.5 bug fixed
- 2014-08-28
v1.3.0
v1.3.3 bug fixed
...
2014-08-22
v0.0.0
