├── tests ├── node │ ├── syncCall │ │ ├── b.js │ │ ├── a.js │ │ ├── foo.js │ │ ├── main2.js │ │ ├── main1.js │ │ └── plug.js │ ├── embedded │ │ ├── coffee │ │ │ └── foo.coffee │ │ ├── main.js │ │ ├── scripts │ │ │ └── bar.js │ │ └── README.md │ ├── tests │ │ ├── foo.js │ │ ├── alpha │ │ │ ├── foo.js │ │ │ └── hello.html │ │ └── server.js │ ├── pluginLocalId │ │ ├── lib │ │ │ ├── app │ │ │ │ ├── dep.coffee │ │ │ │ └── test.coffee │ │ │ └── cs.js │ │ └── test.js │ ├── nodeRelative │ │ ├── other │ │ │ ├── lib │ │ │ │ └── light.js │ │ │ └── src │ │ │ │ └── lamp.js │ │ └── main.js │ ├── syncMap │ │ ├── jquery.js │ │ ├── cheerio.js │ │ └── syncMap.js │ ├── syncRequire │ │ ├── b.js │ │ ├── a.js │ │ └── main.js │ └── index.js ├── browser │ ├── c.js │ ├── sub │ │ └── d.js │ ├── a.js │ ├── b.js │ ├── r-worker.js │ ├── r.html │ └── r-worker.html ├── alljnashorn.sh ├── rhino │ ├── a.js │ ├── main.js │ ├── run.sh │ ├── build.sh │ ├── run.js │ └── build.js ├── xpcshell │ ├── a.js │ ├── run.sh │ ├── build.sh │ ├── main.js │ ├── run.js │ └── build.js ├── sub │ └── betaSub.js ├── allNode.js ├── alpha.js ├── doh │ ├── runner.sh │ ├── _sounds │ │ ├── doh.wav │ │ ├── dohaaa.wav │ │ ├── woohoo.wav │ │ └── LICENSE │ ├── small_logo.png │ ├── _rhinoRunner.js │ ├── README │ ├── _nodeRunner.js │ ├── _xpconnectRunner.js │ ├── runner.html │ ├── LICENSE │ ├── _browserRunner.js │ └── runner.js ├── allj.sh ├── beta.js ├── alln.sh ├── relative.js └── all.js ├── tasks.txt ├── lib ├── rhino │ ├── js.jar │ └── LICENSE └── closure │ ├── compiler.jar │ ├── COPYING │ └── README.md ├── package.json ├── dist └── README.md ├── copydist.js ├── LICENSE ├── dist.js ├── .gitignore └── README.md /tests/node/syncCall/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/browser/c.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'c' 3 | }); -------------------------------------------------------------------------------- /tests/alljnashorn.sh: -------------------------------------------------------------------------------- 1 | jjs -scripting ../r.js -- all.js 2 | -------------------------------------------------------------------------------- /tests/rhino/a.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'a' 3 | }); 4 | 5 | -------------------------------------------------------------------------------- /tests/node/embedded/coffee/foo.coffee: -------------------------------------------------------------------------------- 1 | exports.name ='foo' 2 | -------------------------------------------------------------------------------- /tests/xpcshell/a.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'a' 3 | }); 4 | 5 | -------------------------------------------------------------------------------- /tests/browser/sub/d.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'd' 3 | }); 4 | 5 | -------------------------------------------------------------------------------- /tests/node/tests/foo.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'foo' 3 | }); 4 | -------------------------------------------------------------------------------- /tests/sub/betaSub.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'betaSubName' 3 | }); 4 | -------------------------------------------------------------------------------- /tests/node/pluginLocalId/lib/app/dep.coffee: -------------------------------------------------------------------------------- 1 | define (require) -> 2 | 'dep' -------------------------------------------------------------------------------- /tests/xpcshell/run.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | ../../env/xpcshell/xpcshell run.js 4 | -------------------------------------------------------------------------------- /tests/node/syncCall/a.js: -------------------------------------------------------------------------------- 1 | define({ 2 | name: 'a (should be uppercase)' 3 | }); -------------------------------------------------------------------------------- /tests/xpcshell/build.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | ../../env/xpcshell/xpcshell build.js 4 | -------------------------------------------------------------------------------- /tasks.txt: -------------------------------------------------------------------------------- 1 | * Need more docs on optimizeAllPluginResources? 2 | * allow for npm install -------------------------------------------------------------------------------- /tests/allNode.js: -------------------------------------------------------------------------------- 1 | var requirejs = require('../r.js'); 2 | 3 | requirejs(['./all']); 4 | -------------------------------------------------------------------------------- /lib/rhino/js.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhelmick/r.js/master/lib/rhino/js.jar -------------------------------------------------------------------------------- /tests/alpha.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports) { 2 | exports.name = 'alpha'; 3 | }); 4 | -------------------------------------------------------------------------------- /tests/doh/runner.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | java -jar ../../build/lib/rhino/js.jar runner.js "$@" 4 | -------------------------------------------------------------------------------- /tests/node/nodeRelative/other/lib/light.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | name: 'light' 3 | }; 4 | -------------------------------------------------------------------------------- /tests/node/pluginLocalId/lib/app/test.coffee: -------------------------------------------------------------------------------- 1 | define (require) -> 2 | require 'coffee!./dep' 3 | -------------------------------------------------------------------------------- /lib/closure/compiler.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhelmick/r.js/master/lib/closure/compiler.jar -------------------------------------------------------------------------------- /tests/doh/_sounds/doh.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhelmick/r.js/master/tests/doh/_sounds/doh.wav -------------------------------------------------------------------------------- /tests/doh/small_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhelmick/r.js/master/tests/doh/small_logo.png -------------------------------------------------------------------------------- /tests/node/syncMap/jquery.js: -------------------------------------------------------------------------------- 1 | define(function () { 2 | return function () { return 'jquery'; }; 3 | }); 4 | -------------------------------------------------------------------------------- /tests/doh/_sounds/dohaaa.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhelmick/r.js/master/tests/doh/_sounds/dohaaa.wav -------------------------------------------------------------------------------- /tests/doh/_sounds/woohoo.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelhelmick/r.js/master/tests/doh/_sounds/woohoo.wav -------------------------------------------------------------------------------- /tests/node/syncMap/cheerio.js: -------------------------------------------------------------------------------- 1 | define(function () { 2 | return function () { return 'cheerio'; }; 3 | }); 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "volo": { 3 | "url": "https://raw.github.com/jrburke/r.js/{version}/dist/r.js" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tests/node/syncCall/foo.js: -------------------------------------------------------------------------------- 1 | define(['plug!a'], function (a) { 2 | return { 3 | name: 'foo', 4 | a: a 5 | }; 6 | }); 7 | -------------------------------------------------------------------------------- /tests/rhino/main.js: -------------------------------------------------------------------------------- 1 | define(['a'], function (a) { 2 | return { 3 | name: 'main', 4 | a: a 5 | }; 6 | }); 7 | -------------------------------------------------------------------------------- /tests/allj.sh: -------------------------------------------------------------------------------- 1 | java -classpath ../lib/rhino/js.jar:../lib/closure.compiler.jar org.mozilla.javascript.tools.shell.Main ../r.js all.js 2 | -------------------------------------------------------------------------------- /tests/xpcshell/main.js: -------------------------------------------------------------------------------- 1 | define(['a'], function (a) { 2 | return { 3 | name: 'main', 4 | a: a 5 | }; 6 | }); 7 | -------------------------------------------------------------------------------- /tests/browser/a.js: -------------------------------------------------------------------------------- 1 | define(['b', 'c'], function (b, c) { 2 | return { 3 | name: 'a', 4 | b: b, 5 | c: c 6 | }; 7 | }); 8 | -------------------------------------------------------------------------------- /tests/browser/b.js: -------------------------------------------------------------------------------- 1 | define(['c', 'd'], function (c, d) { 2 | return { 3 | name: 'b', 4 | c: c, 5 | d: d 6 | }; 7 | }); 8 | -------------------------------------------------------------------------------- /tests/rhino/run.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | java -classpath ../../lib/rhino/js.jar:../../lib/closure.compiler.jar org.mozilla.javascript.tools.shell.Main run.js 4 | -------------------------------------------------------------------------------- /tests/beta.js: -------------------------------------------------------------------------------- 1 | define(['./sub/betaSub'], function (betaSub) { 2 | return { 3 | name: 'beta', 4 | subName: betaSub.name 5 | }; 6 | }); 7 | -------------------------------------------------------------------------------- /tests/rhino/build.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | java -classpath ../../lib/rhino/js.jar:../../lib/closure.compiler.jar org.mozilla.javascript.tools.shell.Main build.js 4 | -------------------------------------------------------------------------------- /tests/node/tests/alpha/foo.js: -------------------------------------------------------------------------------- 1 | define(function (require) { 2 | var foo = require('../foo'); 3 | return { 4 | name: 'ALPHA' + foo.name 5 | }; 6 | }); 7 | -------------------------------------------------------------------------------- /tests/node/syncCall/main2.js: -------------------------------------------------------------------------------- 1 | var requirejs = require('../../../r.js'), 2 | a = requirejs('plug!a'); 3 | 4 | console.log('"A (SHOULD BE UPPERCASE)" === "' + a.name + '"'); 5 | -------------------------------------------------------------------------------- /tests/alln.sh: -------------------------------------------------------------------------------- 1 | node allNode.js 2 | node ../r.js all.js 3 | node node/syncMap/syncMap.js 4 | node node/pluginLocalId/test.js 5 | node node/syncRequire/main.js 6 | node node/nodeRelative/main.js -------------------------------------------------------------------------------- /tests/node/tests/alpha/hello.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |A test of running r.js in the browser.
35 | 36 |37 | 38 |
39 | 40 |A test of running r.js in the browser.
38 | 39 |40 | 41 |
42 | 43 |
234 | RequireJS Tests Via D.O.H.: The Dojo Objective Harness235 | |
241 | |||||
| 244 | | |||||
| 247 | 248 | 249 | 250 | 251 | 252 | Stopped 253 | 254 | 255 | | 256 |257 | 258 | 259 | 260 | | 261 |||||
|
264 |
265 |
296 |
|
297 |
298 |
299 |
310 |
301 |
302 |
303 |
304 |
306 |
309 | |
311 | ||||
| Code Path | 158 |
159 | src/com/google/javascript/rhino, test/com/google/javascript/rhino
160 | |
161 |
| URL | 165 |http://www.mozilla.org/rhino | 166 |
| Version | 170 |1.5R3, with heavy modifications | 171 |
| License | 175 |Netscape Public License and MPL / GPL dual license | 176 |
| Description | 180 |A partial copy of Mozilla Rhino. Mozilla Rhino is an 181 | implementation of JavaScript for the JVM. The JavaScript 182 | parse tree data structures were extracted and modified 183 | significantly for use by Google's JavaScript compiler. | 184 |
| Local Modifications | 188 |The packages have been renamespaced. All code not 189 | relevant to the parse tree has been removed. A JsDoc parser and static typing 190 | system have been added. | 191 |
| Code Path | 199 |lib/args4j.jar |
200 |
| URL | 204 |https://args4j.dev.java.net/ | 205 |
| Version | 209 |2.0.26 | 210 |
| License | 214 |MIT | 215 |
| Description | 219 |args4j is a small Java class library that makes it easy to parse command line 220 | options/arguments in your CUI application. | 221 |
| Local Modifications | 225 |None | 226 |
| Code Path | 234 |lib/guava.jar |
235 |
| URL | 239 |https://github.com/google/guava | 240 |
| Version | 244 |18.0 | 245 |
| License | 249 |Apache License 2.0 | 250 |
| Description | 254 |Google's core Java libraries. | 255 |
| Local Modifications | 259 |None | 260 |
| Code Path | 268 |lib/jsr305.jar |
269 |
| URL | 273 |http://code.google.com/p/jsr-305/ | 274 |
| Version | 278 |svn revision 47 | 279 |
| License | 283 |BSD License | 284 |
| Description | 288 |Annotations for software defect detection. | 289 |
| Local Modifications | 293 |None | 294 |
| Code Path | 302 |lib/junit.jar |
303 |
| URL | 307 |http://sourceforge.net/projects/junit/ | 308 |
| Version | 312 |4.11 | 313 |
| License | 317 |Common Public License 1.0 | 318 |
| Description | 322 |A framework for writing and running automated tests in Java. | 323 |
| Local Modifications | 327 |None | 328 |
| Code Path | 336 |lib/protobuf-java.jar |
337 |
| URL | 341 |https://github.com/google/protobuf | 342 |
| Version | 346 |2.5.0 | 347 |
| License | 351 |New BSD License | 352 |
| Description | 356 |Supporting libraries for protocol buffers, 357 | an encoding of structured data. | 358 |
| Local Modifications | 362 |None | 363 |
| Code Path | 371 |lib/truth.jar |
372 |
| URL | 376 |https://github.com/google/truth | 377 |
| Version | 381 |0.24 | 382 |
| License | 386 |Apache License 2.0 | 387 |
| Description | 391 |Assertion/Proposition framework for Java unit tests | 392 |
| Local Modifications | 396 |None | 397 |
| Code Path | 405 |
406 | lib/ant.jar, lib/ant-launcher.jar
407 | |
408 |
| URL | 412 |http://ant.apache.org/bindownload.cgi | 413 |
| Version | 417 |1.8.1 | 418 |
| License | 422 |Apache License 2.0 | 423 |
| Description | 427 |Ant is a Java based build tool. In theory it is kind of like "make" 428 | without make's wrinkles and with the full portability of pure java code. | 429 |
| Local Modifications | 433 |None | 434 |
| Code Path | 442 |lib/gson.jar |
443 |
| URL | 447 |https://github.com/google/gson | 448 |
| Version | 452 |2.2.4 | 453 |
| License | 457 |Apache license 2.0 | 458 |
| Description | 462 |A Java library to convert JSON to Java objects and vice-versa | 463 |
| Local Modifications | 467 |None | 468 |
| Code Path | 476 |contrib/nodejs |
477 |
| URL | 481 |https://github.com/dcodeIO/node.js-closure-compiler-externs | 482 |
| Version | 486 |e891b4fbcf5f466cc4307b0fa842a7d8163a073a | 487 |
| License | 491 |Apache 2.0 license | 492 |
| Description | 496 |Type contracts for NodeJS APIs | 497 |
| Local Modifications | 501 |Substantial changes to make them compatible with NpmCommandLineRunner. | 502 |