src/compiler.js
function generateFileName(className) {
    return className
        .replace(/component/gi, '')
        .replace(/system/gi, '')
        .replace('2D', '2d')
        .replace('3D', '3d')
        .replace(/^[A-Z]/, function(c) {
            return c.toLowerCase();
        })
        .replace(/[A-Z]/g, function(c) {
            return '-' + c.toLowerCase();
        }) + '.js';
}
function generateFileName(className) {
    return className
        .replace(/component/gi, '')
        .replace(/system/gi, '')
        .replace('2D', '2d')
        .replace('3D', '3d')
        .replace(/^[A-Z]/, function(c) {
            return c.toLowerCase();
        })
        .replace(/[A-Z]/g, function(c) {
            return '-' + c.toLowerCase();
        }) + '.js';
}
function generateFileName ( className ) { return className . replace ( / component / gi , '' ) . replace ( / system / gi , '' ) . replace ( '2D' , '2d' ) . replace ( '3D' , '3d' ) . replace ( / ^[A-Z] / , function ( c ) { return c . toLowerCase ( ) ; } ) . replace ( / [A-Z] / g , function ( c ) { return '-' + c . toLowerCase ( ) ; } ) + '.js' ; }
Generates a filename based on the class name given
@param {string} className
@returns {string}
Generates a filename based on the class name given