diff --git a/Makefile b/Makefile index 3249b36..51aabc9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,13 @@ +install: + npm install jspm --save-dev + jspm init + jspm install core-js + jspm install react + jspm install react-dom + jspm install fetch + jspm dl-loader --latest + npm install uglifyjs + npm install html-dist build: - rm -r dist mkdir dist diff --git a/app/main.js b/app/main.js index b785822..b97cd81 100644 --- a/app/main.js +++ b/app/main.js @@ -1,10 +1,11 @@ import 'fetch'; -import React from 'react'; +import React from 'react'; +import ReactDOM from 'react-dom'; import RepositoryList from './repository-list'; -class OpenSauce extends React.Component { - render() { +var OpenSauce = React.createClass({ + render: function() { return (

Repositories for { this.props.name }

@@ -12,6 +13,6 @@ class OpenSauce extends React.Component {
) } -} +}); -React.render(, document.getElementById('app')); +ReactDOM.render(, document.getElementById('app')); diff --git a/config.js b/config.js index d5c414b..d3c03f2 100644 --- a/config.js +++ b/config.js @@ -1,126 +1,230 @@ System.config({ - "baseURL": "/", - "transpiler": "babel", - "babelOptions": { + baseURL: "/", + defaultJSExtensions: true, + transpiler: "babel", + babelOptions: { "blacklist": [], "optional": [ "runtime" ] }, - "paths": { - "*": "*.js", - "github:*": "jspm_packages/github/*.js", - "npm:*": "jspm_packages/npm/*.js" - } -}); + paths: { + "github:*": "jspm_packages/github/*", + "npm:*": "jspm_packages/npm/*" + }, -System.config({ - "map": { - "babel": "npm:babel-core@5.1.10", - "babel-runtime": "npm:babel-runtime@5.1.10", - "core-js": "npm:core-js@0.8.4", - "fetch": "npm:whatwg-fetch@0.7.0", - "react": "npm:react@0.13.1", + map: { + "babel": "npm:babel-core@5.8.38", + "babel-runtime": "npm:babel-runtime@5.8.38", + "core-js": "npm:core-js@1.2.6", + "fetch": "github:github/fetch@1.0.0", + "react": "npm:react@15.0.2", + "react-dom": "npm:react-dom@15.0.2", + "github:jspm/nodelibs-assert@0.1.0": { + "assert": "npm:assert@1.3.0" + }, "github:jspm/nodelibs-buffer@0.1.0": { - "buffer": "npm:buffer@3.1.2" + "buffer": "npm:buffer@3.6.0" + }, + "github:jspm/nodelibs-domain@0.1.0": { + "domain-browser": "npm:domain-browser@1.1.7" }, - "github:jspm/nodelibs-events@0.1.0": { - "events-browserify": "npm:events-browserify@0.0.1" + "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-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-process@0.1.2": { + "process": "npm:process@0.11.2" }, "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-url@0.1.0": { + "url": "npm:url@0.10.3" + }, "github:jspm/nodelibs-util@0.1.0": { "util": "npm:util@0.10.3" }, - "npm:amdefine@0.1.0": { - "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" + "github:jspm/nodelibs-zlib@0.1.0": { + "browserify-zlib": "npm:browserify-zlib@0.1.4" }, - "npm:buffer@3.1.2": { + "npm:asap@2.0.3": { + "domain": "github:jspm/nodelibs-domain@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.2" + }, + "npm:assert@1.3.0": { + "util": "npm:util@0.10.3" + }, + "npm:babel-plugin-syntax-flow@6.5.0": { + "babel-runtime": "npm:babel-runtime@5.8.38" + }, + "npm:babel-runtime@5.8.38": { + "process": "github:jspm/nodelibs-process@0.1.2" + }, + "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.8", + "process": "github:jspm/nodelibs-process@0.1.2", + "readable-stream": "npm:readable-stream@2.1.2", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:buffer@3.6.0": { "base64-js": "npm:base64-js@0.0.8", - "ieee754": "npm:ieee754@1.1.4", - "is-array": "npm:is-array@1.0.1" + "child_process": "github:jspm/nodelibs-child_process@0.1.0", + "fs": "github:jspm/nodelibs-fs@0.1.2", + "ieee754": "npm:ieee754@1.1.6", + "isarray": "npm:isarray@1.0.0", + "process": "github:jspm/nodelibs-process@0.1.2" }, - "npm:core-js@0.8.4": { - "process": "github:jspm/nodelibs-process@0.1.1" + "npm:core-js@1.2.6": { + "fs": "github:jspm/nodelibs-fs@0.1.2", + "path": "github:jspm/nodelibs-path@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.2", + "systemjs-json": "github:systemjs/plugin-json@0.1.2" }, - "npm:core-util-is@1.0.1": { + "npm:core-util-is@1.0.2": { "buffer": "github:jspm/nodelibs-buffer@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:domain-browser@1.1.7": { + "events": "github:jspm/nodelibs-events@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:encoding@0.1.12": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "iconv-lite": "npm:iconv-lite@0.4.13" + }, + "npm:fbjs@0.8.1": { + "babel-plugin-syntax-flow": "npm:babel-plugin-syntax-flow@6.5.0", + "core-js": "npm:core-js@1.2.6", + "isomorphic-fetch": "npm:isomorphic-fetch@2.2.1", + "loose-envify": "npm:loose-envify@1.1.0", + "process": "github:jspm/nodelibs-process@0.1.2", + "promise": "npm:promise@7.1.1", + "ua-parser-js": "npm:ua-parser-js@0.7.10" }, - "npm:events-browserify@0.0.1": { - "process": "github:jspm/nodelibs-process@0.1.1" + "npm:https-browserify@0.0.0": { + "http": "github:jspm/nodelibs-http@1.7.1" + }, + "npm:iconv-lite@0.4.13": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.2", + "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.2" }, "npm:inherits@2.0.1": { "util": "github:jspm/nodelibs-util@0.1.0" }, - "npm:jstransform@10.1.0": { - "base62": "npm:base62@0.1.1", + "npm:isomorphic-fetch@2.2.1": { + "node-fetch": "npm:node-fetch@1.5.1", + "whatwg-fetch": "npm:whatwg-fetch@1.0.0" + }, + "npm:loose-envify@1.1.0": { + "js-tokens": "npm:js-tokens@1.0.3", + "process": "github:jspm/nodelibs-process@0.1.2", + "stream": "github:jspm/nodelibs-stream@0.1.0", + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:node-fetch@1.5.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" + "encoding": "npm:encoding@0.1.12", + "http": "github:jspm/nodelibs-http@1.7.1", + "https": "github:jspm/nodelibs-https@0.1.0", + "is-stream": "npm:is-stream@1.1.0", + "stream": "github:jspm/nodelibs-stream@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:pako@0.2.8": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:path-browserify@0.0.0": { - "process": "github:jspm/nodelibs-process@0.1.1" + "process": "github:jspm/nodelibs-process@0.1.2" }, - "npm:react@0.13.1": { - "buffer": "github:jspm/nodelibs-buffer@0.1.0", - "envify": "npm:envify@3.4.0", - "process": "github:jspm/nodelibs-process@0.1.1" + "npm:process-nextick-args@1.0.6": { + "process": "github:jspm/nodelibs-process@0.1.2" + }, + "npm:process@0.11.2": { + "assert": "github:jspm/nodelibs-assert@0.1.0" + }, + "npm:promise@7.1.1": { + "asap": "npm:asap@2.0.3", + "fs": "github:jspm/nodelibs-fs@0.1.2" + }, + "npm:punycode@1.3.2": { + "process": "github:jspm/nodelibs-process@0.1.2" + }, + "npm:react-dom@15.0.2": { + "react": "npm:react@15.0.2" }, - "npm:readable-stream@1.1.13": { + "npm:react@15.0.2": { + "fbjs": "npm:fbjs@0.8.1", + "loose-envify": "npm:loose-envify@1.1.0", + "object-assign": "npm:object-assign@4.0.1", + "process": "github:jspm/nodelibs-process@0.1.2" + }, + "npm:readable-stream@1.1.14": { "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.0", + "core-util-is": "npm:core-util-is@1.0.2", + "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", + "process": "github:jspm/nodelibs-process@0.1.2", "stream-browserify": "npm:stream-browserify@1.0.0", - "string_decoder": "npm:string_decoder@0.10.31", - "util": "github:jspm/nodelibs-util@0.1.0" + "string_decoder": "npm:string_decoder@0.10.31" }, - "npm:source-map@0.1.31": { - "amdefine": "npm:amdefine@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:readable-stream@2.1.2": { + "buffer": "github:jspm/nodelibs-buffer@0.1.0", + "core-util-is": "npm:core-util-is@1.0.2", + "events": "github:jspm/nodelibs-events@0.1.1", + "inherits": "npm:inherits@2.0.1", + "isarray": "npm:isarray@1.0.0", + "process": "github:jspm/nodelibs-process@0.1.2", + "process-nextick-args": "npm:process-nextick-args@1.0.6", + "string_decoder": "npm:string_decoder@0.10.31", + "util-deprecate": "npm:util-deprecate@1.0.2" }, "npm:stream-browserify@1.0.0": { - "events": "github:jspm/nodelibs-events@0.1.0", + "events": "github:jspm/nodelibs-events@0.1.1", "inherits": "npm:inherits@2.0.1", - "readable-stream": "npm:readable-stream@1.1.13" + "readable-stream": "npm:readable-stream@1.1.14" }, "npm:string_decoder@0.10.31": { "buffer": "github:jspm/nodelibs-buffer@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:ua-parser-js@0.7.10": { + "systemjs-json": "github:systemjs/plugin-json@0.1.2" + }, + "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-deprecate@1.0.2": { + "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" + "process": "github:jspm/nodelibs-process@0.1.2" } } }); - diff --git a/package.json b/package.json index 65631a0..35c3910 100644 --- a/package.json +++ b/package.json @@ -9,19 +9,20 @@ "author": "", "license": "ISC", "jspm": { - "directories": {}, "dependencies": { - "fetch": "npm:whatwg-fetch@^0.7.0", - "react": "npm:react@^0.13.1" + "fetch": "github:github/fetch@^1.0.0", + "react": "npm:react@^15.0.2", + "react-dom": "npm:react-dom@^15.0.2" }, "devDependencies": { - "babel": "npm:babel-core@^5.0.12", - "babel-runtime": "npm:babel-runtime@^5.0.12", - "core-js": "npm:core-js@^0.8.1" + "babel": "npm:babel-core@^5.8.24", + "babel-runtime": "npm:babel-runtime@^5.8.24", + "core-js": "npm:core-js@^1.1.4" } }, "devDependencies": { "html-dist": "^0.1.0", + "jspm": "^0.16.34", "uglifyjs": "^2.4.10" } }