Skip to content

Instantly share code, notes, and snippets.

View drewlustro's full-sized avatar
💭
on windoze

Drew Lustro drewlustro

💭
on windoze
View GitHub Profile
@drewlustro
drewlustro / brace.js
Last active January 4, 2016 10:19
Brace.Object is undefined in chapter.js -- apologies that Object needs to be fully renamed to SceneObject. Please ignore that.
(function() {
Brace = {};
define('brace/brace', ['THREE', 'brace/base', 'brace/publisher', 'brace/chapter', 'brace/app', 'brace/object', 'brace/settings'],
function (THREE, Base, Publisher, Chapter, App, SceneObject, Settings) {
Base(Brace);
Publisher(Brace);
SceneObject(Brace);
@drewlustro
drewlustro / base.js
Last active January 4, 2016 10:18
I'm trying to create an AMD-style library called "Brace" using requirejs and I'm having issues. I try to make the master Brace object and decorate it with classes. On build, "Brace" is undefined for the Brace.Base class. How do I attach class modules to the master Brace object? I'm surely missing something here about exports or global scope or s…
// brace/brace.js
(function(Brace) {
define('brace/base',
['THREE'],
function (THREE) {
Base = function() {
Object.call(this);
@drewlustro
drewlustro / Gruntfile.js
Created January 14, 2014 00:11
Gruntfile.js with attempted CORS middleware in connect:livereload:options
// Generated on 2013-12-19 using generator-webapp 0.4.6
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {