Skip to content

Commit

Permalink
Setup requirejs and mocha.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Nov 12, 2013
1 parent e485d89 commit 84a0436
Show file tree
Hide file tree
Showing 33 changed files with 4,987 additions and 441 deletions.
2 changes: 0 additions & 2 deletions .gitignore
@@ -1,3 +1 @@
components
build
node_modules node_modules
15 changes: 2 additions & 13 deletions Makefile
@@ -1,24 +1,13 @@


COMPONENT = node_modules/component/bin/component
UGLIFY = node_modules/uglify-js/bin/uglifyjs UGLIFY = node_modules/uglify-js/bin/uglifyjs
PHANTOM = node_modules/.bin/mocha-phantomjs PHANTOM = node_modules/.bin/mocha-phantomjs
LINT = node_modules/.bin/jslint LINT = node_modules/.bin/jslint


build: components lib/*.js test: lint
@component build --dev

components: component.json
@component install --dev

tsld.js: components
$(COMPONENT) build --standalone tsld --out . --name tsld
$(UGLIFY) tsld.js --output tsld.min.js

test: lint build
$(PHANTOM) test/index.html $(PHANTOM) test/index.html


lint: lint:
$(LINT) lib/*.js $(LINT) js/raft/*.js


clean: clean:
rm -fr build components template.js rm -fr build components template.js
Expand Down
25 changes: 0 additions & 25 deletions component.json

This file was deleted.

Binary file added css/.DS_Store
Binary file not shown.
9 changes: 9 additions & 0 deletions css/bootstrap-theme.min.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions css/bootstrap.min.css

Large diffs are not rendered by default.

Binary file added fonts/glyphicons-halflings-regular.eot
Binary file not shown.
229 changes: 229 additions & 0 deletions fonts/glyphicons-halflings-regular.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff
Binary file not shown.
8 changes: 4 additions & 4 deletions index.html
Expand Up @@ -2,10 +2,10 @@
<html> <html>
<head> <head>
<title>The Secret Lives of Data</title> <title>The Secret Lives of Data</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap.min.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script src="js/jquery-2.0.3.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="js/bootstrap.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> <script src="js/d3.v3.min.js" charset="utf-8"></script>
</head> </head>


<body> <body>
Expand Down
9 changes: 9 additions & 0 deletions js/bootstrap.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions js/d3.v3.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions js/jquery-2.0.3.min.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions js/raft/node.js
@@ -0,0 +1,11 @@

"use strict";
/*jslint browser: true, nomen: true*/
/*global define, d3*/

define([], function () {
function Node() {
}

return Node;
});
11 changes: 11 additions & 0 deletions js/raft/simulation.js
@@ -0,0 +1,11 @@

"use strict";
/*jslint browser: true, nomen: true*/
/*global define, d3*/

define(["./node"], function (Node) {
function Simulation(player) {
}

return Simulation;
});
36 changes: 36 additions & 0 deletions js/require.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions lib/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions lib/raft/node.js

This file was deleted.

11 changes: 0 additions & 11 deletions lib/raft/raft.js

This file was deleted.

19 changes: 0 additions & 19 deletions lib/tsld.js

This file was deleted.

3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -9,11 +9,8 @@
"type": "git", "type": "git",
"url": "git://github.com/benbjohnson/thesecretlivesofdata.git" "url": "git://github.com/benbjohnson/thesecretlivesofdata.git"
}, },
"main": "tsld.js",
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"component": "0.17.0",
"mocha-cloud": "0.1.0",
"mocha-phantomjs": "3.1.2", "mocha-phantomjs": "3.1.2",
"jslint": "0.1.9", "jslint": "0.1.9",
"uglify-js": ">= 1.3.4" "uglify-js": ">= 1.3.4"
Expand Down
78 changes: 0 additions & 78 deletions playground.html

This file was deleted.

0 comments on commit 84a0436

Please sign in to comment.