Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    grunt-three-objpublic

    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

    install

    npm i grunt-three-obj

    Downloadslast 7 days

    1

    version

    0.3.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar