├── .editorconfig ├── .github └── FUNDING.yml ├── .gitignore ├── .testignore ├── CHANGELOG.md ├── CHANGES ├── LICENSE ├── README.md ├── bin └── webmake.js ├── index.js ├── lib ├── browser │ └── load-css.js ├── find-package-root.js ├── parser.js └── webmake.tpl ├── package.json └── test ├── .eslintrc.json ├── __playground ├── enforce-strict.js ├── includes │ ├── markup.html │ └── style.css ├── lib │ ├── browser-test.js │ ├── browser │ │ ├── body.html │ │ └── test.css │ ├── circular-other-foo.js │ ├── circular-other.js │ ├── dir.js │ │ └── index.js │ ├── dynamic.js │ ├── included │ │ ├── a.js │ │ └── b.js │ ├── index.js │ ├── indexed │ │ └── index.js │ ├── mario.json │ ├── nl-comment.js │ ├── other-type-includes.js │ ├── path.js │ ├── path │ │ ├── index.js │ │ └── other.js │ ├── program.js │ ├── sub-longer │ │ ├── bar.js │ │ ├── inner │ │ │ └── other.js │ │ └── other.js │ ├── sub │ │ ├── foo.js │ │ └── inner │ │ │ ├── inner.js │ │ │ └── other.js │ ├── x.js │ ├── y.js │ └── z.js ├── node_modules │ ├── @scope │ │ └── package │ │ │ └── index.js │ ├── no-main │ │ └── lib │ │ │ └── some-module.js │ ├── path │ │ └── index.js │ ├── regular │ │ └── index.js │ └── test │ │ ├── lib │ │ ├── chosen-one.js │ │ ├── module.js │ │ └── other.js │ │ └── package.json ├── not-taken.js ├── other │ └── sub │ │ └── index.js ├── outer.js ├── require-native.js ├── sub-longer │ ├── bar.js │ ├── inner │ │ └── other.js │ └── other.js └── sub │ ├── foo.js │ └── inner │ ├── inner.js │ └── other.js ├── index.js └── lib ├── browser ├── __tad.js └── load-css.js └── parser.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: medikoo 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | npm-debug.log 3 | /package-lock.json 4 | -------------------------------------------------------------------------------- /.testignore: -------------------------------------------------------------------------------- 1 | /lib/find-package-root.js 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/CHANGES -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/README.md -------------------------------------------------------------------------------- /bin/webmake.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/bin/webmake.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/index.js -------------------------------------------------------------------------------- /lib/browser/load-css.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/lib/browser/load-css.js -------------------------------------------------------------------------------- /lib/find-package-root.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/lib/find-package-root.js -------------------------------------------------------------------------------- /lib/parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/lib/parser.js -------------------------------------------------------------------------------- /lib/webmake.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/lib/webmake.tpl -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/package.json -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { "rules": { "id-length": "off" } } 2 | -------------------------------------------------------------------------------- /test/__playground/enforce-strict.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/enforce-strict.js -------------------------------------------------------------------------------- /test/__playground/includes/markup.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/includes/markup.html -------------------------------------------------------------------------------- /test/__playground/includes/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | padding: 10px; 3 | } 4 | -------------------------------------------------------------------------------- /test/__playground/lib/browser-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/browser-test.js -------------------------------------------------------------------------------- /test/__playground/lib/browser/body.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/browser/body.html -------------------------------------------------------------------------------- /test/__playground/lib/browser/test.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: black; 3 | background: white; 4 | } 5 | -------------------------------------------------------------------------------- /test/__playground/lib/circular-other-foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/circular-other-foo.js -------------------------------------------------------------------------------- /test/__playground/lib/circular-other.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/circular-other.js -------------------------------------------------------------------------------- /test/__playground/lib/dir.js/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = "DIR.JS"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/dynamic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/dynamic.js -------------------------------------------------------------------------------- /test/__playground/lib/included/a.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "included.a"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/included/b.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "included.b"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = "main.index"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/indexed/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "indexed"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/mario.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/mario.json -------------------------------------------------------------------------------- /test/__playground/lib/nl-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/nl-comment.js -------------------------------------------------------------------------------- /test/__playground/lib/other-type-includes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/other-type-includes.js -------------------------------------------------------------------------------- /test/__playground/lib/path.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "path.js"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/path/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | "use strict"; 4 | 5 | exports.name = "path"; 6 | -------------------------------------------------------------------------------- /test/__playground/lib/path/other.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/path/other.js -------------------------------------------------------------------------------- /test/__playground/lib/program.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/program.js -------------------------------------------------------------------------------- /test/__playground/lib/sub-longer/bar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/sub-longer/bar.js -------------------------------------------------------------------------------- /test/__playground/lib/sub-longer/inner/other.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/sub-longer/inner/other.js -------------------------------------------------------------------------------- /test/__playground/lib/sub-longer/other.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.id = "sub-longer-other"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/sub/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/sub/foo.js -------------------------------------------------------------------------------- /test/__playground/lib/sub/inner/inner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/sub/inner/inner.js -------------------------------------------------------------------------------- /test/__playground/lib/sub/inner/other.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.id = "sub-inner-other"; 4 | -------------------------------------------------------------------------------- /test/__playground/lib/x.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/x.js -------------------------------------------------------------------------------- /test/__playground/lib/y.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/y.js -------------------------------------------------------------------------------- /test/__playground/lib/z.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/lib/z.js -------------------------------------------------------------------------------- /test/__playground/node_modules/@scope/package/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "scoped-by-index"; 4 | -------------------------------------------------------------------------------- /test/__playground/node_modules/no-main/lib/some-module.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "no-main"; 4 | -------------------------------------------------------------------------------- /test/__playground/node_modules/path/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = "path for web"; 4 | -------------------------------------------------------------------------------- /test/__playground/node_modules/regular/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "external-by-index"; 4 | -------------------------------------------------------------------------------- /test/__playground/node_modules/test/lib/chosen-one.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/node_modules/test/lib/chosen-one.js -------------------------------------------------------------------------------- /test/__playground/node_modules/test/lib/module.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "module"; 4 | -------------------------------------------------------------------------------- /test/__playground/node_modules/test/lib/other.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/node_modules/test/lib/other.js -------------------------------------------------------------------------------- /test/__playground/node_modules/test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "lib/chosen-one" 3 | } 4 | -------------------------------------------------------------------------------- /test/__playground/not-taken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/not-taken.js -------------------------------------------------------------------------------- /test/__playground/other/sub/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.name = "outer-index"; 4 | -------------------------------------------------------------------------------- /test/__playground/outer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports.name = "outer"; 4 | -------------------------------------------------------------------------------- /test/__playground/require-native.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.fs = require("fs"); 4 | -------------------------------------------------------------------------------- /test/__playground/sub-longer/bar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/sub-longer/bar.js -------------------------------------------------------------------------------- /test/__playground/sub-longer/inner/other.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/sub-longer/inner/other.js -------------------------------------------------------------------------------- /test/__playground/sub-longer/other.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.id = "sub-longer-other"; 4 | -------------------------------------------------------------------------------- /test/__playground/sub/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/sub/foo.js -------------------------------------------------------------------------------- /test/__playground/sub/inner/inner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/__playground/sub/inner/inner.js -------------------------------------------------------------------------------- /test/__playground/sub/inner/other.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | exports.id = "sub-inner-other"; 4 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/index.js -------------------------------------------------------------------------------- /test/lib/browser/__tad.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/lib/browser/__tad.js -------------------------------------------------------------------------------- /test/lib/browser/load-css.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/lib/browser/load-css.js -------------------------------------------------------------------------------- /test/lib/parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/medikoo/modules-webmake/HEAD/test/lib/parser.js --------------------------------------------------------------------------------