├── .gitignore ├── .jshintignore ├── .jshintrc ├── .npmignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── bin ├── lego ├── lego-build ├── lego-completion ├── lego-config ├── lego-doc ├── lego-info ├── lego-init ├── lego-install ├── lego-link ├── lego-login ├── lego-ls ├── lego-publish ├── lego-search ├── lego-test └── lego-unpublish ├── lib ├── client.js ├── doc.js ├── sdk │ ├── iduri.js │ ├── module.js │ └── yuan.js ├── template │ ├── HISTORY.md │ ├── README.md │ ├── dlignore │ ├── examples │ │ └── index.md │ ├── gitignore │ ├── index.js │ ├── legoignore │ ├── package.json │ ├── src │ │ └── index.js │ ├── tests │ │ └── index-spec.js │ └── travis.yml ├── test.js ├── theme │ ├── lnico.js │ ├── nico.js │ ├── static │ │ ├── css │ │ │ ├── mocha.css │ │ │ ├── normalize.css │ │ │ ├── site.css │ │ │ └── solarized.css │ │ └── js │ │ │ ├── arale-qrcode.js │ │ │ ├── html5shiv.js │ │ │ ├── mocha.js │ │ │ ├── nprogress.js │ │ │ └── sea.js │ ├── templates │ │ ├── history.html │ │ ├── iframe.html │ │ ├── layout.html │ │ ├── mocha-runner.html │ │ ├── post.html │ │ └── snippet │ │ │ ├── foot.html │ │ │ └── head.html │ └── theme.js ├── upload.js └── utils │ ├── print.js │ ├── run.js │ └── tar.js ├── package.json ├── scripts ├── .lego_completion └── githooks │ ├── post-merge │ └── pre-commit └── test ├── doc.js ├── fixtures ├── normal │ ├── index.js │ ├── lego_modules │ │ └── b │ │ │ └── 0.1.0 │ │ │ ├── index.js │ │ │ └── package.json │ ├── package.json │ └── relative.js └── tar-ignore │ ├── README.md │ ├── a │ └── a.js │ ├── b │ └── b.js │ └── package.json ├── iduri.js ├── ignore.js └── module.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/.jshintignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/.jshintrc -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/README.md -------------------------------------------------------------------------------- /bin/lego: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego -------------------------------------------------------------------------------- /bin/lego-build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('lego-build/cli'); 4 | -------------------------------------------------------------------------------- /bin/lego-completion: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-completion -------------------------------------------------------------------------------- /bin/lego-config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-config -------------------------------------------------------------------------------- /bin/lego-doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-doc -------------------------------------------------------------------------------- /bin/lego-info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-info -------------------------------------------------------------------------------- /bin/lego-init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-init -------------------------------------------------------------------------------- /bin/lego-install: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-install -------------------------------------------------------------------------------- /bin/lego-link: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-link -------------------------------------------------------------------------------- /bin/lego-login: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-login -------------------------------------------------------------------------------- /bin/lego-ls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-ls -------------------------------------------------------------------------------- /bin/lego-publish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-publish -------------------------------------------------------------------------------- /bin/lego-search: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-search -------------------------------------------------------------------------------- /bin/lego-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-test -------------------------------------------------------------------------------- /bin/lego-unpublish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/bin/lego-unpublish -------------------------------------------------------------------------------- /lib/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/client.js -------------------------------------------------------------------------------- /lib/doc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/doc.js -------------------------------------------------------------------------------- /lib/sdk/iduri.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/sdk/iduri.js -------------------------------------------------------------------------------- /lib/sdk/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/sdk/module.js -------------------------------------------------------------------------------- /lib/sdk/yuan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/sdk/yuan.js -------------------------------------------------------------------------------- /lib/template/HISTORY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/HISTORY.md -------------------------------------------------------------------------------- /lib/template/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/README.md -------------------------------------------------------------------------------- /lib/template/dlignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/dlignore -------------------------------------------------------------------------------- /lib/template/examples/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/examples/index.md -------------------------------------------------------------------------------- /lib/template/gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/gitignore -------------------------------------------------------------------------------- /lib/template/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/index.js -------------------------------------------------------------------------------- /lib/template/legoignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/legoignore -------------------------------------------------------------------------------- /lib/template/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/package.json -------------------------------------------------------------------------------- /lib/template/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/src/index.js -------------------------------------------------------------------------------- /lib/template/tests/index-spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/tests/index-spec.js -------------------------------------------------------------------------------- /lib/template/travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/template/travis.yml -------------------------------------------------------------------------------- /lib/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/test.js -------------------------------------------------------------------------------- /lib/theme/lnico.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/lnico.js -------------------------------------------------------------------------------- /lib/theme/nico.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/nico.js -------------------------------------------------------------------------------- /lib/theme/static/css/mocha.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/css/mocha.css -------------------------------------------------------------------------------- /lib/theme/static/css/normalize.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/css/normalize.css -------------------------------------------------------------------------------- /lib/theme/static/css/site.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/css/site.css -------------------------------------------------------------------------------- /lib/theme/static/css/solarized.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/css/solarized.css -------------------------------------------------------------------------------- /lib/theme/static/js/arale-qrcode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/js/arale-qrcode.js -------------------------------------------------------------------------------- /lib/theme/static/js/html5shiv.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/js/html5shiv.js -------------------------------------------------------------------------------- /lib/theme/static/js/mocha.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/js/mocha.js -------------------------------------------------------------------------------- /lib/theme/static/js/nprogress.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/js/nprogress.js -------------------------------------------------------------------------------- /lib/theme/static/js/sea.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/static/js/sea.js -------------------------------------------------------------------------------- /lib/theme/templates/history.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/history.html -------------------------------------------------------------------------------- /lib/theme/templates/iframe.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/iframe.html -------------------------------------------------------------------------------- /lib/theme/templates/layout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/layout.html -------------------------------------------------------------------------------- /lib/theme/templates/mocha-runner.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/mocha-runner.html -------------------------------------------------------------------------------- /lib/theme/templates/post.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/post.html -------------------------------------------------------------------------------- /lib/theme/templates/snippet/foot.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/snippet/foot.html -------------------------------------------------------------------------------- /lib/theme/templates/snippet/head.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/templates/snippet/head.html -------------------------------------------------------------------------------- /lib/theme/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/theme/theme.js -------------------------------------------------------------------------------- /lib/upload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/upload.js -------------------------------------------------------------------------------- /lib/utils/print.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/utils/print.js -------------------------------------------------------------------------------- /lib/utils/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/utils/run.js -------------------------------------------------------------------------------- /lib/utils/tar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/lib/utils/tar.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/package.json -------------------------------------------------------------------------------- /scripts/.lego_completion: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/scripts/.lego_completion -------------------------------------------------------------------------------- /scripts/githooks/post-merge: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | make 4 | -------------------------------------------------------------------------------- /scripts/githooks/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/scripts/githooks/pre-commit -------------------------------------------------------------------------------- /test/doc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/doc.js -------------------------------------------------------------------------------- /test/fixtures/normal/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/fixtures/normal/index.js -------------------------------------------------------------------------------- /test/fixtures/normal/lego_modules/b/0.1.0/index.js: -------------------------------------------------------------------------------- 1 | console.log('b'); -------------------------------------------------------------------------------- /test/fixtures/normal/lego_modules/b/0.1.0/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/fixtures/normal/lego_modules/b/0.1.0/package.json -------------------------------------------------------------------------------- /test/fixtures/normal/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/fixtures/normal/package.json -------------------------------------------------------------------------------- /test/fixtures/normal/relative.js: -------------------------------------------------------------------------------- 1 | console.log('relative'); 2 | -------------------------------------------------------------------------------- /test/fixtures/tar-ignore/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/tar-ignore/a/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/tar-ignore/b/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/tar-ignore/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/fixtures/tar-ignore/package.json -------------------------------------------------------------------------------- /test/iduri.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/iduri.js -------------------------------------------------------------------------------- /test/ignore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/ignore.js -------------------------------------------------------------------------------- /test/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imweb/lego/HEAD/test/module.js --------------------------------------------------------------------------------