npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vueez

v0.2.2

Published

A featherweight and minimalistic Vue app builder and server with SSR

Downloads

22

Readme

Vueez

Vueez is a minimalistic tool for building and serving Vue applications. It is designed with simplicity in mind, running on vanilla Node.js and maintaining a very low dependency profile. In fact, it has only three dependencies: Vue, TypeScript, and esbuild. Vueez itself is intended to be a development dependency and will build a self-sufficient package. An app built with Vueez does not even require Vue in production.

Features

Vueez supports:

  • Vue apps written in TypeScript
  • Single File Components (SFCs)
  • Server-Side Rendering (SSR)

In development mode, Vueez can watch, rebuild, and reload server components, though it does not support hot reloading client-side components and likely never will.

Why use Vueez? Why is it better than established tools like Vite or Nuxt?

It's not. Vite and Nuxt are better in almost every aspect, especially in terms of completeness and reliability. If you're satisfied with them, there's no reason to switch to Vueez.

Vueez fills a small niche for religious zero-dependency folks, who want to have full control over their apps and appreciate lightning fast build times. If you are somewhat embarassed by heavy scaffolded projects, would rather spend extra time coding than troubleshooting third-party tools that don’t work as expected, then Vueez might be worth a look.

Installation

You can install Vueez using npm:

npm install --save-dev vueez

Building a Vue App

To build your first Vue application, create a build.mjs script in the root of your project with the following content:

import { build } from 'vueez';

build({
	devMode: process.env.NODE_ENV === 'development',
	clientOptions: {
		entryPoints: ['src/client/index.ts'],
		outfile: 'build/client/client.js'
	}
});

Then, run the script with node build.mjs, and your client app will be built every time you chage the srouce files.

Vueez does not have a configuration file or a command-line tool. These are the kinds of additional functionalities that simply don't fit the minimalistic concept of Vueez.

Build options

The build options should be self-explanatory, but you it is worth mentioning whatr devMode means.

In development mode:

  • the output bundle will not be minified
  • the build will include will include Vue devtools, options API and hydration details for debugging
  • the build script will not exit, it will watch for file changes and rebuild as the code changes

Building with specifig tsconfig settings

If you want to build with specific tsconfig settings, you can ioptioanlly specify the tsconfig file path in the build options:

clientOptions: {
	entryPoints: ['src/client/index.ts'],
	outfile: 'build/client/client.js',
	tsconfig: 'tsconfig.client.json'
}

This comes handy, if you want to have different settings for server and client builds (we will cover server bundles later). For client builds, you probably want to work with the esm version of Vue which was created for bundlers such as esbuild. Create a tsconfig.client.json file in the project root with the following content:

{
	"extends": "./tsconfig.json",
	"compilerOptions": {
		"paths": {
			"vue": ["../../node_modules/vue/dist/vue.esm-bundler.js"]
		}
	}
}