Code Monkey home page Code Monkey logo

i-viewer-vue-app-test's Introduction

v-test-packge

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

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.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

i-viewer-vue-app-test's People

Stargazers

Elyes Nasri avatar  avatar Frank Wang avatar hoangitk avatar Raphael Ueda avatar mlvrkhn avatar Paulo Ricardo avatar  avatar Busola Okeowo avatar A. Fauzi avatar  avatar Ilya avatar HunterPHP avatar Vinícius Oliveira Ueda avatar Ali Doğu avatar  avatar Olivier Monnier avatar M.A.ASHARAF ALI avatar Wattsie avatar Ken avatar

Watchers

Erik Hanchett avatar  avatar

i-viewer-vue-app-test's Issues

Doubt with lib mode compilation

when in the vite configuration in the build you do it with lib mode,
it generates the library of the component that you specify but it does not generate
the compilation of the entire app?? could compile everything and at the same time a
lib of only one component?

How include another plugin?

Hi, I have a question regarding the Vue3 and web components.

What you did is great, however, I have a question. How can I achieve to use a library like Oruga with Bulma?

Normally I do

import { createApp, defineCustomElement } from "vue";
import App from './App.ce.vue'
import Oruga from '@oruga-ui/oruga-next';
import '@oruga-ui/oruga-next/dist/oruga.css';
import { bulmaConfig } from '@oruga-ui/theme-bulma'
import "./assets/override.scss";

createApp(App)
  .use(Oruga, bulmaConfig)
  .mount('#app')

But with web component (lib build) how to add Oruga, bulmaConfig?

import { defineCustomElement } from "vue";
import App from "./App.ce.vue";

export const PortalAppBoilerplate = defineCustomElement(App)


console.log(PortalAppBoilerplate)


export function register( tagName = "portal-app-boilerplate") {
  customElements.define(tagName, PortalAppBoilerplate)
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.