5.0.0 • Published 7 years ago

grunt-regenerator v5.0.0

Weekly downloads
23
License
MIT
Repository
github
Last release
7 years ago

Deprecated

Use Babel instead.


grunt-regenerator Build Status

Transpile ES2015 generator functions to ES5 with Regenerator

Issues with the output should be reported on the Regenerator issue tracker.

Install

$ npm install --save-dev grunt-regenerator

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	regenerator: {
		options: {
			includeRuntime: true
		},
		dist: {
			files: {
				'dist/main.js': 'src/main.js'
			}
		}
	}
});

grunt.registerTask('default', ['regenerator']);

Options

includeRuntime

Type: boolean Default: false

A small runtime library (less than 1KB compressed) is required to provide the wrapGenerator function. You can install it either as a CommonJS module or as a standalone .js file, whichever you prefer.

License

MIT © Sindre Sorhus

5.0.0

7 years ago

4.0.0

8 years ago

3.1.0

9 years ago

3.0.0

10 years ago

2.0.0

11 years ago

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago

0.3.0

11 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago