hl-ui-renderer
TypeScript icon, indicating that this package has built-in type declarations

0.2.68 • Public • Published

Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Bind dependency to a project

Use this commands to view the changes in your local repository

In the proyect to bind

  1. npm link hl-ui-renderer
  2. Go to vite.config and add
    optimizeDeps: {
       exclude: ["hl-ui-renderer"],
    }
    

In this repo

  npm link
  npm run build:watch

Back to Normal

   cd ~/projects/my-app
   npm unlink hl-ui-renderer
   npm i hl-ui-renderer

You can clean up the global link, though its presence won’t interfere with my-app.

   cd ~/projects/some-dep
   npm uninstall  # Delete global symlink

/hl-ui-renderer/

    Package Sidebar

    Install

    npm i hl-ui-renderer

    Weekly Downloads

    8

    Version

    0.2.68

    License

    none

    Unpacked Size

    194 kB

    Total Files

    6

    Last publish

    Collaborators

    • hldevs