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

@e1011/core-vite-executor

v1.0.1

Published

core-vite-executor for Core Vite App

Downloads

1

Readme

@e1011/core-vite-executor

Core-vite-executor is utility lib for running CoreVite locally.

Prerequisites

  • nodejs (>=18 <19)
  • npm
  • yarn (yarn exec) or pnpm (pnpm exec) can be used technically.

Run CoreVite as Node binary

In order to be able to test micro UI (based on vite-app-example), the user can trigger core-vite installation and build without the need to manually git clone, install, and run.

Pass the path to routes.config.json as argument and core-vite will run the micro UIs defined.

Example of minimal routes config:

{
  "routes": {
    "basePath": "/app",
    "auth": {
      "vite-app-example": {
        "name": "core-vite-app-example",
        "icon": "applicationsIcon",
        "tooltipText": "core-vite-app-example",
        "apps": [
          {
            "cssFiles": "[\"http://localhost:2001/bundle.css\"]",
            "jsFiles": "[\"http://localhost:2001/bundle.js\",\"http://localhost:2001/bundle.umd.js\"]",
            "mountId": "ui-core-vite-app-example",
            "config": "{\"basePath\":\"/app/core-vite-app-example\"}",
            "loader": true,
            "data-sample-attribute": "some serialized data for core-vite-app-example"
          }
        ]
      }
    },
    "unauth": {}
  }
}
npx @e1011/core-vite-executor path/to/routes.config.minimal.json

path/to/routes.config.minimal.json is optinal can be only directory, and core-vite-executor will try to find the routes config there. It also defaults to ./.

to make sure the latest version of the core-vite-executor is installed in the local npm repository, add @latest:

npx @e1011/core-vite-executor@latest path/to/

Every subsequent run (if no new version is available when using @latest) will run the already built core-vite. To rebuild it add 2nd (or 3rd) param rebuild.

npx @e1011/core-vite-executor ./routes.config.minimal.json rebuild