0.0.17 • Published 3 months ago

adex v0.0.17

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

adex

An easier way to build apps with Vite and Preact

About

adex is just a vite plugin that adds in the required functionality to be able to build server rendered preact apps.

Highlights

  • Unified routing for both backend and frontend
  • Tiny and Simple
  • Builds on existing tooling instead of adding yet another way to do things

Setup

As there are a few steps needed to get it running, it's not recommended to do this manually, instead use the existing template to get started

If you still wish to set it up manually.

Create a preact based vite app

npm create vite@latest -- -t preact

Add in the required deps

npm add -D adex

Modify config to use adex

// vite.config.js
import { defineConfig } from 'vite'
import preact from '@preact/preset-vite'
+ import { adex } from 'adex'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
+   adex(),
    preact()],
})

Remove the default preact files and add in basic structure for adex

rm -rf ./src/* index.html
mkdir -p src/pages src/api
touch src/global.css

And you are done.

Docs

TBD

  • Basic
  • Font
  • Islands

!NOTE

Refer to the playground in the source repo or the default template to understand how to write apps with adex

License

MIT

0.0.18-alpha.3

3 months ago

0.0.18-alpha.4

3 months ago

0.0.18-alpha.1

4 months ago

0.0.18-alpha.0

5 months ago

0.0.16

5 months ago

0.0.17

5 months ago

0.0.15

5 months ago

0.0.13

6 months ago

0.0.14

5 months ago

0.0.12

6 months ago

0.0.10

8 months ago

0.0.11

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.6-beta.2

11 months ago

0.0.6-beta.1

11 months ago

0.0.3

11 months ago

0.0.3-beta.0

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.2

1 year ago

0.0.2-beta.5

1 year ago

0.0.1

1 year ago

0.0.2-beta.3

1 year ago

0.0.2-beta.4

1 year ago

0.0.2-beta.0

1 year ago

0.0.2-beta.1

1 year ago

0.0.2-beta.2

1 year ago

0.0.1-beta.11

1 year ago

0.0.1-beta.7

1 year ago

0.0.1-beta.6

1 year ago

0.0.1-beta.9

1 year ago

0.0.1-beta.8

1 year ago

0.0.1-beta.10

1 year ago

0.0.1-beta.5

1 year ago

0.0.1-beta.3

1 year ago

0.0.1-beta.2

1 year ago

0.0.1-beta.4

1 year ago

0.0.1-beta.1

1 year ago

0.0.0

1 year ago