├── .editorconfig ├── .eslintrc ├── .gitignore ├── .jshintignore ├── .jshintrc ├── .npmignore ├── .tern-project ├── .travis.yml ├── README.md ├── dist └── .gitignore ├── index.js ├── lib ├── append.js ├── arrayToObject.js ├── fold.js ├── forOwn.js ├── indexOf.js ├── loadScript.js ├── parallel.js └── partition.js ├── package.json ├── preludes ├── _prelude.js └── prelude.js └── test ├── append.js ├── browser.js ├── dedupe.js ├── example.html ├── extensions.js ├── fixtures ├── a.js ├── b.js ├── c.js ├── d.js ├── dedupe-2 │ ├── a │ │ └── x.js │ ├── b │ │ ├── x.js │ │ └── y.js │ ├── bundle.json │ └── index.js ├── dedupe │ ├── a │ │ └── x.js │ ├── b │ │ └── x.js │ └── index.js ├── e.js ├── extensions │ ├── bundle.json │ └── x.jsx ├── f │ └── index.js ├── k.js ├── loadScript.js ├── m.js ├── map.json ├── n.js ├── o.js ├── p.js ├── package-with-browser │ ├── bundle.json │ ├── index.js │ ├── lib │ │ ├── hislib │ │ │ └── index.js │ │ └── mylib │ │ │ └── index.js │ └── package.json ├── package-with-node-modules │ ├── bundle.json │ ├── index.js │ ├── node_modules │ │ ├── hislib │ │ │ └── index.js │ │ └── mylib │ │ │ └── index.js │ └── package.json ├── q.js ├── r.js └── s.js ├── fold.js ├── forOwn.js ├── index.html ├── indexOf.js ├── loadScript.js ├── loadjs.js ├── node.js ├── package-with-browser.js ├── package-with-node-modules.js ├── parallel.js └── partition.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /.jshintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/.jshintignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | dist 3 | -------------------------------------------------------------------------------- /.tern-project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/.tern-project -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/README.md -------------------------------------------------------------------------------- /dist/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/index.js -------------------------------------------------------------------------------- /lib/append.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/append.js -------------------------------------------------------------------------------- /lib/arrayToObject.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/arrayToObject.js -------------------------------------------------------------------------------- /lib/fold.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/fold.js -------------------------------------------------------------------------------- /lib/forOwn.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/forOwn.js -------------------------------------------------------------------------------- /lib/indexOf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/indexOf.js -------------------------------------------------------------------------------- /lib/loadScript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/loadScript.js -------------------------------------------------------------------------------- /lib/parallel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/parallel.js -------------------------------------------------------------------------------- /lib/partition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/lib/partition.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/package.json -------------------------------------------------------------------------------- /preludes/_prelude.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/preludes/_prelude.js -------------------------------------------------------------------------------- /preludes/prelude.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/preludes/prelude.js -------------------------------------------------------------------------------- /test/append.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/append.js -------------------------------------------------------------------------------- /test/browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/browser.js -------------------------------------------------------------------------------- /test/dedupe.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/dedupe.js -------------------------------------------------------------------------------- /test/example.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/example.html -------------------------------------------------------------------------------- /test/extensions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/extensions.js -------------------------------------------------------------------------------- /test/fixtures/a.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/a.js -------------------------------------------------------------------------------- /test/fixtures/b.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | b: 'b', 3 | c: require('./c') 4 | }; 5 | -------------------------------------------------------------------------------- /test/fixtures/c.js: -------------------------------------------------------------------------------- 1 | module.exports = 'c'; 2 | -------------------------------------------------------------------------------- /test/fixtures/d.js: -------------------------------------------------------------------------------- 1 | module.exports = 'd'; 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe-2/a/x.js: -------------------------------------------------------------------------------- 1 | module.exports = 'x'; 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe-2/b/x.js: -------------------------------------------------------------------------------- 1 | module.exports = 'x'; 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe-2/b/y.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./x'); 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe-2/bundle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/dedupe-2/bundle.json -------------------------------------------------------------------------------- /test/fixtures/dedupe-2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'dummy'; 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe/a/x.js: -------------------------------------------------------------------------------- 1 | module.exports = 'x'; 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe/b/x.js: -------------------------------------------------------------------------------- 1 | module.exports = 'x'; 2 | -------------------------------------------------------------------------------- /test/fixtures/dedupe/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/dedupe/index.js -------------------------------------------------------------------------------- /test/fixtures/e.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | e: 'e', 3 | c: require('./c') 4 | }; 5 | -------------------------------------------------------------------------------- /test/fixtures/extensions/bundle.json: -------------------------------------------------------------------------------- 1 | { 2 | "bundle.js": ["./x"] 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/extensions/x.jsx: -------------------------------------------------------------------------------- 1 | module.exports = 'bundle-with-jsx'; 2 | -------------------------------------------------------------------------------- /test/fixtures/f/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'f'; 2 | -------------------------------------------------------------------------------- /test/fixtures/k.js: -------------------------------------------------------------------------------- 1 | module.exports = 'k'; 2 | -------------------------------------------------------------------------------- /test/fixtures/loadScript.js: -------------------------------------------------------------------------------- 1 | var LOAD_SCRIPT = true; 2 | -------------------------------------------------------------------------------- /test/fixtures/m.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | m: 'm', 3 | o: require('./o') 4 | }; 5 | 6 | -------------------------------------------------------------------------------- /test/fixtures/map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/map.json -------------------------------------------------------------------------------- /test/fixtures/n.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | n: 'n', 3 | o: require('./o') 4 | }; 5 | -------------------------------------------------------------------------------- /test/fixtures/o.js: -------------------------------------------------------------------------------- 1 | module.exports = 'o'; 2 | 3 | function a() { 4 | console.log(a); 5 | } 6 | 7 | a(); 8 | -------------------------------------------------------------------------------- /test/fixtures/p.js: -------------------------------------------------------------------------------- 1 | module.exports = 'p'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-browser/bundle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/package-with-browser/bundle.json -------------------------------------------------------------------------------- /test/fixtures/package-with-browser/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'index'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-browser/lib/hislib/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'hislib'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-browser/lib/mylib/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'mylib'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-browser/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/package-with-browser/package.json -------------------------------------------------------------------------------- /test/fixtures/package-with-node-modules/bundle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/package-with-node-modules/bundle.json -------------------------------------------------------------------------------- /test/fixtures/package-with-node-modules/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'index'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-node-modules/node_modules/hislib/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'hislib'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-node-modules/node_modules/mylib/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'mylib'; 2 | -------------------------------------------------------------------------------- /test/fixtures/package-with-node-modules/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fixtures/package-with-node-modules/package.json -------------------------------------------------------------------------------- /test/fixtures/q.js: -------------------------------------------------------------------------------- 1 | module.exports = 'q'; 2 | -------------------------------------------------------------------------------- /test/fixtures/r.js: -------------------------------------------------------------------------------- 1 | module.exports = 'r'; 2 | -------------------------------------------------------------------------------- /test/fixtures/s.js: -------------------------------------------------------------------------------- 1 | module.exports = 's'; 2 | -------------------------------------------------------------------------------- /test/fold.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/fold.js -------------------------------------------------------------------------------- /test/forOwn.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/forOwn.js -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/index.html -------------------------------------------------------------------------------- /test/indexOf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/indexOf.js -------------------------------------------------------------------------------- /test/loadScript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/loadScript.js -------------------------------------------------------------------------------- /test/loadjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/loadjs.js -------------------------------------------------------------------------------- /test/node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/node.js -------------------------------------------------------------------------------- /test/package-with-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/package-with-browser.js -------------------------------------------------------------------------------- /test/package-with-node-modules.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/package-with-node-modules.js -------------------------------------------------------------------------------- /test/parallel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/parallel.js -------------------------------------------------------------------------------- /test/partition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arian/partition-bundle/HEAD/test/partition.js --------------------------------------------------------------------------------