xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.14k stars 264 forks source link

prepare for converting es6 module #196

Closed axmand closed 6 years ago

axmand commented 7 years ago

Dear Lindsay Kay: thanks for your reply issue #195. I have tried to add rollup and babel plugins in grunt to wrap the entire library like this:

grunt.registerTask("snapshot", ["concat", "yuidoc", "uglify",'rollup']);
rollup: {
            options: {
                format: 'iife',
                moduleName :'xeogl',
                plugins: function () {
                    return [
                        resolve({
                            jsnext: true,
                            main: true
                        }),
                        commonjs(),
                        babel({
                            exclude: './node_modules/**'
                        })
                    ];
                }
            },
            files: {
                'dest':'build/xeogl.rollup.js',
                'src' : 'src/init.js',
            }
        },

and it runs well, the next step is to rewrite some 'class.extend' module as :

class XX extends XXX

if you have better idea, I will be grateful 😃

xeolabs commented 7 years ago

Yes it be a huge change - let me get back to you on this, I'll just discuss it with a colleague first.

MichaelDeBoey commented 6 years ago

@xeolabs Any news on this one? 🙂

xeolabs commented 6 years ago

@MichaelDeBoey actually I'm working on converting xeogl to ES6 at the moment! Will probably have this done sometime next week.

\ping @axmand

xeolabs commented 6 years ago

Conversion to ES6 is now complete in this branch: https://github.com/xeolabs/xeogl/tree/es6

I'll merge into master for the next release (v0.9).

Preview of V0.9 release notes: https://github.com/xeolabs/xeogl/wiki/Updates-in-xeogl-V0.9