build/updates/builder.js
function (cb) {
            var self = this;
            var starttime = (new Date()).getTime();
            Y.log('Compiling Templates', 'info', 'builder');

            this.mixExternal(function () {
                self.makeDirs(function () {
                    Y.log('Copying Assets', 'info', 'builder');
                    if (!Y.Files.isDirectory(path.join(self.options.outdir, 'assets'))) {
                        fs.mkdirSync(path.join(self.options.outdir, 'assets'), 0777);
                    }
                    Y.Files.copyAssets([
                            path.join(DEFAULT_THEME, 'assets'),
                            path.join(themeDir, 'assets')
                        ],
                        path.join(self.options.outdir, 'assets'),
                        false,
                        function () {
                            var cstack = new Y.Parallel();

                            self.writeModules(cstack.add(function () {
                                self.writeClasses(cstack.add(function () {
                                    if (!self.options.nocode) {
                                        self.writeFiles(cstack.add(noop));
                                    }
                                }));
                            }));
                            /*
                        self.writeModules(cstack.add(noop));
                        self.writeClasses(cstack.add(noop));
                        if (!self.options.nocode) {
                            self.writeFiles(cstack.add(noop));
                        }
                        */
                            self.writeIndex(cstack.add(noop));
                            self.writeAPIMeta(cstack.add(noop));

                            cstack.done(function () {
                                var endtime = (new Date()).getTime();
                                var timer = ((endtime - starttime) / 1000) + ' seconds';
                                Y.log('Finished writing ' + self.files + ' files in ' + timer, 'info', 'builder');
                                if (cb) {
                                    cb();
                                }
                            });
                        });
                });
            });
        }
function (cb) {
            var self = this;
            var starttime = (new Date()).getTime();
            Y.log('Compiling Templates', 'info', 'builder');

            this.mixExternal(function () {
                self.makeDirs(function () {
                    Y.log('Copying Assets', 'info', 'builder');
                    if (!Y.Files.isDirectory(path.join(self.options.outdir, 'assets'))) {
                        fs.mkdirSync(path.join(self.options.outdir, 'assets'), 0777);
                    }
                    Y.Files.copyAssets([
                            path.join(DEFAULT_THEME, 'assets'),
                            path.join(themeDir, 'assets')
                        ],
                        path.join(self.options.outdir, 'assets'),
                        false,
                        function () {
                            var cstack = new Y.Parallel();

                            self.writeModules(cstack.add(function () {
                                self.writeClasses(cstack.add(function () {
                                    if (!self.options.nocode) {
                                        self.writeFiles(cstack.add(noop));
                                    }
                                }));
                            }));
                            /*
                        self.writeModules(cstack.add(noop));
                        self.writeClasses(cstack.add(noop));
                        if (!self.options.nocode) {
                            self.writeFiles(cstack.add(noop));
                        }
                        */
                            self.writeIndex(cstack.add(noop));
                            self.writeAPIMeta(cstack.add(noop));

                            cstack.done(function () {
                                var endtime = (new Date()).getTime();
                                var timer = ((endtime - starttime) / 1000) + ' seconds';
                                Y.log('Finished writing ' + self.files + ' files in ' + timer, 'info', 'builder');
                                if (cb) {
                                    cb();
                                }
                            });
                        });
                });
            });
        }
function ( cb ) { var self = this ; var starttime = ( new Date ( ) ) . getTime ( ) ; Y . log ( 'Compiling Templates' , 'info' , 'builder' ) ; this . mixExternal ( function ( ) { self . makeDirs ( function ( ) { Y . log ( 'Copying Assets' , 'info' , 'builder' ) ; if ( ! Y . Files . isDirectory ( path . join ( self . options . outdir , 'assets' ) ) ) { fs . mkdirSync ( path . join ( self . options . outdir , 'assets' ) , 0777 ) ; } Y . Files . copyAssets ( [ path . join ( DEFAULT_THEME , 'assets' ) , path . join ( themeDir , 'assets' ) ] , path . join ( self . options . outdir , 'assets' ) , false , function ( ) { var cstack = new Y . Parallel ( ) ; self . writeModules ( cstack . add ( function ( ) { self . writeClasses ( cstack . add ( function ( ) { if ( ! self . options . nocode ) { self . writeFiles ( cstack . add ( noop ) ) ; } } ) ) ; } ) ) ; /*
                        self.writeModules(cstack.add(noop));
                        self.writeClasses(cstack.add(noop));
                        if (!self.options.nocode) {
                            self.writeFiles(cstack.add(noop));
                        }
                        */ self . writeIndex ( cstack . add ( noop ) ) ; self . writeAPIMeta ( cstack . add ( noop ) ) ; cstack . done ( function ( ) { var endtime = ( new Date ( ) ) . getTime ( ) ; var timer = ( ( endtime - starttime ) / 1000 ) + ' seconds' ; Y . log ( 'Finished writing ' + self . files + ' files in ' + timer , 'info' , 'builder' ) ; if ( cb ) { cb ( ) ; } } ) ; } ) ; } ) ; } ) ; }
Compiles the templates from the meta-data provided by DocParser
@method compile
@param {Callback} cb The callback to execute after it's completed
Compiles the templates from the meta - data provided by DocParser