├── .editorconfig ├── .eslintignore ├── .gitattributes ├── .gitignore ├── .travis.yml ├── .yo-rc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── __tests__ ├── examples │ ├── child.js │ ├── gulpfile.js │ ├── index.js │ ├── proxy.js │ ├── site.js │ └── standalone.js ├── fixtures │ ├── app │ │ ├── css │ │ │ ├── bootstrap.min.css │ │ │ └── starter-template.css │ │ ├── default.html │ │ ├── favicon.ico │ │ ├── index.html │ │ └── js │ │ │ ├── bootstrap.min.js │ │ │ └── ie10-viewport-bug-workaround.js │ ├── config.js │ ├── config.json │ ├── directoryIndexMissing │ │ ├── file.html │ │ └── package.json │ ├── dummy.json │ └── rootDir │ │ ├── README.md │ │ └── another.html ├── funcs │ ├── meow.test.js │ └── open.test.js ├── gulp │ ├── middleware-array.test.js │ ├── middleware.test.js │ ├── socket-client.test.js │ ├── socket-custom.test.js │ └── socket.test.js ├── main │ ├── 1-basic-1.test.js │ ├── 2-custom-a.test.js │ ├── 3-https-1.test.js │ ├── 3-https-2.test.js │ ├── 4-fallback.test.js │ └── 5-advance.test.js └── standalone │ ├── 1-basic.test.js │ ├── 2-port.test.js │ ├── 3-mock.test.js │ ├── 4-proxy.test.js │ ├── 5-path.test.js │ ├── 6-option.test.js │ └── 7-watcher.test.js ├── cli.js ├── export.js ├── gulp.js ├── index.js ├── package.json ├── server.js ├── src ├── certs │ ├── cert.crt │ └── cert.pem ├── index.js └── lib │ ├── app-watcher.js │ ├── app.js │ ├── debugger │ ├── client.js │ ├── client.tpl │ ├── index.js │ └── reload.tpl │ ├── injector │ ├── files-inject.js │ ├── index.js │ └── script-inject.js │ ├── open.js │ ├── options │ ├── enable-middleware-shorthand.js │ └── index.js │ ├── server-reload.js │ ├── utils │ ├── helper.js │ ├── log.js │ ├── mock-server.js │ ├── stream-watcher.js │ └── watcher.js │ └── webserver.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | __tests__ 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .tmp -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/.travis.yml -------------------------------------------------------------------------------- /.yo-rc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/.yo-rc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/examples/child.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/examples/child.js -------------------------------------------------------------------------------- /__tests__/examples/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/examples/gulpfile.js -------------------------------------------------------------------------------- /__tests__/examples/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/examples/index.js -------------------------------------------------------------------------------- /__tests__/examples/proxy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/examples/proxy.js -------------------------------------------------------------------------------- /__tests__/examples/site.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/examples/site.js -------------------------------------------------------------------------------- /__tests__/examples/standalone.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/examples/standalone.js -------------------------------------------------------------------------------- /__tests__/fixtures/app/css/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/css/bootstrap.min.css -------------------------------------------------------------------------------- /__tests__/fixtures/app/css/starter-template.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/css/starter-template.css -------------------------------------------------------------------------------- /__tests__/fixtures/app/default.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/default.html -------------------------------------------------------------------------------- /__tests__/fixtures/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/favicon.ico -------------------------------------------------------------------------------- /__tests__/fixtures/app/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/index.html -------------------------------------------------------------------------------- /__tests__/fixtures/app/js/bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/js/bootstrap.min.js -------------------------------------------------------------------------------- /__tests__/fixtures/app/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/app/js/ie10-viewport-bug-workaround.js -------------------------------------------------------------------------------- /__tests__/fixtures/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/config.js -------------------------------------------------------------------------------- /__tests__/fixtures/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/config.json -------------------------------------------------------------------------------- /__tests__/fixtures/directoryIndexMissing/file.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/directoryIndexMissing/file.html -------------------------------------------------------------------------------- /__tests__/fixtures/directoryIndexMissing/package.json: -------------------------------------------------------------------------------- 1 | { "version": "1.0.0", "todo": false } 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/dummy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/dummy.json -------------------------------------------------------------------------------- /__tests__/fixtures/rootDir/README.md: -------------------------------------------------------------------------------- 1 | just to write cache folder 2 | this should be watched -------------------------------------------------------------------------------- /__tests__/fixtures/rootDir/another.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/fixtures/rootDir/another.html -------------------------------------------------------------------------------- /__tests__/funcs/meow.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/funcs/meow.test.js -------------------------------------------------------------------------------- /__tests__/funcs/open.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/funcs/open.test.js -------------------------------------------------------------------------------- /__tests__/gulp/middleware-array.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/gulp/middleware-array.test.js -------------------------------------------------------------------------------- /__tests__/gulp/middleware.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/gulp/middleware.test.js -------------------------------------------------------------------------------- /__tests__/gulp/socket-client.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/gulp/socket-client.test.js -------------------------------------------------------------------------------- /__tests__/gulp/socket-custom.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/gulp/socket-custom.test.js -------------------------------------------------------------------------------- /__tests__/gulp/socket.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/gulp/socket.test.js -------------------------------------------------------------------------------- /__tests__/main/1-basic-1.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/main/1-basic-1.test.js -------------------------------------------------------------------------------- /__tests__/main/2-custom-a.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/main/2-custom-a.test.js -------------------------------------------------------------------------------- /__tests__/main/3-https-1.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/main/3-https-1.test.js -------------------------------------------------------------------------------- /__tests__/main/3-https-2.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/main/3-https-2.test.js -------------------------------------------------------------------------------- /__tests__/main/4-fallback.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/main/4-fallback.test.js -------------------------------------------------------------------------------- /__tests__/main/5-advance.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/main/5-advance.test.js -------------------------------------------------------------------------------- /__tests__/standalone/1-basic.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/1-basic.test.js -------------------------------------------------------------------------------- /__tests__/standalone/2-port.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/2-port.test.js -------------------------------------------------------------------------------- /__tests__/standalone/3-mock.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/3-mock.test.js -------------------------------------------------------------------------------- /__tests__/standalone/4-proxy.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/4-proxy.test.js -------------------------------------------------------------------------------- /__tests__/standalone/5-path.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/5-path.test.js -------------------------------------------------------------------------------- /__tests__/standalone/6-option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/6-option.test.js -------------------------------------------------------------------------------- /__tests__/standalone/7-watcher.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/__tests__/standalone/7-watcher.test.js -------------------------------------------------------------------------------- /cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/cli.js -------------------------------------------------------------------------------- /export.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/export.js -------------------------------------------------------------------------------- /gulp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/gulp.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/package.json -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/server.js -------------------------------------------------------------------------------- /src/certs/cert.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/certs/cert.crt -------------------------------------------------------------------------------- /src/certs/cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/certs/cert.pem -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/index.js -------------------------------------------------------------------------------- /src/lib/app-watcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/app-watcher.js -------------------------------------------------------------------------------- /src/lib/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/app.js -------------------------------------------------------------------------------- /src/lib/debugger/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/debugger/client.js -------------------------------------------------------------------------------- /src/lib/debugger/client.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/debugger/client.tpl -------------------------------------------------------------------------------- /src/lib/debugger/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/debugger/index.js -------------------------------------------------------------------------------- /src/lib/debugger/reload.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/debugger/reload.tpl -------------------------------------------------------------------------------- /src/lib/injector/files-inject.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/injector/files-inject.js -------------------------------------------------------------------------------- /src/lib/injector/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/injector/index.js -------------------------------------------------------------------------------- /src/lib/injector/script-inject.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/injector/script-inject.js -------------------------------------------------------------------------------- /src/lib/open.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/open.js -------------------------------------------------------------------------------- /src/lib/options/enable-middleware-shorthand.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/options/enable-middleware-shorthand.js -------------------------------------------------------------------------------- /src/lib/options/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/options/index.js -------------------------------------------------------------------------------- /src/lib/server-reload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/server-reload.js -------------------------------------------------------------------------------- /src/lib/utils/helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/utils/helper.js -------------------------------------------------------------------------------- /src/lib/utils/log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/utils/log.js -------------------------------------------------------------------------------- /src/lib/utils/mock-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/utils/mock-server.js -------------------------------------------------------------------------------- /src/lib/utils/stream-watcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/utils/stream-watcher.js -------------------------------------------------------------------------------- /src/lib/utils/watcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/utils/watcher.js -------------------------------------------------------------------------------- /src/lib/webserver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/src/lib/webserver.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NewbranLTD/gulp-server-io/HEAD/yarn.lock --------------------------------------------------------------------------------