├── 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 |
{{{data}}}
2 | -------------------------------------------------------------------------------- /test/cases/css/simple.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: '#fff'; 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/css2js/a.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #ffffff; 3 | } 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | -------------------------------------------------------------------------------- /test/cases/expand/expand.js.expect: -------------------------------------------------------------------------------- 1 | define("expand", [], function() {}); 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | tmp 4 | *.iml 5 | test/expected 6 | -------------------------------------------------------------------------------- /test/cases/directory/v.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | }); 3 | -------------------------------------------------------------------------------- /test/cases/expand/expand.js.expect.expect: -------------------------------------------------------------------------------- 1 | define("expand", [], function() {}); 2 | -------------------------------------------------------------------------------- /test/cases/project/b.css: -------------------------------------------------------------------------------- 1 | @import "list" 2 | 3 | html { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/tpl/simple.tpl: -------------------------------------------------------------------------------- 1 | {{#each items}} 2 |

{{_ 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 |
2 |
6 | -------------------------------------------------------------------------------- /test/cases/cmdid/foo.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | module.exports = 'foo' 3 | }) 4 | -------------------------------------------------------------------------------- /test/cases/directory/v/b.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('../v'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/foo/c.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.c = 'c'; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/project/a-d41d8cd9-debug.json.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/a-d41d8cd9-debug.json", [], {}); 2 | -------------------------------------------------------------------------------- /test/cases/rely-arale/foo.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('arale') 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/single/foo.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | module.exports = 'foo' 3 | }) 4 | -------------------------------------------------------------------------------- /test/cases/css/simple-debug.css.expect: -------------------------------------------------------------------------------- 1 | /*! define simple-debug.css */ 2 | body { 3 | color: '#fff'; 4 | } 5 | -------------------------------------------------------------------------------- /test/cases/id-deps-exist/a.js: -------------------------------------------------------------------------------- 1 | define('a', function(require, exports, module) { 2 | require('foo'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/project/b.js: -------------------------------------------------------------------------------- 1 | define(function(require) { 2 | require('base'); 3 | require('loading'); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/relative/bar.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | require('./baz/baz'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/style/a.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.foo = function() {}; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/duplicate/d.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | module.exports = 'baz'; 3 | }); 4 | 5 | -------------------------------------------------------------------------------- /test/cases/id-deps-exist/c.js: -------------------------------------------------------------------------------- 1 | define(['./a'], function(require, exports, module) { 2 | require('foo'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/bar/b.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.b = require('./c'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/foo/a.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | exports.a = require('./b'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/relative/baz/baz.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | module.exports = 'baz'; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/single/bar/foo.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | module.exports = 'bar/foo' 3 | }) 4 | -------------------------------------------------------------------------------- /test/cases/tpl/simple.tpl.js.expect: -------------------------------------------------------------------------------- 1 | define("simple.tpl", [], "{{#each items}}\n

{{_ 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", [], "
"); 2 | -------------------------------------------------------------------------------- /test/cases/tpl/simple-debug.tpl.js.expect: -------------------------------------------------------------------------------- 1 | define("simple-debug.tpl", [], "{{#each items}}\n

{{_ 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 |
2 |

\n 3 | The 'clean' \ "HTML is here." /

4 | 5 |
6 | -------------------------------------------------------------------------------- /test/cases/cmdid/foo-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/1.0.0/foo-debug", [], function(require, exports, module) { 2 | module.exports = "foo"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/project/a-e1f4111c-debug.css.expect: -------------------------------------------------------------------------------- 1 | /*! define family/name/a-e1f4111c-debug.css */ 2 | /*! import ./b-debug.css */ 3 | ul { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/project/b-aa896723.css.expect: -------------------------------------------------------------------------------- 1 | /*! define family/name/b-aa896723.css */ 2 | /*! import alice/list/1.0.1/list.css */ 3 | html { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/text/foo.html.js.expect: -------------------------------------------------------------------------------- 1 | define("foo.html", [], "

\\n The 'clean' \\ \"HTML is here.\" /

"); 2 | -------------------------------------------------------------------------------- /test/cases/directory/v/a.js.expect: -------------------------------------------------------------------------------- 1 | define("v/a", [ "../v", "./b" ], function(require, exports, module) { 2 | require("../v"); 3 | require("./b"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/duplicate/a.js.expect: -------------------------------------------------------------------------------- 1 | define("a", [ "./b", "./d", "./c" ], function(require, exports, module) { 2 | require("./b"); 3 | require("./c"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/relative/bar-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("bar-debug", [ "./baz/baz-debug" ], function(require, exports, module) { 2 | require("./baz/baz-debug"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/css/alias.css.expect: -------------------------------------------------------------------------------- 1 | /*! define alias.css */ 2 | /*! import alice/button/1.0.0/button.css */ 3 | /*! import ./ie8.css */ 4 | .alias { 5 | color: red; 6 | } 7 | -------------------------------------------------------------------------------- /test/cases/text/foo-debug.html.js.expect: -------------------------------------------------------------------------------- 1 | define("foo-debug.html", [], "

\\n The 'clean' \\ \"HTML is here.\" /

"); 2 | -------------------------------------------------------------------------------- /test/cases/relative/foo.js.expect: -------------------------------------------------------------------------------- 1 | define("foo", [ "./bar", "./baz/baz" ], function(require, exports, module) { 2 | require("./bar"); 3 | require("./baz/baz"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/nested/bar/b.js.expect: -------------------------------------------------------------------------------- 1 | define("bar/b", [ "./c", "../foo/a", "../foo/b", "../foo/c" ], function(require, exports, module) { 2 | exports.b = require("./c"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/nested/bar/c.js.expect: -------------------------------------------------------------------------------- 1 | define("bar/c", [ "../foo/a", "../foo/b", "../foo/c" ], function(require, exports, module) { 2 | exports.c = require("../foo/a"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/project/b-aa896723-debug.css.expect: -------------------------------------------------------------------------------- 1 | /*! define family/name/b-aa896723-debug.css */ 2 | /*! import alice/list/1.0.1/list-debug.css */ 3 | html { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/rely-arale/foo-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("foo-debug", [ "arale-debug", "arale/class/foo-debug" ], function(require, exports, module) { 2 | require("arale-debug"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/css/alias-debug.css.expect: -------------------------------------------------------------------------------- 1 | /*! define alias-debug.css */ 2 | /*! import alice/button/1.0.0/button-debug.css */ 3 | /*! import ./ie8-debug.css */ 4 | .alias { 5 | color: red; 6 | } 7 | -------------------------------------------------------------------------------- /test/cases/style/a.js.expect: -------------------------------------------------------------------------------- 1 | define("arale/widget/1.0.0/a", [], function(require, exports, module) { 2 | exports.foo = function() {}; 3 | module.exports.outerBoxClass="arale-widget-1_0_0";}); 4 | -------------------------------------------------------------------------------- /test/cases/alias/baz.js.expect: -------------------------------------------------------------------------------- 1 | define("baz", [ "arale/class/foo", "$" ], function(require, exports, module) { 2 | require("arale/class/foo"); 3 | require("$"); 4 | module.exports = "baz"; 5 | }); 6 | -------------------------------------------------------------------------------- /test/cases/style/a-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("arale/widget/1.0.0/a-debug", [], function(require, exports, module) { 2 | exports.foo = function() {}; 3 | module.exports.outerBoxClass="arale-widget-1_0_0";}); 4 | -------------------------------------------------------------------------------- /test/cases/relative/foo-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("foo-debug", [ "./bar-debug", "./baz/baz-debug" ], function(require, exports, module) { 2 | require("./bar-debug"); 3 | require("./baz/baz-debug"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/nested/bar/a.js.expect: -------------------------------------------------------------------------------- 1 | define("bar/a", [ "./b", "./c", "../foo/a", "../foo/b", "../foo/c" ], function(require, exports, module) { 2 | exports.a = require("./b"); 3 | exports.c = require("./c"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/hash/b-5821d03c.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/b-5821d03c", [ "./c/c-5bffe50a", "$", "family/bar/bar" ], function(require, exports, module) { 2 | require("./c/c-5bffe50a.js"); 3 | require("family/bar/bar"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/alias/baz-debug.js.expect: -------------------------------------------------------------------------------- 1 | define("baz-debug", [ "arale/class/foo-debug", "$-debug" ], function(require, exports, module) { 2 | require("arale/class/foo-debug"); 3 | require("$-debug"); 4 | module.exports = "baz"; 5 | }); 6 | -------------------------------------------------------------------------------- /test/cases/project/a.js: -------------------------------------------------------------------------------- 1 | define(function(require) { 2 | require('./a.handlebars'); 3 | require('./a.json'); 4 | require('./a.html'); 5 | require('./a.tpl'); 6 | require('./a.css'); 7 | require('./b'); 8 | require('confirmbox'); 9 | }); 10 | -------------------------------------------------------------------------------- /test/cases/hash/a-da24e8b4.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/a-da24e8b4", [ "./b-5821d03c", "./c/c-5bffe50a", "$", "family/bar/bar", "arale/class/foo" ], function(require, exports, module) { 2 | require("./b-5821d03c.js"); 3 | require("arale/class/foo"); 4 | }); 5 | -------------------------------------------------------------------------------- /tasks/lib/json.js: -------------------------------------------------------------------------------- 1 | var commonParser = require('./common'); 2 | 3 | exports.init = function(grunt) { 4 | return commonParser.init(grunt, { 5 | type: 'json', 6 | factoryParser: function(data) { 7 | return data || '{}'; 8 | } 9 | }); 10 | }; 11 | -------------------------------------------------------------------------------- /tasks/lib/template.js: -------------------------------------------------------------------------------- 1 | var commonParser = require('./common'); 2 | 3 | exports.init = function(grunt) { 4 | return commonParser.init(grunt, { 5 | type: 'tpl', 6 | factoryParser: function(data) { 7 | return '"' + data.replace(/\"/g, '\\\"') + '"'; 8 | } 9 | }); 10 | }; 11 | -------------------------------------------------------------------------------- /test/cases/project/b-0ec4c8ca.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/b-0ec4c8ca", [ "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "alice/loading/1.0.0/loading.css" ], function(require) { 2 | require("arale/base/1.1.1/base"); 3 | require("alice/loading/1.0.0/loading.css"); 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/tpl/month.tpl: -------------------------------------------------------------------------------- 1 |
2 | {{#each items}} 3 | 8 | {{/each}} 9 |
10 | -------------------------------------------------------------------------------- /test/cases/tpl/month.tpl.js.expect: -------------------------------------------------------------------------------- 1 | define("month.tpl", [], '
\n{{#each items}}\n\n{{/each}}\n
\n'); 2 | -------------------------------------------------------------------------------- /test/cases/handlebars/month.handlebars: -------------------------------------------------------------------------------- 1 |
2 | {{#each items}} 3 | 8 | {{/each}} 9 |
10 | -------------------------------------------------------------------------------- /test/cases/tpl/month-debug.tpl.js.expect: -------------------------------------------------------------------------------- 1 | define("month-debug.tpl", [], '
\n{{#each items}}\n\n{{/each}}\n
\n'); 2 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | exports.style = require('./tasks/lib/style'); 2 | exports.script = require('./tasks/lib/script'); 3 | exports.css2js = require('./tasks/lib/css2js'); 4 | exports.template = require('./tasks/lib/template'); 5 | exports.text = require('./tasks/lib/text'); 6 | exports.handlebars = require('./tasks/lib/handlebars'); 7 | exports.json = require('./tasks/lib/json'); 8 | -------------------------------------------------------------------------------- /tasks/lib/util.js: -------------------------------------------------------------------------------- 1 | var crypto = require('crypto'); 2 | 3 | exports.md5 = function md5(contents, deps) { 4 | if (!deps) deps = []; 5 | contents = deps.map(function(depFile) { 6 | return depFile.contents || ''; 7 | }).join('') + contents; 8 | return crypto 9 | .createHash('md5') 10 | .update(contents, 'utf8') 11 | .digest('hex') 12 | .slice(0, 8); 13 | }; 14 | -------------------------------------------------------------------------------- /tasks/lib/text.js: -------------------------------------------------------------------------------- 1 | var htmlclean = require('htmlclean'); 2 | var commonParser = require('./common'); 3 | 4 | exports.init = function(grunt) { 5 | return commonParser.init(grunt, { 6 | type: 'html', 7 | factoryParser: getCode 8 | }); 9 | }; 10 | 11 | function getCode(data) { 12 | data = htmlclean(data).replace(/(\"|\'|\\)/g, '\\$1'); 13 | return '"' + data + '"'; 14 | } 15 | -------------------------------------------------------------------------------- /test/cases/style/a.css.js.expect: -------------------------------------------------------------------------------- 1 | define("arale/widget/1.0.0/a.css", [], function() { 2 | seajs.importStyle('@charset "utf-8";.arale-widget-1_0_0 body{_color:red}.arale-widget-1_0_0 .content li,.arale-widget-1_0_0 .content a{*display:inline-block;background:url(a.jpg)}@media screen{.arale-widget-1_0_0 body{font-size:13px}.arale-widget-1_0_0 .content li{background-color:#fff}}@keyframes foo{0%{top:0;left:0}100%{top:100px;left:100%}}:root .arale-widget-1_0_0 .content{font-size:12px}'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/style/a-debug.css.js.expect: -------------------------------------------------------------------------------- 1 | define("arale/widget/1.0.0/a-debug.css", [], function() { 2 | seajs.importStyle('@charset "utf-8";.arale-widget-1_0_0 body{_color:red}.arale-widget-1_0_0 .content li,.arale-widget-1_0_0 .content a{*display:inline-block;background:url(a.jpg)}@media screen{.arale-widget-1_0_0 body{font-size:13px}.arale-widget-1_0_0 .content li{background-color:#fff}}@keyframes foo{0%{top:0;left:0}100%{top:100px;left:100%}}:root .arale-widget-1_0_0 .content{font-size:12px}'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/style/a.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | 3 | @import url("fineprint.css"); 4 | 5 | body { 6 | 7 | _color: red; 8 | } 9 | 10 | /* { } */ 11 | .content li, .content a { 12 | *display: inline-block; 13 | background: url("a.jpg") 14 | } 15 | 16 | @media screen { 17 | body { font-size: 13px } 18 | 19 | .content li { 20 | background-color: #fff; 21 | } 22 | } 23 | 24 | @keyframes foo { 25 | 0% { top: 0; left: 0 } 26 | 100% { top: 100px; left: 100% } 27 | } 28 | 29 | :root .content { 30 | font-size: 12px; 31 | } 32 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "eqeqeq": true, 3 | "forin": false, 4 | "latedef": false, 5 | "newcap": true, 6 | "quotmark": false, 7 | "undef": true, 8 | "unused": true, 9 | "trailing": true, 10 | "lastsemic": true, 11 | "asi": false, 12 | "boss": true, 13 | "expr": true, 14 | "strict": false, 15 | "funcscope": true, 16 | "loopfunc": true, 17 | "multistr": true, 18 | "proto": false, 19 | "smarttabs": true, 20 | "shadow": false, 21 | "sub": true, 22 | "passfail": false, 23 | "node": true, 24 | "white": false, 25 | "mocha": true 26 | } 27 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/alice/loading/1.0.0/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "family": "alice", 3 | "name": "loading", 4 | "description": "alice loading style.", 5 | "version": "1.0.0", 6 | "homepage": "http://aliceui.org/loading/", 7 | "keywords": [ 8 | "加载中" 9 | ], 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/aliceui/loading/" 13 | }, 14 | "bugs": { 15 | "url": "https://github.com/aliceui/loading/issues" 16 | }, 17 | "spm": { 18 | "alias": {}, 19 | "output": [ 20 | "loading.css" 21 | ] 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/alice/list/1.0.1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "list", 3 | "version": "1.0.1", 4 | "family": "alice", 5 | "description": "通用列表样式。", 6 | "keywords": [ 7 | "列表" 8 | ], 9 | "homepage": "http://aliceui.org/list", 10 | "author": "", 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/aliceui/list" 14 | }, 15 | "bugs": { 16 | "url": "https://github.com/aliceui/list/issues" 17 | }, 18 | "license": "MIT", 19 | "spm": { 20 | "alias": { 21 | }, 22 | "output": ["list.css"] 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/alice/list/1.0.1/list.css: -------------------------------------------------------------------------------- 1 | .ui-list{margin:0;padding:10px;list-style:square inside}.ui-list-item{font-size:9px;line-height:20px}.ui-list-item a{line-height:20px;text-decoration:none;color:#08c}.ui-list-item a,.ui-list-item span.ui-list-item-text{font-size:12px;vertical-align:middle}.ui-list-item a:hover{text-decoration:underline}.ui-list-gray .ui-list-item{color:gray}.ui-list-graylink .ui-list-item{color:gray}.ui-list-graylink .ui-list-item a{color:#666}.ui-list-nosquare{list-style:none}.ui-dlist{display:inline-block;color:gray;font-size:12px;line-height:2.2}.ui-dlist-tit{float:left;width:20%;text-align:right;margin:0}.ui-dlist-det{float:left;width:80%;text-align:left;margin:0} 2 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/gallery/handlebars/1.0.2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "family": "gallery", 3 | "name": "handlebars", 4 | "description": "Extension of the Mustache logicless template language", 5 | "version": "1.0.2", 6 | "version2": "1.0.0-rc.4", 7 | "package": "https://raw.github.com/wycats/handlebars.js/master/package.json", 8 | "homepage": "http://www.handlebarsjs.com/", 9 | "keywords": [ 10 | "handlebars", "mustache", "template", "html" 11 | ], 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/wycats/handlebars.js" 15 | }, 16 | "main": "lib/handlebars.js", 17 | "spm": { 18 | "output": ["handlebars.js", "runtime.js"] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/class/1.1.0/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "class", 3 | "family": "arale", 4 | "version": "1.1.0", 5 | "keywords": ["infrastructure"], 6 | "description": "提供简洁的 OO 实现。", 7 | "homepage": "http://aralejs.org/class/", 8 | "author": "玉伯 ", 9 | "maintainers": [ 10 | "玉伯 ", 11 | "贯高 " 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/aralejs/class.git" 16 | }, 17 | "bugs": { 18 | "url": "https://github.com/aralejs/class/issues" 19 | }, 20 | "spm": { 21 | "output": ["class.js"] 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/events/1.1.0/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "events", 3 | "family": "arale", 4 | "version": "1.1.0", 5 | "description": "提供基本的事件添加、移除和触发功能。", 6 | "keywords": ["infrastructure"], 7 | "homepage": "http://aralejs.org/events/", 8 | "author": "玉伯 ", 9 | "maintainers": [ 10 | "玉伯 ", 11 | "贯高 " 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/aralejs/events.git" 16 | }, 17 | "bugs": { 18 | "url": "https://github.com/aralejs/events/issues" 19 | }, 20 | "spm": { 21 | "output": ["events.js"] 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/easing/1.0.0/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "easing", 3 | "family": "arale", 4 | "version": "1.0.0", 5 | "keywords": [ 6 | "utility" 7 | ], 8 | "description": "Easing 是动画的平滑函数扩展包。由于 jQuery 自带的比较少,通过这个包可以增加更多平滑函数。", 9 | "homepage": "http://aralejs.org/easing/", 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/aralejs/easing.git" 13 | }, 14 | "author": "偏右 ", 15 | "maintainers": [ 16 | "偏右 ", 17 | "贯高 " 18 | ], 19 | "bugs": { 20 | "url": "https://github.com/aralejs/easing/issues" 21 | }, 22 | "spm": { 23 | "alias": { 24 | "$":"$" 25 | }, 26 | "output": ["easing.js"] 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/base/1.1.1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "base", 3 | "family": "arale", 4 | "version": "1.1.1", 5 | "description": "Base 是一个基础类,提供 Class、Events、Attribute 和 Aspect 支持。", 6 | "keywords": ["infrastructure"], 7 | "homepage": "http://aralejs.org/base", 8 | "author": "贯高 ", 9 | "maintainers": [ 10 | "玉伯 ", 11 | "贯高 " 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/aralejs/base.git" 16 | }, 17 | "bugs": { 18 | "url": "https://github.com/aralejs/base/issues" 19 | }, 20 | "spm": { 21 | "alias": { 22 | "class": "arale/class/1.1.0/class", 23 | "events": "arale/events/1.1.0/events" 24 | }, 25 | "output": ["base.js"] 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/position/1.0.1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "position", 3 | "family": "arale", 4 | "version": "1.0.1", 5 | "keywords": ["utility"], 6 | "homepage": "http://aralejs.org/position/", 7 | "description": "简单实用的定位工具,将一个 DOM 节点相对于另一个 DOM 节点进行定位操作。", 8 | "author": "偏右 ", 9 | "maintainers": [ 10 | "偏右 ", 11 | "贯高 " 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/aralejs/position.git" 16 | }, 17 | "bugs": { 18 | "url": "https://github.com/aralejs/position/issues" 19 | }, 20 | "spm": { 21 | "alias": { 22 | "$": "$" 23 | }, 24 | "devAlias": { 25 | "$": "jquery/jquery/1.7.2/jquery" 26 | }, 27 | "output": ["position.js"] 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/widget/1.1.1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "family": "arale", 3 | "name": "widget", 4 | "version": "1.1.1", 5 | "description": "Widget 是 UI 组件的基础类,约定了组件的基本生命周期,实现了一些通用功能。基于 Widget 可以构建出任何你想要的 Web 界面组件。", 6 | "keywords": ["infrastructure", "ui"], 7 | "homepage": "http://aralejs.org/widget/", 8 | "author": "贯高 ", 9 | "maintainers": [ 10 | "玉伯 ", 11 | "贯高 " 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/aralejs/widget.git" 16 | }, 17 | "bugs": { 18 | "url": "https://github.com/aralejs/widget/issues" 19 | }, 20 | "spm": { 21 | "alias": { 22 | "$": "$", 23 | "base": "arale/base/1.1.1/base" 24 | }, 25 | "output": ["widget.js"] 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/cases/project/a-33cd4a1a.js.expect: -------------------------------------------------------------------------------- 1 | define("family/name/a-33cd4a1a", [ "./a-670b8177.handlebars", "./a-d41d8cd9.json", "./a-2cee5097.html", "./a-d41d8cd9.tpl", "./a-e1f4111c.css", "./b-0ec4c8ca", "arale/base/1.1.1/base", "arale/class/1.1.0/class", "arale/events/1.1.0/events", "alice/loading/1.0.0/loading.css", "arale/dialog/1.3.1/confirmbox", "arale/overlay/1.1.4/overlay", "arale/position/1.0.1/position", "arale/iframe-shim/1.0.2/iframe-shim", "arale/widget/1.1.1/widget", "arale/overlay/1.1.4/mask", "arale/templatable/0.9.2/templatable", "gallery/handlebars/1.0.2/handlebars", "gallery/handlebars/1.0.2/runtime" ], function(require) { 2 | require("./a-670b8177.handlebars"); 3 | require("./a-d41d8cd9.json"); 4 | require("./a-2cee5097.html"); 5 | require("./a-d41d8cd9.tpl"); 6 | require("./a-e1f4111c.css"); 7 | require("./b-0ec4c8ca.js"); 8 | require("arale/dialog/1.3.1/confirmbox"); 9 | }); 10 | -------------------------------------------------------------------------------- /test/cases/project/sea-modules/arale/iframe-shim/1.0.2/iframe-shim.js: -------------------------------------------------------------------------------- 1 | define("arale/iframe-shim/1.0.2/iframe-shim",["$","arale/position/1.0.1/position"],function(a,b,c){function d(a){this.target=g(a).eq(0)}function e(){}function f(a){var b={display:"none",border:"none",opacity:0,position:"absolute"},c=a.css("zIndex");return c&&c>0&&(b.zIndex=c-1),g("