0.3.1 • Published 9 years ago

grunt-three-obj v0.3.1

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

Grunt Three OBJ

Grunt tasks for bulk conversion of OBJ files to Three.js JSON, using three-obj

Install

Install grunt-three-obj next to your project's gruntfile with:

npm install grunt-three-obj

This plugin requires Grunt ~0.4.0

Usage

Simply add this line to your project's Gruntfile.js gruntfile:

grunt.loadNpmTasks('grunt-three-obj');

Then specify your config:

	grunt.initConfig({
		three_obj: {
			options: {
				/** @optional  - if true the files are converted to binary JSON */
				minify: false
			},
			dist: {
				/** @required  - string (or array of) including grunt glob variables */
				src: ['./static/*/*.obj', './media/*/*.obj', './raw/*/*.obj'],
				/** @optional  - if provided the converted files will be saved in this folder instead */
				dest: './assets/'
			}
		}
	});

Credits

Created by Makis Tracend ( @tracend )

Distributed through Makesites.org

Released under the MIT license

0.3.1

9 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago