From 4968883ef0e2c56e96e4a7a7e25fceb95f73fcff Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 14 Sep 2022 05:43:51 +0800 Subject: [PATCH] docs: logo for vite-node --- packages/vite-node/README.md | 23 ++++++++++++++++------- packages/vite-node/assets/vite-node.svg | 4 ++++ 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 packages/vite-node/assets/vite-node.svg diff --git a/packages/vite-node/README.md b/packages/vite-node/README.md index 4aa78c923901..19efc57a8126 100644 --- a/packages/vite-node/README.md +++ b/packages/vite-node/README.md @@ -1,15 +1,24 @@ -# vite-node - -[![NPM version](https://img.shields.io/npm/v/vite-node?color=a1b858&label=)](https://www.npmjs.com/package/vite-node) +

+ +

-Vite as Node runtime. The engine powers [Vitest](https://github.com/vitest-dev/vitest) and [Nuxt 3 Dev SSR](https://github.com/nuxt/framework). +

+vite-node +

+

+Vite as Node runtime.
The engine powers Vitest and Nuxt 3 Dev SSR. +

+

+ +

## Features -- Out-of-box ESM & TypeScript support (possible for more with plugins) -- Top-level `await` -- Vite plugins, resolve, aliasing +- Out-of-box ESM & TypeScript support (more with plugins) +- Vite's plugins, resolve, aliasing - Respect `vite.config.ts` +- Hot module replacement +- Top-level `await` - Shims for `__dirname` and `__filename` in ESM - Access to native node modules like `fs`, `path`, etc. diff --git a/packages/vite-node/assets/vite-node.svg b/packages/vite-node/assets/vite-node.svg new file mode 100644 index 000000000000..e9130ddf4a7c --- /dev/null +++ b/packages/vite-node/assets/vite-node.svg @@ -0,0 +1,4 @@ + + + +