Skip to content

Commit

Permalink
add --dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 12, 2012
1 parent b15c928 commit a63de12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

build: index.js
@component build
build: index.js components
@component build --dev

components:
@component install
@component install --dev

clean:
rm -fr build components
Expand Down
5 changes: 4 additions & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"version": "0.1.0",
"description": "turn HTML into DOM elements",
"keywords": ["dom", "html", "client", "browser", "component"],
"scripts": ["index.js"]
"scripts": ["index.js"],
"development": {
"visionmedia/mocha-cloud": "*"
}
}
3 changes: 2 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
<script src="../build/build.js"></script>
<script src="domify.js"></script>
<script>
var cloud = require('visionmedia-mocha-cloud');
if (window.mochaPhantomJS) mochaPhantomJS.run()
else mocha.run();
else cloud(mocha.run());
</script>
</body>
</html>

0 comments on commit a63de12

Please sign in to comment.