vno logo

- Logo Design by Brendan McCabe

vno

The first build tool for compiling and bundling Vue components in a Deno runtime environment

license issues last commit Repo stars

Features

  • Parser
  • Compiler
  • Bundler
  • Adapter
  • Server Side Renderer (coming soon)

Overview

  • Vue is an approachable javascript framework with an exciting ecosystem with remarkable versatility. Deno is a runtime environment intent on improving the shortcomings of node.js. We wanted to be able to leverage the vue framework in a deno runtime environment, but could not find a tool that made this possible. So we decided to make it ourselves.

How to use vno

  • You can use the vno Command Line Interface to quickly create a new vue project in a deno runtime
  • OR you can use the vno build method to compile an existing vue file structure into a deno-legible .js file

Create a new project with vno CLI

  • Create a directory for your project
  • CD into the aforementioned directory
  • Copy the following code into your terminal
deno install --allow-read --allow-write --allow-run --allow-net --unstable -f -n vno https://deno.land/x/vno/dist/mod.ts
  • Copy the export path your terminal returns and paste it into your terminal install gif

  • Use vno’s CLI to create a new project:

vno create [project name]

vno create

  • OR If you’d rather not install:
deno run --allow-read --allow-write --allow-run --allow-net --unstable https://deno.land/x/vno/dist/mod.ts create [project name]
  • note: If you would like to avoid writing out all the permissions, you can also use the ‘-A’ tag
  • Like so:
deno run --A --unstable https://deno.land/x/vno/dist/mod.ts create [project name]

Using the build method

  • To invoke the build method and dynamically create bundled .js and .css files for your application type the following into the terminal:
vno build

OR

deno run --allow-read --allow-write --allow-run --allow-net --unstable https://deno.land/x/vno/dist/mod.ts build

vno build

It is important to know that as of now, scoped styling is not supported

The vno dev server

  • Running the dev server dynamically creates a new build folder and runs the application on a cloud hosted server
  • Invoke the dev server like so:
vno run dev

OR

deno run --allow-read --allow-write --allow-run --allow-net --unstable https://deno.land/x/vno/dist/mod.ts run dev

vno run dev