├── .eslintignore ├── .eslintrc ├── .gitignore ├── .npmignore ├── .travis.yml ├── History.md ├── Makefile ├── Readme.md ├── bin ├── _duo ├── duo ├── duo-authenticate ├── duo-clean-cache ├── duo-duplicates ├── duo-install └── duo-ls ├── docs ├── api.md ├── cli.md ├── faq.md └── plugins.md ├── examples ├── component │ ├── app.html │ ├── component.json │ ├── index.js │ └── main.js ├── css │ ├── component.json │ ├── index.html │ ├── index.js │ ├── lib │ │ └── base │ │ │ └── index.css │ └── main.css ├── duplicates │ ├── component.json │ └── module.js ├── entry │ ├── another.js │ ├── app.html │ ├── component.json │ ├── index.js │ └── main.js ├── gulpfile │ ├── gulpfile.js │ ├── home.css │ └── home.js ├── jade │ ├── app.html │ ├── index.js │ ├── main.js │ └── template.jade ├── module │ ├── app.html │ ├── index.js │ └── main.js └── regenerator │ ├── index.js │ └── main.js ├── lib ├── cache.js ├── duo.js ├── file.js └── util.js ├── package.json └── test ├── .eslintrc ├── api.js ├── cli.js ├── examples.js ├── fixtures ├── alt-plugin │ ├── index.js │ └── plugin.js ├── assets │ ├── duo.png │ └── svg │ │ ├── logo-black.svg │ │ └── logo-white.svg ├── bundles │ ├── component.json │ ├── one.js │ └── two.js ├── cli-duo-ls │ ├── a.js │ ├── b.js │ ├── component.json │ └── index.js ├── cli-duo │ ├── index.coffee │ ├── index.css │ ├── index.js │ └── plugin.js ├── coffee-deps │ ├── index.js │ └── one.coffee ├── coffee │ └── index.coffee ├── concurrent-mapping │ ├── index.css │ └── index.js ├── copy │ ├── duo.png │ ├── index.css │ └── index.out.css ├── css-assets │ ├── index.css │ └── index.out.css ├── css-dup-asset │ ├── duo.png │ ├── index.css │ └── index.out.css ├── css-hash-query-files │ ├── dep.css │ ├── index.css │ └── index.out.css ├── css-http-dep │ ├── index.css │ └── index.out.css ├── css-ignore-unresolved │ ├── index.css │ └── index.out.css ├── css-no-deps │ ├── index.css │ └── index.out.css ├── css-relative-files │ ├── index.css │ ├── index.out.css │ ├── one.css │ └── two.css ├── css-simple-dep │ ├── index.css │ └── index.out.css ├── css-styl-deps │ ├── index.css │ ├── index.out.css │ ├── one.styl │ └── two.styl ├── css-styl │ ├── index.out.css │ └── index.styl ├── css-url │ ├── index.out.css │ └── lib │ │ ├── assets │ │ └── badgermandu.jpg │ │ └── inline.css ├── deps-semver │ └── index.js ├── different-names │ ├── component.json │ └── index.js ├── empty-css-file │ ├── dep.css │ ├── index.css │ └── index.out.css ├── entries │ ├── admin.js │ └── index.js ├── file-dots │ ├── a.1.js │ └── index.js ├── global │ └── index.js ├── hybrid-full │ ├── index.css │ └── index.js ├── idempotent │ └── index.js ├── includes │ └── index.js ├── install-deps │ ├── index.css │ └── index.js ├── js-css-dep │ ├── component.json │ ├── index.css │ ├── index.js │ └── index.out.css ├── json-dep │ ├── index.js │ └── obj.json ├── local-vs-remote │ ├── .gitignore │ ├── index.js │ └── local.js ├── main-obj │ ├── index.css │ ├── index.js │ ├── index.out.css │ └── local │ │ ├── component.json │ │ ├── local.css │ │ └── local.js ├── manifest-deps │ ├── component.json │ └── index.js ├── manifest-modify │ ├── component-a.json │ ├── component-b.json │ └── index.js ├── manifest-syntax-err │ ├── component.json │ └── index.js ├── multiple-versions │ └── index.js ├── no-deps │ └── index.js ├── plugins │ ├── index.js │ ├── plugin.js │ └── plugins.js ├── rebuild │ └── index.js ├── relative-path │ ├── index.js │ └── test │ │ └── test.js ├── require-conflict │ ├── component.json │ └── index.js ├── resolve-absolute-missing │ └── index.js ├── resolve-file │ ├── index.js │ ├── lib │ │ └── index.js │ └── resolved.js ├── resolve-relative-missing │ └── index.js ├── resolve │ ├── index.js │ └── lib │ │ └── index.js ├── simple-deps │ ├── component.json │ └── index.js ├── simple-dev-deps │ ├── component.json │ └── index.js ├── simple │ ├── index.js │ ├── one.js │ └── two.js ├── symlink-assets │ ├── badgermandu.jpg │ ├── index.css │ └── index.out.css ├── symlink │ ├── duo.png │ ├── index.css │ └── index.out.css ├── user-repo-dep │ ├── component.json │ └── index.js └── user-repo-ref-path │ ├── index.css │ └── index.out.css └── mocha.opts /.eslintignore: -------------------------------------------------------------------------------- 1 | examples 2 | components 3 | test/fixtures 4 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "duo" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/.travis.yml -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/History.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/Makefile -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/Readme.md -------------------------------------------------------------------------------- /bin/_duo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/_duo -------------------------------------------------------------------------------- /bin/duo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/duo -------------------------------------------------------------------------------- /bin/duo-authenticate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/duo-authenticate -------------------------------------------------------------------------------- /bin/duo-clean-cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/duo-clean-cache -------------------------------------------------------------------------------- /bin/duo-duplicates: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/duo-duplicates -------------------------------------------------------------------------------- /bin/duo-install: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/duo-install -------------------------------------------------------------------------------- /bin/duo-ls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/bin/duo-ls -------------------------------------------------------------------------------- /docs/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/docs/api.md -------------------------------------------------------------------------------- /docs/cli.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/docs/cli.md -------------------------------------------------------------------------------- /docs/faq.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/docs/faq.md -------------------------------------------------------------------------------- /docs/plugins.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/docs/plugins.md -------------------------------------------------------------------------------- /examples/component/app.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/component/app.html -------------------------------------------------------------------------------- /examples/component/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/component/component.json -------------------------------------------------------------------------------- /examples/component/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/component/index.js -------------------------------------------------------------------------------- /examples/component/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/component/main.js -------------------------------------------------------------------------------- /examples/css/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/css/component.json -------------------------------------------------------------------------------- /examples/css/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/css/index.html -------------------------------------------------------------------------------- /examples/css/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/css/index.js -------------------------------------------------------------------------------- /examples/css/lib/base/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/css/lib/base/index.css -------------------------------------------------------------------------------- /examples/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/css/main.css -------------------------------------------------------------------------------- /examples/duplicates/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/duplicates/component.json -------------------------------------------------------------------------------- /examples/duplicates/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/duplicates/module.js -------------------------------------------------------------------------------- /examples/entry/another.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/entry/another.js -------------------------------------------------------------------------------- /examples/entry/app.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/entry/app.html -------------------------------------------------------------------------------- /examples/entry/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/entry/component.json -------------------------------------------------------------------------------- /examples/entry/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/entry/index.js -------------------------------------------------------------------------------- /examples/entry/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/entry/main.js -------------------------------------------------------------------------------- /examples/gulpfile/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/gulpfile/gulpfile.js -------------------------------------------------------------------------------- /examples/gulpfile/home.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/gulpfile/home.css -------------------------------------------------------------------------------- /examples/gulpfile/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/gulpfile/home.js -------------------------------------------------------------------------------- /examples/jade/app.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/jade/app.html -------------------------------------------------------------------------------- /examples/jade/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/jade/index.js -------------------------------------------------------------------------------- /examples/jade/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/jade/main.js -------------------------------------------------------------------------------- /examples/jade/template.jade: -------------------------------------------------------------------------------- 1 | h1 hi #{who}! 2 | -------------------------------------------------------------------------------- /examples/module/app.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/module/app.html -------------------------------------------------------------------------------- /examples/module/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/module/index.js -------------------------------------------------------------------------------- /examples/module/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/module/main.js -------------------------------------------------------------------------------- /examples/regenerator/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/regenerator/index.js -------------------------------------------------------------------------------- /examples/regenerator/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/examples/regenerator/main.js -------------------------------------------------------------------------------- /lib/cache.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/lib/cache.js -------------------------------------------------------------------------------- /lib/duo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/lib/duo.js -------------------------------------------------------------------------------- /lib/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/lib/file.js -------------------------------------------------------------------------------- /lib/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/lib/util.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/package.json -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/.eslintrc -------------------------------------------------------------------------------- /test/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/api.js -------------------------------------------------------------------------------- /test/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/cli.js -------------------------------------------------------------------------------- /test/examples.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/examples.js -------------------------------------------------------------------------------- /test/fixtures/alt-plugin/index.js: -------------------------------------------------------------------------------- 1 | module.exports = true; 2 | -------------------------------------------------------------------------------- /test/fixtures/alt-plugin/plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/alt-plugin/plugin.js -------------------------------------------------------------------------------- /test/fixtures/assets/duo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/assets/duo.png -------------------------------------------------------------------------------- /test/fixtures/assets/svg/logo-black.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/assets/svg/logo-black.svg -------------------------------------------------------------------------------- /test/fixtures/assets/svg/logo-white.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/assets/svg/logo-white.svg -------------------------------------------------------------------------------- /test/fixtures/bundles/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/bundles/component.json -------------------------------------------------------------------------------- /test/fixtures/bundles/one.js: -------------------------------------------------------------------------------- 1 | module.exports = require('ms'); 2 | -------------------------------------------------------------------------------- /test/fixtures/bundles/two.js: -------------------------------------------------------------------------------- 1 | module.exports = require('type'); 2 | -------------------------------------------------------------------------------- /test/fixtures/cli-duo-ls/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/cli-duo-ls/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/cli-duo-ls/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/cli-duo-ls/component.json -------------------------------------------------------------------------------- /test/fixtures/cli-duo-ls/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/cli-duo-ls/index.js -------------------------------------------------------------------------------- /test/fixtures/cli-duo/index.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/cli-duo/index.coffee -------------------------------------------------------------------------------- /test/fixtures/cli-duo/index.css: -------------------------------------------------------------------------------- 1 | 2 | body { 3 | color: red; 4 | } -------------------------------------------------------------------------------- /test/fixtures/cli-duo/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = 'cli-duo'; 3 | -------------------------------------------------------------------------------- /test/fixtures/cli-duo/plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/cli-duo/plugin.js -------------------------------------------------------------------------------- /test/fixtures/coffee-deps/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./one.coffee'); 2 | -------------------------------------------------------------------------------- /test/fixtures/coffee-deps/one.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/coffee-deps/one.coffee -------------------------------------------------------------------------------- /test/fixtures/coffee/index.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/coffee/index.coffee -------------------------------------------------------------------------------- /test/fixtures/concurrent-mapping/index.css: -------------------------------------------------------------------------------- 1 | @import "necolas/normalize.css@3.0.2"; 2 | -------------------------------------------------------------------------------- /test/fixtures/concurrent-mapping/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/concurrent-mapping/index.js -------------------------------------------------------------------------------- /test/fixtures/copy/duo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/copy/duo.png -------------------------------------------------------------------------------- /test/fixtures/copy/index.css: -------------------------------------------------------------------------------- 1 | .icon { 2 | background: url('./duo.png'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/copy/index.out.css: -------------------------------------------------------------------------------- 1 | .icon { 2 | background: url('duo.png'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/css-assets/index.css: -------------------------------------------------------------------------------- 1 | @import "duojs/logo@0.0.2"; 2 | 3 | .title { 4 | font-size: 3em; 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/css-assets/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-assets/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-dup-asset/duo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-dup-asset/duo.png -------------------------------------------------------------------------------- /test/fixtures/css-dup-asset/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-dup-asset/index.css -------------------------------------------------------------------------------- /test/fixtures/css-dup-asset/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-dup-asset/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-hash-query-files/dep.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: red; 3 | } -------------------------------------------------------------------------------- /test/fixtures/css-hash-query-files/index.css: -------------------------------------------------------------------------------- 1 | @import './dep.css?wierd=stuff#1'; 2 | 3 | .selector { 4 | background: none; 5 | } -------------------------------------------------------------------------------- /test/fixtures/css-hash-query-files/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-hash-query-files/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-http-dep/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-http-dep/index.css -------------------------------------------------------------------------------- /test/fixtures/css-http-dep/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-http-dep/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-ignore-unresolved/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-ignore-unresolved/index.css -------------------------------------------------------------------------------- /test/fixtures/css-ignore-unresolved/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-ignore-unresolved/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-no-deps/index.css: -------------------------------------------------------------------------------- 1 | .a { 2 | background: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/css-no-deps/index.out.css: -------------------------------------------------------------------------------- 1 | .a { 2 | background: blue; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/css-relative-files/index.css: -------------------------------------------------------------------------------- 1 | @import "./one.css"; 2 | 3 | .index { 4 | color: white; 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/css-relative-files/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-relative-files/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-relative-files/one.css: -------------------------------------------------------------------------------- 1 | .one { 2 | color: green; 3 | } 4 | 5 | @import './two.css'; 6 | -------------------------------------------------------------------------------- /test/fixtures/css-relative-files/two.css: -------------------------------------------------------------------------------- 1 | .two { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/css-simple-dep/index.css: -------------------------------------------------------------------------------- 1 | .index { 2 | background: green; 3 | } 4 | 5 | @import 'matthewmueller/brewster-form'; 6 | -------------------------------------------------------------------------------- /test/fixtures/css-simple-dep/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-simple-dep/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-styl-deps/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-styl-deps/index.css -------------------------------------------------------------------------------- /test/fixtures/css-styl-deps/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-styl-deps/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-styl-deps/one.styl: -------------------------------------------------------------------------------- 1 | .one 2 | color: red 3 | -------------------------------------------------------------------------------- /test/fixtures/css-styl-deps/two.styl: -------------------------------------------------------------------------------- 1 | .two 2 | color: blue 3 | -------------------------------------------------------------------------------- /test/fixtures/css-styl/index.out.css: -------------------------------------------------------------------------------- 1 | .a { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/css-styl/index.styl: -------------------------------------------------------------------------------- 1 | .a 2 | color: red 3 | -------------------------------------------------------------------------------- /test/fixtures/css-url/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-url/index.out.css -------------------------------------------------------------------------------- /test/fixtures/css-url/lib/assets/badgermandu.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-url/lib/assets/badgermandu.jpg -------------------------------------------------------------------------------- /test/fixtures/css-url/lib/inline.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/css-url/lib/inline.css -------------------------------------------------------------------------------- /test/fixtures/deps-semver/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/deps-semver/index.js -------------------------------------------------------------------------------- /test/fixtures/different-names/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/different-names/component.json -------------------------------------------------------------------------------- /test/fixtures/different-names/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('ms'); 2 | -------------------------------------------------------------------------------- /test/fixtures/empty-css-file/dep.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/empty-css-file/index.css: -------------------------------------------------------------------------------- 1 | @import './dep.css'; 2 | 3 | body { 4 | background: red; 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/empty-css-file/index.out.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | body { 4 | background: red; 5 | } 6 | -------------------------------------------------------------------------------- /test/fixtures/entries/admin.js: -------------------------------------------------------------------------------- 1 | module.exports = 'admin'; 2 | -------------------------------------------------------------------------------- /test/fixtures/entries/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'index'; 2 | -------------------------------------------------------------------------------- /test/fixtures/file-dots/a.1.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/file-dots/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/file-dots/index.js -------------------------------------------------------------------------------- /test/fixtures/global/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/global/index.js -------------------------------------------------------------------------------- /test/fixtures/hybrid-full/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/hybrid-full/index.css -------------------------------------------------------------------------------- /test/fixtures/hybrid-full/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/hybrid-full/index.js -------------------------------------------------------------------------------- /test/fixtures/idempotent/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('component/type'); 3 | -------------------------------------------------------------------------------- /test/fixtures/includes/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('some-include'); 2 | -------------------------------------------------------------------------------- /test/fixtures/install-deps/index.css: -------------------------------------------------------------------------------- 1 | @import "suitcss/base@0.8.0"; 2 | -------------------------------------------------------------------------------- /test/fixtures/install-deps/index.js: -------------------------------------------------------------------------------- 1 | var type = require('component/type@1.1.0'); 2 | -------------------------------------------------------------------------------- /test/fixtures/js-css-dep/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/js-css-dep/component.json -------------------------------------------------------------------------------- /test/fixtures/js-css-dep/index.css: -------------------------------------------------------------------------------- 1 | .index { 2 | color: red; 3 | } 4 | 5 | @import 'pretty-html'; 6 | -------------------------------------------------------------------------------- /test/fixtures/js-css-dep/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('pretty-html'); 2 | -------------------------------------------------------------------------------- /test/fixtures/js-css-dep/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/js-css-dep/index.out.css -------------------------------------------------------------------------------- /test/fixtures/json-dep/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./obj.json'); 2 | -------------------------------------------------------------------------------- /test/fixtures/json-dep/obj.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/json-dep/obj.json -------------------------------------------------------------------------------- /test/fixtures/local-vs-remote/.gitignore: -------------------------------------------------------------------------------- 1 | not components 2 | -------------------------------------------------------------------------------- /test/fixtures/local-vs-remote/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/local-vs-remote/index.js -------------------------------------------------------------------------------- /test/fixtures/local-vs-remote/local.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = 'one'; 3 | -------------------------------------------------------------------------------- /test/fixtures/main-obj/index.css: -------------------------------------------------------------------------------- 1 | .main { 2 | color: red; 3 | } 4 | 5 | @import './local/component.json'; 6 | -------------------------------------------------------------------------------- /test/fixtures/main-obj/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./local/component.json'); 2 | -------------------------------------------------------------------------------- /test/fixtures/main-obj/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/main-obj/index.out.css -------------------------------------------------------------------------------- /test/fixtures/main-obj/local/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/main-obj/local/component.json -------------------------------------------------------------------------------- /test/fixtures/main-obj/local/local.css: -------------------------------------------------------------------------------- 1 | .local { 2 | color: purple; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/main-obj/local/local.js: -------------------------------------------------------------------------------- 1 | module.exports = 'local'; 2 | -------------------------------------------------------------------------------- /test/fixtures/manifest-deps/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/manifest-deps/component.json -------------------------------------------------------------------------------- /test/fixtures/manifest-deps/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('type'); 3 | -------------------------------------------------------------------------------- /test/fixtures/manifest-modify/component-a.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/manifest-modify/component-a.json -------------------------------------------------------------------------------- /test/fixtures/manifest-modify/component-b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/manifest-modify/component-b.json -------------------------------------------------------------------------------- /test/fixtures/manifest-modify/index.js: -------------------------------------------------------------------------------- 1 | require('domify'); 2 | -------------------------------------------------------------------------------- /test/fixtures/manifest-syntax-err/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/manifest-syntax-err/component.json -------------------------------------------------------------------------------- /test/fixtures/manifest-syntax-err/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('type'); 3 | -------------------------------------------------------------------------------- /test/fixtures/multiple-versions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/multiple-versions/index.js -------------------------------------------------------------------------------- /test/fixtures/no-deps/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'a'; 2 | -------------------------------------------------------------------------------- /test/fixtures/plugins/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/plugins/index.js -------------------------------------------------------------------------------- /test/fixtures/plugins/plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/plugins/plugin.js -------------------------------------------------------------------------------- /test/fixtures/plugins/plugins.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/plugins/plugins.js -------------------------------------------------------------------------------- /test/fixtures/rebuild/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('component/type'); 3 | -------------------------------------------------------------------------------- /test/fixtures/relative-path/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 'index'; 2 | -------------------------------------------------------------------------------- /test/fixtures/relative-path/test/test.js: -------------------------------------------------------------------------------- 1 | module.exports = require('..'); 2 | -------------------------------------------------------------------------------- /test/fixtures/require-conflict/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/require-conflict/component.json -------------------------------------------------------------------------------- /test/fixtures/require-conflict/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/require-conflict/index.js -------------------------------------------------------------------------------- /test/fixtures/resolve-absolute-missing/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('/lib'); // should not exist! 3 | -------------------------------------------------------------------------------- /test/fixtures/resolve-file/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/index.js'); 3 | -------------------------------------------------------------------------------- /test/fixtures/resolve-file/lib/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('../resolved'); 3 | -------------------------------------------------------------------------------- /test/fixtures/resolve-file/resolved.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = 'resolved'; 3 | -------------------------------------------------------------------------------- /test/fixtures/resolve-relative-missing/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib'); // should not exist! 3 | -------------------------------------------------------------------------------- /test/fixtures/resolve/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib'); 3 | -------------------------------------------------------------------------------- /test/fixtures/resolve/lib/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = 'resolved'; 3 | -------------------------------------------------------------------------------- /test/fixtures/simple-deps/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/simple-deps/component.json -------------------------------------------------------------------------------- /test/fixtures/simple-deps/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/simple-deps/index.js -------------------------------------------------------------------------------- /test/fixtures/simple-dev-deps/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/simple-dev-deps/component.json -------------------------------------------------------------------------------- /test/fixtures/simple-dev-deps/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/simple-dev-deps/index.js -------------------------------------------------------------------------------- /test/fixtures/simple/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/simple/index.js -------------------------------------------------------------------------------- /test/fixtures/simple/one.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = 'one'; 3 | -------------------------------------------------------------------------------- /test/fixtures/simple/two.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = 'two'; 3 | -------------------------------------------------------------------------------- /test/fixtures/symlink-assets/badgermandu.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/symlink-assets/badgermandu.jpg -------------------------------------------------------------------------------- /test/fixtures/symlink-assets/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url('./badgermandu.jpg'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/symlink-assets/index.out.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url('badgermandu.jpg'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/symlink/duo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/symlink/duo.png -------------------------------------------------------------------------------- /test/fixtures/symlink/index.css: -------------------------------------------------------------------------------- 1 | .icon { 2 | background: url('./duo.png'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/symlink/index.out.css: -------------------------------------------------------------------------------- 1 | .icon { 2 | background: url('duo.png'); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/user-repo-dep/component.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/user-repo-dep/component.json -------------------------------------------------------------------------------- /test/fixtures/user-repo-dep/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('component-type'); 2 | -------------------------------------------------------------------------------- /test/fixtures/user-repo-ref-path/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/user-repo-ref-path/index.css -------------------------------------------------------------------------------- /test/fixtures/user-repo-ref-path/index.out.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/fixtures/user-repo-ref-path/index.out.css -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/duojs/duo/HEAD/test/mocha.opts --------------------------------------------------------------------------------