0.14.4 • Published 3 months ago

vitrify v0.14.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Vitrify

Vite as your Full Stack development tool

  • Use a simple configuration file to configure and integrate required Vite plugins into your project.
  • Client-Side Rendering (CSR), Server-Side Rendering (SSR), Static Site Generation (SSG) and Fastify server build and development modes.
  • Run both your frontend- and backend code through Vite at development and build time.

Features

  • Uses Fastify for the development server and SSR production server.
  • Generates a Fastify plugin to serve your server-side rendered application.
  • A run command which injects context such as application paths into the script which you want to run.
  • A test command which runs a pre-configured Vitest instance.
  • An extra plugin layer which provides some extra context such as the SSR mode (client or server) and PWA mode. Used for UI frameworks which render differently based on these settings.

Commands

build

Usage:
  $ vitrify build

Options:
  -m, --mode [mode]            Build mode (default: csr)
  --base [base]                Base public path
  --outDir [outDir]            Output directory
  --appDir [appDir]            App directory
  --publicDir [publicDir]      Public directory
  --productName [productName]  Product name
  -h, --help                   Display this message

dev

Usage:
  $ vitrify dev

Options:
  -m, --mode [mode]        Development server mode (default: csr)
  --host [host]            Specify which IP addresses the server should listen on (default: 127.0.0.1)
  --appDir [appDir]        Application directory
  --publicDir [publicDir]  Public directory
  -h, --help               Display this message

test

Usage:
  $ vitrify test

Options:
  -h, --help  Display this message

run

Usage:
  $ vitrify run <file>

Options:
  -h, --help  Display this message

Structure

  graph TD;
    node/bin/cli.ts-->node/bin/build.ts;
    node/bin/cli.ts-->node/bin/dev.ts;
    node/bin/cli.ts-->node/bin/test.ts;
    node/bin/cli.ts-->node/bin/run.ts;
    node/bin/build.ts-->node/index.ts
    node/bin/dev.ts-->node/index.ts
    node/index.ts{Load baseConfig}-->vitrify.config.js{Load vitrify.config.js};
    subgraph baseconfig
    vitrify.config.js-->node/plugins{Load plugins};
    node/plugins-->merge{Merge vitrify.config.js with Vitrify configuration};
    end
    merge-- mode: fastify -->frameworkFastify{Load framework entrypoints from fastify/...};
    merge-- mode: csr/ssr/ssg -->framework{Load framework entrypoints from vite/...};
    frameworkFastify-->fastifyBuild{Build the application};
    frameworkFastify-->fastifyDev{Start Fastify dev server};
    fastifySetup{onSetup / onRendered}-->fastifyDev
    fastifySetup{onSetup / onRendered}-->fastifyBuild
    framework-->build{Build the application};
    build-- mode: ssg -->prerender{Run prerender.js}
    framework-->dev{Start Vite dev server};
    frameworkSetup{onBoot / onMounted}-->dev
    frameworkSetup{onBoot / onMounted}-->build
    node/bin/test.ts-->test{Run a pre-configured Vitest instance};
    node/bin/run.ts-->run{Inject context into script and run script};
0.14.2

3 months ago

0.14.3

3 months ago

0.14.4

3 months ago

0.14.1

3 months ago

0.13.1

6 months ago

0.13.2

6 months ago

0.14.0

5 months ago

0.13.0

7 months ago

0.12.2

8 months ago

0.11.8

1 year ago

0.11.9

1 year ago

0.11.5

1 year ago

0.11.6

1 year ago

0.11.7

1 year ago

0.12.0

12 months ago

0.12.1

12 months ago

0.11.10

1 year ago

0.11.0

1 year ago

0.11.1

1 year ago

0.11.2

1 year ago

0.11.3

1 year ago

0.11.4

1 year ago

0.10.5

2 years ago

0.10.6

2 years ago

0.10.1

2 years ago

0.10.2

2 years ago

0.10.3

2 years ago

0.10.4

2 years ago

0.10.0

2 years ago

0.5.10

2 years ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.6.10

2 years ago

0.6.12

2 years ago

0.6.11

2 years ago

0.6.18

2 years ago

0.6.17

2 years ago

0.6.14

2 years ago

0.6.13

2 years ago

0.6.16

2 years ago

0.6.15

2 years ago

0.9.0

2 years ago

0.7.2

2 years ago

0.5.4

2 years ago

0.7.1

2 years ago

0.5.3

2 years ago

0.9.2

2 years ago

0.5.6

2 years ago

0.9.1

2 years ago

0.5.5

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.9

2 years ago

0.6.3

2 years ago

0.8.0

2 years ago

0.6.2

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.4.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.3.0

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago