├── .gitignore ├── LICENSE ├── README.md ├── bin └── index.js ├── package.json ├── src ├── client │ ├── client.ts │ └── tsconfig.json └── node │ ├── init │ ├── index.ts │ └── template │ │ ├── App.svelte │ │ ├── index.html │ │ └── package.json │ ├── preprocessors │ ├── index.ts │ ├── transformers │ │ ├── coffeescript.ts │ │ ├── less.ts │ │ ├── sass.ts │ │ ├── stylus.ts │ │ └── typescript.ts │ ├── types.ts │ └── utils │ │ ├── importAny.ts │ │ ├── installHelper.ts │ │ ├── loadLib.ts │ │ ├── or.ts │ │ └── resolvedFrom.ts │ ├── serve │ ├── hmrPlugin.ts │ ├── htmlPlugin.ts │ ├── index.ts │ ├── modulePlugin.ts │ ├── servePlugin.ts │ ├── sveltePlugin.ts │ └── wss.ts │ ├── tsconfig.json │ └── utils │ └── execute.ts └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/README.md -------------------------------------------------------------------------------- /bin/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/bin/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/package.json -------------------------------------------------------------------------------- /src/client/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/client/client.ts -------------------------------------------------------------------------------- /src/client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/client/tsconfig.json -------------------------------------------------------------------------------- /src/node/init/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/init/index.ts -------------------------------------------------------------------------------- /src/node/init/template/App.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/init/template/App.svelte -------------------------------------------------------------------------------- /src/node/init/template/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/init/template/index.html -------------------------------------------------------------------------------- /src/node/init/template/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/init/template/package.json -------------------------------------------------------------------------------- /src/node/preprocessors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/index.ts -------------------------------------------------------------------------------- /src/node/preprocessors/transformers/coffeescript.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/transformers/coffeescript.ts -------------------------------------------------------------------------------- /src/node/preprocessors/transformers/less.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/transformers/less.ts -------------------------------------------------------------------------------- /src/node/preprocessors/transformers/sass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/transformers/sass.ts -------------------------------------------------------------------------------- /src/node/preprocessors/transformers/stylus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/transformers/stylus.ts -------------------------------------------------------------------------------- /src/node/preprocessors/transformers/typescript.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/transformers/typescript.ts -------------------------------------------------------------------------------- /src/node/preprocessors/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/types.ts -------------------------------------------------------------------------------- /src/node/preprocessors/utils/importAny.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/utils/importAny.ts -------------------------------------------------------------------------------- /src/node/preprocessors/utils/installHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/utils/installHelper.ts -------------------------------------------------------------------------------- /src/node/preprocessors/utils/loadLib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/utils/loadLib.ts -------------------------------------------------------------------------------- /src/node/preprocessors/utils/or.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/utils/or.ts -------------------------------------------------------------------------------- /src/node/preprocessors/utils/resolvedFrom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/preprocessors/utils/resolvedFrom.ts -------------------------------------------------------------------------------- /src/node/serve/hmrPlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/hmrPlugin.ts -------------------------------------------------------------------------------- /src/node/serve/htmlPlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/htmlPlugin.ts -------------------------------------------------------------------------------- /src/node/serve/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/index.ts -------------------------------------------------------------------------------- /src/node/serve/modulePlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/modulePlugin.ts -------------------------------------------------------------------------------- /src/node/serve/servePlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/servePlugin.ts -------------------------------------------------------------------------------- /src/node/serve/sveltePlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/sveltePlugin.ts -------------------------------------------------------------------------------- /src/node/serve/wss.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/serve/wss.ts -------------------------------------------------------------------------------- /src/node/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/tsconfig.json -------------------------------------------------------------------------------- /src/node/utils/execute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/src/node/utils/execute.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanhauhau/svelte-serve/HEAD/yarn.lock --------------------------------------------------------------------------------