Skip to content

Commit

Permalink
issue #254 - introduced runtime-all.js files for browser side + clean…
Browse files Browse the repository at this point in the history
…ed up html unit tests
  • Loading branch information
bjouhier committed Mar 7, 2015
1 parent e9c1849 commit 805419e
Show file tree
Hide file tree
Showing 24 changed files with 11,993 additions and 146 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Compiling will give you the fastest startup time because node will directly load
You have three options to use streamline in the browser:

* The first one is to compile the source with `_node --standalone -c`. The compiler generates vanilla Javascript code that you can load with `<script>` directives in an HTML page. See the [eval unit test](https://github.com/Sage/streamlinejs/blob/master/test/common/eval-test.html) for an example.
* You can also transform the code in the browser with the `transform` API. All the necessary JS code is available as a single `lib/transform-all.js` file. See the [streamlineMe example](https://github.com/Sage/streamlinejs/blob/master/examples/streamlineMe).
* You can also transform the code in the browser with the `transform` API. All the necessary JS code is available as a single `lib/callbacks/transform-all.js` file. See the [streamlineMe example](https://github.com/Sage/streamlinejs/blob/master/examples/streamlineMe).
* A third option is to use the [streamline-require](https://github.com/Sage/streamline-require) infrastructure. This is a very efficient browser-side implementation of `require` that lets you load streamlined modules as well as vanilla Javascript modules in the browser.

<a name="generation-options">
Expand Down
2 changes: 1 addition & 1 deletion examples/streamlineMe/streamlineMe.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script src="../../test/qunit/jquery.js">
</script>
<link rel="stylesheet" href="streamlineMe.css" type="text/css" media="screen" />
<script src="../../lib/transform-all.js" type="application/javascript"></script>
<script src="../../lib/callbacks/transform-all.js" type="application/javascript"></script>
<script src="./streamlineMe.js" type="application/javascript"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion examples/streamlineMe/yieldMe.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script src="../../test/qunit/jquery.js">
</script>
<link rel="stylesheet" href="streamlineMe.css" type="text/css" media="screen" />
<script src="../../lib/transform-all-generators.js" type="application/javascript"></script>
<script src="../../lib/generators/transform-all.js" type="application/javascript"></script>
<script src="./streamlineMe.js" type="application/javascript"></script>
</head>
<body>
Expand Down
Loading

0 comments on commit 805419e

Please sign in to comment.