Giter Site home page Giter Site logo

proof-of-concepts's Introduction

parallel-vue-versions-js-only

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Customize configuration

See Configuration Reference.

Vue 3 Support

  • You can write Vue 3 code under the src/vue3 directory
  • Vue 3 components can be exported as custom elements and used in the existing Vue 2 app. They rules are:
    • The component must be in a file ended with .ce.vue
    • In the Vue 2 app, import a corresponding .register file to register the corresponding custom element.
      • That is, if you have a HellWorld.ce.vue file, you should write import '@/vue3/HelloWorld.register' in the Vue 2 app.
      • Importing anything other than the .register files from the @/vue3 directory is forbidden.
      • Note that you must import using the aliased path name, that is, @/vue3/HelloWorld.register instead of ../vue3/HelloWorld.register. This is for webpack to correctly externalize the Vue 3 code.
    • The custom element name is vue3- + the kebab-case of the file name + -ce. That is, HelloWorld.ce.vue will be registered as the <vue3-hello-world-ce /> custom element.
    • If the file is in a nested directory, the custom element name will be the kebab-case of the file path. That is, in @/vue3/components/HelloWorld.ce.vue will be registered as the <vue3-components-hello-world-ce /> custom element.

TODOs

proof-of-concepts's People

Contributors

sodatea avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.