HugoDF / vue-multiple-components-in-sfc

Examples of writing multiple components in a single .vue file

Home Page:https://codewithhugo.com/writing-multiple-vue-components-in-a-single-file/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing multiple components in a single Vue SFC file

Examples of writing multiple components in a single .vue file.

All 4 examples leverage vue-cli.

This repository leverages Yarn Workspaces.

Requirements:

  • Node 10+
  • Yarn 1+

To start working with the examples, run:

  • yarn, to install dependencies required to run all the projects

To run commands in every example package, you can use yarn workspaces <command> eg. yarn workspaces build.

To run commands in a single package, you can use yarn workspace <workspace_name> run server, eg. yarn workspace 01-render-functions run server

About

Examples of writing multiple components in a single .vue file

https://codewithhugo.com/writing-multiple-vue-components-in-a-single-file/

License:MIT License


Languages

Language:Vue 42.9%Language:HTML 41.8%Language:JavaScript 15.4%