grunt-to-commonjs

1.3.6 • Public • Published

Build Status

grunt-to-commonjs 1.3.5

amd source -> commonjs source + amd source

install

npm

  npm install grunt-to-commonjs

code

  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


Thank you. 😆

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-to-commonjs

Weekly Downloads

0

Version

1.3.6

License

MIT

Last publish

Collaborators

  • vomvoru