forked from flatiron/director
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This depends on heapwolf/codesurgeon#13 being accepted. Once it is, and the codesurgeon dependency is updated, the existing build script will produce a file that can be used either with <script> tag includes, or with browserify (and any other browser-based CommonJS module loaders). Furthermore, this adds a "browserify" entry in package.json pointing to the browser-built file, so that users can just do `require("director")` instead of `require("director/build/director-1.1.3")`.
- Loading branch information
Showing
4 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/.idea/ | ||
node_modules | ||
npm-debug.log | ||
.DS_Store | ||
.DS_Store | ||
|
||
/test/browser/browserified-bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Director Browserify Tests</title> | ||
<link rel="stylesheet" href="../../node_modules/qunitjs/qunit/qunit.css"> | ||
</head> | ||
<body> | ||
<p>To run these tests first generate a Browserify bundle for director by running the command <kbd>browserify -r ../director -o test/browser/browserified-bundle.js</kbd> in the repo's root directory.</p> | ||
|
||
<div id="qunit"> | ||
<div id="qunit-fixture"></div> | ||
|
||
<script src="browserified-bundle.js"></script> | ||
<script> | ||
var HTML5TEST = false; | ||
var RouterAlias = require('/director-1.1.3').Router; | ||
</script> | ||
|
||
<script src="../../node_modules/qunitjs/qunit/qunit.js"></script> | ||
<script src="helpers/api.js"></script> | ||
<script src="routes-test.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters