1.3.6 • Published 10 years ago

grunt-to-commonjs v1.3.6

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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. :laughing:

1.3.6

10 years ago

1.3.5

10 years ago

1.3.4

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago