diff --git a/.gitignore b/.gitignore index 9bdf355..a56013f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +public/jspm_packages node_modules .DS_Store .env \ No newline at end of file diff --git a/package.json b/package.json index e162241..719a6d7 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,12 @@ "scripts": { "start": "node -r 'babel/register' app.js", "test": "mocha --require co-mocha --compilers js:babel/register test/**/*.js --timeout=10000", - "build": "browserify ./views/app.jsx > ./public/javascript/bundle.js", + "build": "babel -d public/views views", "watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"", "watch-server": "nodemon -x \"node -r 'babel/register'\" -e js,jsx -i public/ app.js", - "watch-js": "browserify ./views/app.jsx | uglifyjs -cm 2>/dev/null > ./public/scripts/bundle.js", - "clean": "rm -f ./public/scripts/bundle.js" + "watch-js": "babel -wd public/views views", + "clean": "rm -f ./public/scripts/bundle.js", + "postinstall": "jspm install" }, "engines": { "iojs": "2.3.0" @@ -31,6 +32,7 @@ "browserify": "^10.1.3", "co": "^4.5.4", "debug": "^2.1.1", + "jspm": "^0.15.7", "koa": "^0.21.0", "koa-bodyparser": "^2.0.0", "koa-compress": "^1.0.8", @@ -60,5 +62,23 @@ "nodemon": "^1.3.7", "parallelshell": "^1.1.1", "should": "^6.0.3" + }, + "jspm": { + "directories": { + "baseURL": "public" + }, + "dependencies": { + "babel-core": "npm:babel-core@^5.5.8", + "jsx": "github:floatdrop/plugin-jsx@^1.1.0", + "react": "npm:react@0.13.3", + "react-google-analytics": "npm:react-google-analytics@0.2.0", + "react-router": "npm:react-router@0.13.3", + "superagent": "npm:superagent@^1.2.0" + }, + "devDependencies": { + "babel": "npm:babel-core@^5.1.13", + "babel-runtime": "npm:babel-runtime@^5.1.13", + "core-js": "npm:core-js@^0.9.4" + } } } diff --git a/public/config.js b/public/config.js new file mode 100644 index 0000000..c1b734f --- /dev/null +++ b/public/config.js @@ -0,0 +1,573 @@ +System.config({ + "baseURL": "/", + "transpiler": "babel", + "babelOptions": { + "optional": [ + "runtime" + ] + }, + "paths": { + "*": "*.js", + "*.jsx": "*.js", + "github:*": "jspm_packages/github/*.js", + "npm:*": "jspm_packages/npm/*.js" + } +}); + +System.config({ + "map": { + "core-js": "npm:core-js@0.9.17", + "jsx": "github:floatdrop/plugin-jsx@1.1.0", + "react": "npm:react@0.13.3", + "react-google-analytics": "npm:react-google-analytics@0.2.0", + "react-router": "npm:react-router@0.13.3", + "superagent": "npm:superagent@1.2.0", + "github:floatdrop/plugin-jsx@1.1.0": { + "react-tools": "npm:react-tools@0.13.3" + }, + "github:jspm/nodelibs-assert@0.1.0": { + "assert": "npm:assert@1.3.0" + }, + "github:jspm/nodelibs-buffer@0.1.0": { + "buffer": "npm:buffer@3.2.2" + }, + "github:jspm/nodelibs-constants@0.1.0": { + "constants-browserify": "npm:constants-browserify@0.0.1" + }, + "github:jspm/nodelibs-crypto@0.1.0": { + "crypto-browserify": "npm:crypto-browserify@3.9.14" + }, + "github:jspm/nodelibs-events@0.1.1": { + "events": "npm:events@1.0.2" + }, + "github:jspm/nodelibs-http@1.7.1": { + "Base64": "npm:Base64@0.2.1", + "events": "github:jspm/nodelibs-events@0.1.1", + "inherits": "npm:inherits@2.0.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "url": "github:jspm/nodelibs-url@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "github:jspm/nodelibs-https@0.1.0": { + "https-browserify": "npm:https-browserify@0.0.0" + }, + "github:jspm/nodelibs-net@0.1.2": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "http": "github:jspm/nodelibs-http@1.7.1", + "net": "github:jspm/nodelibs-net@0.1.2", + "process": "github:jspm/nodelibs-process@0.1.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "timers": "github:jspm/nodelibs-timers@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "github:jspm/nodelibs-os@0.1.0": { + "os-browserify": "npm:os-browserify@0.1.2" + }, + "github:jspm/nodelibs-path@0.1.0": { + "path-browserify": "npm:path-browserify@0.0.0" + }, + "github:jspm/nodelibs-process@0.1.1": { + "process": "npm:process@0.10.1" + }, + "github:jspm/nodelibs-querystring@0.1.0": { + "querystring": "npm:querystring@0.2.0" + }, + "github:jspm/nodelibs-stream@0.1.0": { + "stream-browserify": "npm:stream-browserify@1.0.0" + }, + "github:jspm/nodelibs-string_decoder@0.1.0": { + "string_decoder": "npm:string_decoder@0.10.31" + }, + "github:jspm/nodelibs-timers@0.1.0": { + "timers-browserify": "npm:timers-browserify@1.4.1" + }, + "github:jspm/nodelibs-tty@0.1.0": { + "tty-browserify": "npm:tty-browserify@0.0.0" + }, + "github:jspm/nodelibs-url@0.1.0": { + "url": "npm:url@0.10.3" + }, + "github:jspm/nodelibs-util@0.1.0": { + "util": "npm:util@0.10.3" + }, + "github:jspm/nodelibs-vm@0.1.0": { + "vm-browserify": "npm:vm-browserify@0.0.4" + }, + "github:jspm/nodelibs-zlib@0.1.0": { + "browserify-zlib": "npm:browserify-zlib@0.1.4" + }, + "npm:amdefine@0.1.1": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "module": "github:jspm/nodelibs-module@0.1.0", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:asn1.js@2.0.4": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "bn.js": "npm:bn.js@2.0.5", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "inherits": "npm:inherits@2.0.1", + "minimalistic-assert": "npm:minimalistic-assert@1.0.0", + "vm": "github:jspm/nodelibs-vm@0.1.0" + }, + "npm:assert@1.3.0": { + "util": "npm:util@0.10.3" + }, + "npm:ast-types@0.6.16": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:async@0.9.2": { + "process": "github:jspm/nodelibs-process@0.1.1", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:babel-runtime@5.5.8": { + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:browserify-aes@1.0.1": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "create-hash": "npm:create-hash@1.1.1", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "inherits": "npm:inherits@2.0.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:browserify-rsa@2.0.1": { + "bn.js": "npm:bn.js@2.0.5", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "constants": "github:jspm/nodelibs-constants@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "randombytes": "npm:randombytes@2.0.1" + }, + "npm:browserify-sign@3.0.2": { + "bn.js": "npm:bn.js@2.0.5", + "browserify-rsa": "npm:browserify-rsa@2.0.1", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "create-hash": "npm:create-hash@1.1.1", + "create-hmac": "npm:create-hmac@1.1.3", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "elliptic": "npm:elliptic@3.1.0", + "inherits": "npm:inherits@2.0.1", + "parse-asn1": "npm:parse-asn1@3.0.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:browserify-zlib@0.1.4": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "pako": "npm:pako@0.2.7", + "process": "github:jspm/nodelibs-process@0.1.1", + "readable-stream": "npm:readable-stream@1.0.27-1", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:buffer@3.2.2": { + "base64-js": "npm:base64-js@0.0.8", + "ieee754": "npm:ieee754@1.1.6", + "is-array": "npm:is-array@1.0.1" + }, + "npm:combined-stream@0.0.7": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "delayed-stream": "npm:delayed-stream@0.0.5", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:commander@2.5.1": { + "child_process": "github:jspm/nodelibs-child_process@0.1.0", + "events": "github:jspm/nodelibs-events@0.1.1", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:commoner@0.10.1": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "child_process": "github:jspm/nodelibs-child_process@0.1.0", + "commander": "npm:commander@2.5.1", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "events": "github:jspm/nodelibs-events@0.1.1", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "glob": "npm:glob@4.2.2", + "graceful-fs": "npm:graceful-fs@3.0.8", + "iconv-lite": "npm:iconv-lite@0.4.10", + "install": "npm:install@0.1.8", + "mkdirp": "npm:mkdirp@0.5.1", + "path": "github:jspm/nodelibs-path@0.1.0", + "private": "npm:private@0.1.6", + "process": "github:jspm/nodelibs-process@0.1.1", + "q": "npm:q@1.1.2", + "recast": "npm:recast@0.9.18", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:constants-browserify@0.0.1": { + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:core-js@0.9.17": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "process": "github:jspm/nodelibs-process@0.1.1", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:core-util-is@1.0.1": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0" + }, + "npm:create-ecdh@2.0.1": { + "bn.js": "npm:bn.js@2.0.5", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "elliptic": "npm:elliptic@3.1.0" + }, + "npm:create-hash@1.1.1": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "inherits": "npm:inherits@2.0.1", + "ripemd160": "npm:ripemd160@1.0.1", + "sha.js": "npm:sha.js@2.4.2", + "stream": "github:jspm/nodelibs-stream@0.1.0" + }, + "npm:create-hmac@1.1.3": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "create-hash": "npm:create-hash@1.1.1", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "inherits": "npm:inherits@2.0.1", + "stream": "github:jspm/nodelibs-stream@0.1.0" + }, + "npm:crypto-browserify@3.9.14": { + "browserify-aes": "npm:browserify-aes@1.0.1", + "browserify-sign": "npm:browserify-sign@3.0.2", + "create-ecdh": "npm:create-ecdh@2.0.1", + "create-hash": "npm:create-hash@1.1.1", + "create-hmac": "npm:create-hmac@1.1.3", + "diffie-hellman": "npm:diffie-hellman@3.0.2", + "inherits": "npm:inherits@2.0.1", + "pbkdf2": "npm:pbkdf2@3.0.4", + "public-encrypt": "npm:public-encrypt@2.0.1", + "randombytes": "npm:randombytes@2.0.1" + }, + "npm:debug@2.2.0": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "ms": "npm:ms@0.7.1", + "net": "github:jspm/nodelibs-net@0.1.2", + "process": "github:jspm/nodelibs-process@0.1.1", + "tty": "github:jspm/nodelibs-tty@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:delayed-stream@0.0.5": { + "stream": "github:jspm/nodelibs-stream@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:diffie-hellman@3.0.2": { + "bn.js": "npm:bn.js@2.0.5", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "miller-rabin": "npm:miller-rabin@2.0.1", + "randombytes": "npm:randombytes@2.0.1", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:elliptic@3.1.0": { + "bn.js": "npm:bn.js@2.0.5", + "brorand": "npm:brorand@1.0.5", + "hash.js": "npm:hash.js@1.0.3", + "inherits": "npm:inherits@2.0.1", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:envify@3.4.0": { + "jstransform": "npm:jstransform@10.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "through": "npm:through@2.3.7" + }, + "npm:esprima-fb@10001.1.0-dev-harmony-fb": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:esprima-fb@13001.1001.0-dev-harmony-fb": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:form-data@0.2.0": { + "async": "npm:async@0.9.2", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "combined-stream": "npm:combined-stream@0.0.7", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "http": "github:jspm/nodelibs-http@1.7.1", + "https": "github:jspm/nodelibs-https@0.1.0", + "mime-types": "npm:mime-types@2.0.14", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "url": "github:jspm/nodelibs-url@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:formidable@1.0.14": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "events": "github:jspm/nodelibs-events@0.1.1", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "http": "github:jspm/nodelibs-http@1.7.1", + "os": "github:jspm/nodelibs-os@0.1.0", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "querystring": "github:jspm/nodelibs-querystring@0.1.0", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:glob@4.2.2": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "events": "github:jspm/nodelibs-events@0.1.1", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "inflight": "npm:inflight@1.0.4", + "inherits": "npm:inherits@2.0.1", + "minimatch": "npm:minimatch@1.0.0", + "once": "npm:once@1.3.2", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:graceful-fs@3.0.8": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "constants": "github:jspm/nodelibs-constants@0.1.0", + "module": "github:jspm/nodelibs-module@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "util": "github:jspm/nodelibs-util@0.1.0", + "vm": "github:jspm/nodelibs-vm@0.1.0" + }, + "npm:hash.js@1.0.3": { + "inherits": "npm:inherits@2.0.1" + }, + "npm:https-browserify@0.0.0": { + "http": "github:jspm/nodelibs-http@1.7.1" + }, + "npm:iconv-lite@0.4.10": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:inflight@1.0.4": { + "once": "npm:once@1.3.2", + "process": "github:jspm/nodelibs-process@0.1.1", + "wrappy": "npm:wrappy@1.0.1" + }, + "npm:inherits@2.0.1": { + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:install@0.1.8": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:jstransform@10.1.0": { + "base62": "npm:base62@0.1.1", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "esprima-fb": "npm:esprima-fb@13001.1001.0-dev-harmony-fb", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "process": "github:jspm/nodelibs-process@0.1.1", + "source-map": "npm:source-map@0.1.31" + }, + "npm:methods@1.0.1": { + "http": "github:jspm/nodelibs-http@1.7.1" + }, + "npm:miller-rabin@2.0.1": { + "bn.js": "npm:bn.js@2.0.5", + "brorand": "npm:brorand@1.0.5" + }, + "npm:mime-db@1.12.0": { + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:mime-types@2.0.14": { + "mime-db": "npm:mime-db@1.12.0" + }, + "npm:mime@1.3.4": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:minimatch@1.0.0": { + "lru-cache": "npm:lru-cache@2.6.4", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "sigmund": "npm:sigmund@1.0.1" + }, + "npm:mkdirp@0.5.1": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "minimist": "npm:minimist@0.0.8", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:once@1.3.2": { + "wrappy": "npm:wrappy@1.0.1" + }, + "npm:os-browserify@0.1.2": { + "os": "github:jspm/nodelibs-os@0.1.0" + }, + "npm:pako@0.2.7": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:parse-asn1@3.0.1": { + "asn1.js": "npm:asn1.js@2.0.4", + "browserify-aes": "npm:browserify-aes@1.0.1", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "create-hash": "npm:create-hash@1.1.1", + "pbkdf2": "npm:pbkdf2@3.0.4", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:path-browserify@0.0.0": { + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:pbkdf2@3.0.4": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "child_process": "github:jspm/nodelibs-child_process@0.1.0", + "create-hmac": "npm:create-hmac@1.1.3", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1", + "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:process@0.11.1": { + "assert": "github:jspm/nodelibs-assert@0.1.0" + }, + "npm:public-encrypt@2.0.1": { + "bn.js": "npm:bn.js@2.0.5", + "browserify-rsa": "npm:browserify-rsa@2.0.1", + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "create-hash": "npm:create-hash@1.1.1", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "parse-asn1": "npm:parse-asn1@3.0.1", + "randombytes": "npm:randombytes@2.0.1" + }, + "npm:punycode@1.3.2": { + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:q@1.1.2": { + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:randombytes@2.0.1": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "crypto": "github:jspm/nodelibs-crypto@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:react-google-analytics@0.2.0": { + "react": "npm:react@0.13.3" + }, + "npm:react-router@0.13.3": { + "object-assign": "npm:object-assign@2.1.1", + "process": "github:jspm/nodelibs-process@0.1.1", + "qs": "npm:qs@2.4.1", + "react": "npm:react@0.13.3" + }, + "npm:react-tools@0.13.3": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "commoner": "npm:commoner@0.10.1", + "jstransform": "npm:jstransform@10.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:react@0.13.3": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "envify": "npm:envify@3.4.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:readable-stream@1.0.27-1": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "core-util-is": "npm:core-util-is@1.0.1", + "events": "github:jspm/nodelibs-events@0.1.1", + "inherits": "npm:inherits@2.0.1", + "isarray": "npm:isarray@0.0.1", + "process": "github:jspm/nodelibs-process@0.1.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "string_decoder": "npm:string_decoder@0.10.31" + }, + "npm:recast@0.9.18": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "ast-types": "npm:ast-types@0.6.16", + "esprima-fb": "npm:esprima-fb@10001.1.0-dev-harmony-fb", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "private": "npm:private@0.1.6", + "process": "github:jspm/nodelibs-process@0.1.1", + "source-map": "npm:source-map@0.1.43" + }, + "npm:ripemd160@1.0.1": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:sha.js@2.4.2": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "inherits": "npm:inherits@2.0.1", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:sigmund@1.0.1": { + "http": "github:jspm/nodelibs-http@1.7.1", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:source-map@0.1.31": { + "amdefine": "npm:amdefine@0.1.1", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:source-map@0.1.43": { + "amdefine": "npm:amdefine@0.1.1", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:stream-browserify@1.0.0": { + "events": "github:jspm/nodelibs-events@0.1.1", + "inherits": "npm:inherits@2.0.1", + "readable-stream": "npm:readable-stream@1.0.27-1" + }, + "npm:string_decoder@0.10.31": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0" + }, + "npm:superagent@1.2.0": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "component-emitter": "npm:component-emitter@1.1.2", + "cookiejar": "npm:cookiejar@2.0.1", + "debug": "npm:debug@2.2.0", + "extend": "npm:extend@1.2.1", + "form-data": "npm:form-data@0.2.0", + "formidable": "npm:formidable@1.0.14", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "http": "github:jspm/nodelibs-http@1.7.1", + "https": "github:jspm/nodelibs-https@0.1.0", + "methods": "npm:methods@1.0.1", + "mime": "npm:mime@1.3.4", + "qs": "npm:qs@2.3.3", + "readable-stream": "npm:readable-stream@1.0.27-1", + "reduce-component": "npm:reduce-component@1.0.1", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0", + "systemjs-json": "github:systemjs/plugin-json@0.1.0", + "url": "github:jspm/nodelibs-url@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0", + "zlib": "github:jspm/nodelibs-zlib@0.1.0" + }, + "npm:through@2.3.7": { + "process": "github:jspm/nodelibs-process@0.1.1", + "stream": "github:jspm/nodelibs-stream@0.1.0" + }, + "npm:timers-browserify@1.4.1": { + "process": "npm:process@0.11.1" + }, + "npm:url@0.10.3": { + "assert": "github:jspm/nodelibs-assert@0.1.0", + "punycode": "npm:punycode@1.3.2", + "querystring": "npm:querystring@0.2.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:util@0.10.3": { + "inherits": "npm:inherits@2.0.1", + "process": "github:jspm/nodelibs-process@0.1.1" + }, + "npm:vm-browserify@0.0.4": { + "indexof": "npm:indexof@0.0.1" + } + } +}); + diff --git a/views/app.jsx b/views/app.jsx index aee1fb7..8b99986 100644 --- a/views/app.jsx +++ b/views/app.jsx @@ -20,7 +20,9 @@ var App = React.createClass({ - + + ); @@ -35,18 +37,17 @@ var routes = ( ); -module.exports.routes = routes; - if (typeof window !== 'undefined') { - window.onload = function() { - Router.run(routes, Router.HistoryLocation, function (Handler) { - if (typeof window.recents !== 'undefined') { - React.render(, document); - } else if (typeof shares !== 'undefined') { - React.render(, document); - } - }); - ga('create', 'UA-66209-8', 'auto'); - ga('send', 'pageview'); - }; + console.log("HEREER") + Router.run(routes, Router.HistoryLocation, function (Handler) { + if (typeof window.recents !== 'undefined') { + React.render(, document); + } else if (typeof shares !== 'undefined') { + React.render(, document); + } + }); + ga('create', 'UA-66209-8', 'auto'); + ga('send', 'pageview'); } + +module.exports.routes = routes;