1.2.2 • Published 4 years ago

@andersnormal/fluffy v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

:dragon_face: Fluffy

Build Status Taylor Swift Volkswagen TypeScript MIT license

Fluffy is a server side renderer middleware for Vue.js, which is intended to be used with Nginx to proxy requests.

Getting Started

requires a node version >= 9.11.2 and an npm version >= 5.x.x Fluffy uses Koa as middleware Fluffy provides a help command to display all possible arguments

:scream_cat: vue-preboot is using Fluffy for development and delivery. Check it out.

# Installs Fluffy to your Vue
npm i @andersnormal/fluffy

# Start fluffy
./node_modules/.bin/fluffy -port 3000 --dev --webpack config/configs --bundle public/vue-ssr-server-bundle.json --manifest public/vue-ssr-client-manifest.json --template public/index.html

Arguments

most command line arguments have a reflection in environment variables, which allows it to be easily tested and developed in many environments

help

Displays all the available arguments

--socket (string) Default: /tmp/fluffy.sock

The socket to listen on for rendering requests.

--dev (boolean)

Enable the koa-webpack middleware for development.

--webpack (string)

Path to the Webpack config for development. This should expose an object with

{
  ssrConfig: YOUR_CONFIG,
  devConfig: YOUR_CONFIG
}

--port (number)

The port to listen on for rendering requests.

--bundle (string)

Path to the server bundle.

--manifest (string)

Path to the client manifest

--template (string)

Path to the render template.

--mode (string)

The Unix socket file system mode.

--version

Displays the current version of :dragon_face: Fluffy

Development

all commands can be seen via npm run help

# Clone the repository
git clone https://github.com/andersnormal/fluffy

# Start the local dev server
docker-compose up

Have fun!

License

MIT

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.0.1-21

4 years ago

1.0.1-20

4 years ago

1.0.1-19

4 years ago

1.0.1-18

4 years ago

1.0.1-17

4 years ago

1.0.1-16

4 years ago

1.0.1-15

4 years ago

1.0.1-14

4 years ago

1.0.1-13

4 years ago

1.0.1-12

4 years ago

1.0.1-11

4 years ago

1.0.1-10

4 years ago

1.0.1-8

4 years ago

1.0.1-7

4 years ago

1.0.1-5

4 years ago

1.0.1-4

4 years ago

1.0.1-3

4 years ago

1.0.1-2

4 years ago

1.0.1-1

4 years ago

1.0.1-0

4 years ago

1.0.0-alpha.0

4 years ago