├── test ├── cases │ ├── project │ │ ├── a.json │ │ ├── a.tpl │ │ ├── a.handlebars │ │ ├── b.css │ │ ├── a.css │ │ ├── a-d41d8cd9.tpl.js.expect │ │ ├── a-d41d8cd9.json.js.expect │ │ ├── a.html │ │ ├── a-d41d8cd9-debug.json.js.expect │ │ ├── b.js │ │ ├── a-2cee5097.html.js.expect │ │ ├── a-e1f4111c.css.expect │ │ ├── a-e1f4111c-debug.css.expect │ │ ├── b-aa896723.css.expect │ │ ├── b-aa896723-debug.css.expect │ │ ├── a.js │ │ ├── b-0ec4c8ca.js.expect │ │ ├── sea-modules │ │ │ ├── alice │ │ │ │ ├── loading │ │ │ │ │ └── 1.0.0 │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ ├── loading.css │ │ │ │ │ │ └── loading-debug.css │ │ │ │ └── list │ │ │ │ │ └── 1.0.1 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── list.css │ │ │ │ │ └── list-debug.css │ │ │ ├── gallery │ │ │ │ └── handlebars │ │ │ │ │ └── 1.0.2 │ │ │ │ │ ├── package.json │ │ │ │ │ └── runtime.js │ │ │ └── arale │ │ │ │ ├── class │ │ │ │ └── 1.1.0 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── class.js │ │ │ │ │ └── class-debug.js │ │ │ │ ├── events │ │ │ │ └── 1.1.0 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── events.js │ │ │ │ │ └── events-debug.js │ │ │ │ ├── easing │ │ │ │ └── 1.0.0 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── easing.js │ │ │ │ │ └── easing-debug.js │ │ │ │ ├── base │ │ │ │ └── 1.1.1 │ │ │ │ │ ├── package.json │ │ │ │ │ └── base.js │ │ │ │ ├── position │ │ │ │ └── 1.0.1 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── position.js │ │ │ │ │ └── position-debug.js │ │ │ │ ├── widget │ │ │ │ └── 1.1.1 │ │ │ │ │ ├── package.json │ │ │ │ │ └── widget.js │ │ │ │ ├── iframe-shim │ │ │ │ └── 1.0.2 │ │ │ │ │ ├── iframe-shim.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── iframe-shim-debug.js │ │ │ │ ├── overlay │ │ │ │ └── 1.1.4 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── overlay.js │ │ │ │ │ ├── mask.js │ │ │ │ │ ├── overlay-debug.js │ │ │ │ │ └── mask-debug.js │ │ │ │ ├── templatable │ │ │ │ └── 0.9.2 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── templatable.js │ │ │ │ │ └── templatable-debug.js │ │ │ │ └── dialog │ │ │ │ └── 1.3.1 │ │ │ │ ├── package.json │ │ │ │ ├── dialog.css │ │ │ │ ├── dialog-debug.css │ │ │ │ └── dialog.js │ │ ├── a-33cd4a1a.js.expect │ │ ├── a-33cd4a1a-debug.js.expect │ │ └── a-670b8177.handlebars.js.expect │ ├── expand │ │ ├── expand.js │ │ ├── expand.js.expect │ │ ├── expand.js.expect.expect │ │ ├── expand-debug.js.expect │ │ └── expand-debug.js.expect.expect │ ├── css │ │ ├── simple.css │ │ ├── ie8.css │ │ ├── simple.css.expect │ │ ├── simple-debug.css.expect │ │ ├── alias.css │ │ ├── ie8.css.expect │ │ ├── ie8-debug.css.expect │ │ ├── alias.css.expect │ │ └── alias-debug.css.expect │ ├── css2js │ │ ├── a.css │ │ ├── a.css.js.expect │ │ └── a-debug.css.js.expect │ ├── directory │ │ ├── v.js │ │ ├── v.js.expect │ │ └── v │ │ │ ├── b.js │ │ │ ├── a.js │ │ │ ├── b.js.expect │ │ │ └── a.js.expect │ ├── tpl │ │ ├── simple.tpl │ │ ├── simple.tpl.js.expect │ │ ├── simple-debug.tpl.js.expect │ │ ├── month.tpl │ │ ├── month.tpl.js.expect │ │ └── month-debug.tpl.js.expect │ ├── text! │ │ ├── a.js │ │ └── a.js.expect │ ├── handlebars │ │ ├── simple.handlebars │ │ ├── month.handlebars │ │ ├── simple.handlebars.js.expect │ │ ├── simple-debug.handlebars.js.expect │ │ ├── month.handlebars.js.expect │ │ └── month-debug.handlebars.js.expect │ ├── hash │ │ ├── c │ │ │ └── c.js │ │ ├── a.js │ │ ├── b.js │ │ ├── b-5821d03c.js.expect │ │ └── a-da24e8b4.js.expect │ ├── json │ │ ├── simple.json │ │ ├── simple.json.js.expect │ │ └── simple-debug.json.js.expect │ ├── cmdid │ │ ├── foo.js │ │ ├── foo.js.expect │ │ └── foo-debug.js.expect │ ├── nested │ │ ├── foo │ │ │ ├── c.js │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js.expect │ │ │ ├── b.js.expect │ │ │ └── a.js.expect │ │ └── bar │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── a.js │ │ │ ├── b.js.expect │ │ │ ├── c.js.expect │ │ │ └── a.js.expect │ ├── rely-arale │ │ ├── foo.js │ │ ├── foo.js.expect │ │ └── foo-debug.js.expect │ ├── single │ │ ├── foo.js │ │ ├── bar │ │ │ ├── foo.js │ │ │ ├── foo.js.expect │ │ │ └── foo-debug.js.expect │ │ ├── foo.js.expect │ │ └── foo-debug.js.expect │ ├── id-deps-exist │ │ ├── a.js │ │ ├── c.js │ │ ├── b.js │ │ ├── b.js.expect │ │ ├── c.js.expect │ │ └── a.js.expect │ ├── relative │ │ ├── bar.js │ │ ├── baz │ │ │ └── baz.js │ │ ├── foo.js │ │ ├── bar.js.expect │ │ ├── bar-debug.js.expect │ │ ├── foo.js.expect │ │ └── foo-debug.js.expect │ ├── style │ │ ├── a.js │ │ ├── a.js.expect │ │ ├── a-debug.js.expect │ │ ├── a.css.js.expect │ │ ├── a-debug.css.js.expect │ │ └── a.css │ ├── duplicate │ │ ├── d.js │ │ ├── a.js │ │ ├── c.js │ │ ├── b.js │ │ └── a.js.expect │ ├── assets │ │ ├── arale.js │ │ ├── arale │ │ │ └── class │ │ │ │ └── foo.js │ │ └── family │ │ │ └── bar │ │ │ └── bar.js │ ├── alias │ │ ├── baz.js │ │ ├── baz.js.expect │ │ └── baz-debug.js.expect │ └── text │ │ ├── foo.html │ │ ├── foo.html.js.expect │ │ └── foo-debug.html.js.expect └── transport.js ├── .travis.yml ├── .gitignore ├── .npmignore ├── tasks ├── lib │ ├── json.js │ ├── template.js │ ├── util.js │ ├── text.js │ ├── css2js.js │ ├── handlebars.js │ ├── common.js │ ├── style.js │ └── script.js └── transport.js ├── index.js ├── .jshintrc ├── LICENSE-MIT ├── package.json ├── README.md └── Gruntfile.js /test/cases/project/a.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/project/a.tpl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/expand/expand.js: -------------------------------------------------------------------------------- 1 | define(function(){}); 2 | -------------------------------------------------------------------------------- /test/cases/project/a.handlebars: -------------------------------------------------------------------------------- 1 |
{{_ this}}
3 | {{/each}} 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | tmp 4 | examples 5 | test 6 | *.iml 7 | -------------------------------------------------------------------------------- /test/cases/expand/expand-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("expand-debug", [], function() {}); 2 | -------------------------------------------------------------------------------- /test/cases/project/a.css: -------------------------------------------------------------------------------- 1 | @import "./b.css"; 2 | 3 | ul { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/css/ie8.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-size: 14px\0; 3 | font-weight: bold; 4 | } 5 | -------------------------------------------------------------------------------- /test/cases/directory/v.js.expect: -------------------------------------------------------------------------------- 1 | define("v", [], function(require, exports, module) {}); 2 | -------------------------------------------------------------------------------- /test/cases/project/a-d41d8cd9.tpl.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/a-d41d8cd9.tpl", [], ""); 2 | -------------------------------------------------------------------------------- /test/cases/text!/a.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | require('text!/templates/login'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/expand/expand-debug.js.expect.expect: -------------------------------------------------------------------------------- 1 | define("expand-debug", [], function() {}); 2 | -------------------------------------------------------------------------------- /test/cases/handlebars/simple.handlebars: -------------------------------------------------------------------------------- 1 | {{#each items}} 2 |{{_ this}}
3 | {{/each}} 4 | -------------------------------------------------------------------------------- /test/cases/hash/c/c.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('$'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/json/simple.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar", 3 | "baz": "foobar", 4 | "test": 255 5 | } -------------------------------------------------------------------------------- /test/cases/project/a-d41d8cd9.json.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/a-d41d8cd9.json", [], {}); 2 | -------------------------------------------------------------------------------- /test/cases/css/simple.css.expect: -------------------------------------------------------------------------------- 1 | /*! define simple.css */ 2 | body { 3 | color: '#fff'; 4 | } 5 | -------------------------------------------------------------------------------- /test/cases/project/a.html: -------------------------------------------------------------------------------- 1 |{{_ this}}
\n{{/each}}\n"); 2 | -------------------------------------------------------------------------------- /test/cases/css/alias.css: -------------------------------------------------------------------------------- 1 | @import url('button'); 2 | @import url('./ie8.css'); 3 | 4 | .alias { 5 | color: red; 6 | } 7 | -------------------------------------------------------------------------------- /test/cases/css/ie8.css.expect: -------------------------------------------------------------------------------- 1 | /*! define ie8.css */ 2 | body { 3 | font-size: 14px\0; 4 | font-weight: bold; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/hash/a.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./b'); 3 | require('foo'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/hash/b.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./c/c'); 3 | require('bar'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/id-deps-exist/b.js: -------------------------------------------------------------------------------- 1 | define('b', ['./a'], function(require, exports, module) { 2 | require('foo'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/bar/c.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.c = require('../foo/a'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/foo/b.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.b = require('./c.js'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/css2js/a.css.js.expect: -------------------------------------------------------------------------------- 1 | define("a.css", [], function() { 2 | seajs.importStyle("body{color:#fff}"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/directory/v/a.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require("../v"); 3 | require('./b'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/duplicate/a.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./b'); 3 | require('./c'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/nested/foo/c.js.expect: -------------------------------------------------------------------------------- 1 | define("foo/c", [], function(require, exports, module) { 2 | exports.c = "c"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/project/a-2cee5097.html.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/a-2cee5097.html", [], "{{_ this}}
\n{{/each}}\n"); 2 | -------------------------------------------------------------------------------- /test/cases/duplicate/c.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./d'); 3 | module.exports = 'baz'; 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/id-deps-exist/b.js.expect: -------------------------------------------------------------------------------- 1 | define("b", [ "./a" ], function(require, exports, module) { 2 | require("foo"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/id-deps-exist/c.js.expect: -------------------------------------------------------------------------------- 1 | define("c", [ "./a" ], function(require, exports, module) { 2 | require("foo"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/single/foo.js.expect: -------------------------------------------------------------------------------- 1 | define("foo", [], function(require, exports, module) { 2 | module.exports = "foo"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/css/ie8-debug.css.expect: -------------------------------------------------------------------------------- 1 | /*! define ie8-debug.css */ 2 | body { 3 | font-size: 14px\0; 4 | font-weight: bold; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/css2js/a-debug.css.js.expect: -------------------------------------------------------------------------------- 1 | define("a-debug.css", [], function() { 2 | seajs.importStyle("body{color:#fff}"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/directory/v/b.js.expect: -------------------------------------------------------------------------------- 1 | define("v/b", [ "../v" ], function(require, exports, module) { 2 | require("../v"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/duplicate/b.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./d.js'); 3 | module.exports = 'baz'; 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/json/simple.json.js.expect: -------------------------------------------------------------------------------- 1 | define("simple.json", [], { 2 | foo: "bar", 3 | baz: "foobar", 4 | test: 255 5 | }); 6 | -------------------------------------------------------------------------------- /test/cases/relative/foo.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./bar'); 3 | require('./baz/baz'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/text!/a.js.expect: -------------------------------------------------------------------------------- 1 | define("a", [ "text!/templates/login" ], function() { 2 | require("text!/templates/login"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/assets/arale.js: -------------------------------------------------------------------------------- 1 | define('arale', ['arale/class/foo'], function(require, exports, module) { 2 | module.exports = 'arale'; 3 | }) 4 | -------------------------------------------------------------------------------- /test/cases/relative/bar.js.expect: -------------------------------------------------------------------------------- 1 | define("bar", [ "./baz/baz" ], function(require, exports, module) { 2 | require("./baz/baz"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/single/bar/foo.js.expect: -------------------------------------------------------------------------------- 1 | define("bar/foo", [], function(require, exports, module) { 2 | module.exports = "bar/foo"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/single/foo-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("foo-debug", [], function(require, exports, module) { 2 | module.exports = "foo"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/alias/baz.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('foo') 3 | require('$') 4 | module.exports = 'baz' 5 | }); 6 | -------------------------------------------------------------------------------- /test/cases/cmdid/foo.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/1.0.0/foo", [], function(require, exports, module) { 2 | module.exports = "foo"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/foo/b.js.expect: -------------------------------------------------------------------------------- 1 | define("foo/b", [ "./c" ], function(require, exports, module) { 2 | exports.b = require("./c"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/json/simple-debug.json.js.expect: -------------------------------------------------------------------------------- 1 | define("simple-debug.json", [], { 2 | foo: "bar", 3 | baz: "foobar", 4 | test: 255 5 | }); 6 | -------------------------------------------------------------------------------- /test/cases/nested/bar/a.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.a = require('./b'); 3 | exports.c = require('./c'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/nested/foo/a.js.expect: -------------------------------------------------------------------------------- 1 | define("foo/a", [ "./b", "./c" ], function(require, exports, module) { 2 | exports.a = require("./b"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/project/a-e1f4111c.css.expect: -------------------------------------------------------------------------------- 1 | /*! define family/name/a-e1f4111c.css */ 2 | /*! import ./b-aa896723.css */ 3 | ul { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/assets/arale/class/foo.js: -------------------------------------------------------------------------------- 1 | define('arale/class/foo', [], function(require, exports, module) { 2 | module.exports = 'arale/class/foo' 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/assets/family/bar/bar.js: -------------------------------------------------------------------------------- 1 | define('family/name/bar', [], function(require, exports, module) { 2 | module.exports = 'family/name/bar'; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/id-deps-exist/a.js.expect: -------------------------------------------------------------------------------- 1 | define("a", [ "arale/class/foo" ], function(require, exports, module) { 2 | require("arale/class/foo"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/rely-arale/foo.js.expect: -------------------------------------------------------------------------------- 1 | define("foo", [ "arale", "arale/class/foo" ], function(require, exports, module) { 2 | require("arale"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/single/bar/foo-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("bar/foo-debug", [], function(require, exports, module) { 2 | module.exports = "bar/foo"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/text/foo.html: -------------------------------------------------------------------------------- 1 |\n 3 | The 'clean' \ "HTML is here." /
4 | 5 |\\n The 'clean' \\ \"HTML is here.\" /
\\n The 'clean' \\ \"HTML is here.\" /