-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from jaredmcateer/support-global-components
- Loading branch information
Showing
9 changed files
with
119 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@jaredmcateer/ngvue3": minor | ||
--- | ||
|
||
Adds support for global components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "*/*" | ||
- "**" | ||
- "!main" | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup pnpm 💫 | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7.0.0 | ||
|
||
- name: Use Node.js 16.xa 💻 | ||
uses: actions/setup-node@v3 | ||
with: | ||
version: 16 | ||
cache: pnpm | ||
|
||
- name: Install Dependencies 🗂️ | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Test 🔬️ | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/ngVue3/lib/angular/__tests__/__fixtures__/GlobalComponentConsumer.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
const name = ref("Jane"); | ||
</script> | ||
|
||
<template> | ||
<my-global-component :name="name"></my-global-component> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
packages/ngVue3/lib/angular/__tests__/__fixtures__/MyGlobalComponent.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ name: string }>(); | ||
</script> | ||
|
||
<template> | ||
<div class="my-global-component">Hello {{ name }}!</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters