Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hugodf/vue-multiple-components-in-sfc

Examples of writing multiple components in a single .vue file
https://github.com/hugodf/vue-multiple-components-in-sfc

jsx monorepo render-function sfc single-file-component vue vue-single-file-component vuejs yarn-workspaces

Last synced: about 2 months ago
JSON representation

Examples of writing multiple components in a single .vue file

Awesome Lists containing this project

README

        

# 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](https://yarnpkg.com/lang/en/docs/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 ` eg. `yarn workspaces build`.

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