Skip to content

Instantly share code, notes, and snippets.

View lloydjatkinson's full-sized avatar
🌧️
Chilling

Lloyd Atkinson lloydjatkinson

🌧️
Chilling
View GitHub Profile
<template>
<ul>
<li v-for="(breadcrumb, index) in breadcrumbs" :key="index">
<Breadcrumb :name="breadcrumb.name" :url="breadcrumb.url" />
</li>
</ul>
</template>
<script>
import { defineComponent } from 'vue';
<template>
<a :href="url">{{ name }}</a>
</template>
<script>
import { defineComponent } from 'vue';
export default defineComponent({
name: 'App',
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/base',
'plugin:vue/essential',
'plugin:vue/strongly-recommended',
'plugin:vue/recommended',
/* eslint-disable quote-props */
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/base',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
/* eslint-disable quote-props */
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/base',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-recommended',
@lloydjatkinson ➜ /workspaces/astro-integration-demo/packages/astro-integration-demo-components (master ✗) $ pnpm run test
> @lloydjatkinson/astro-integration-demo-components@0.1.0 test /workspaces/astro-integration-demo/packages/astro-integration-demo-components
> mocha --parallel --timeout 15000
error Transform failed with 1 error:
/workspaces/astro-integration-demo/node_modules/.pnpm/astro-component-tester@0.4.0_astro@1.0.0-beta.12/node_modules/astro-component-tester/.test/test�mS�z/src/pages/index.astro#sourceMappingURL:3:165: ERROR: Syntax error "\x08"
File:
/workspaces/astro-integration-demo/node_modules/.pnpm/astro-component-tester@0.4.0_astro@1.0.0-beta.12/node_modules/astro-component-tester/.test/test�mS�z/src/pages/index.astro#sourceMappingURL
@lloydjatkinson ➜ /workspaces/astro-example-integration (master ✗) $ pnpm -r install
Scope: all 3 workspace projects
Progress: resolved 91, reused 90, downloaded 0, added 0, done
 ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies
packages/astro-example-integration-components
└─┬ astro-component-tester
└── ✕ missing peer astro@>=1.0.0-beta.0
Peer dependencies that should be installed:
astro@>=1.0.0-beta.0
@lloydjatkinson ➜ /workspaces/astro-example-integration/packages/astro-example-integration-components (master ✗) $ pnpm run test
> @lloydjatkinson/astro-example-integration-components@0.0.1 test /workspaces/astro-example-integration/packages/astro-example-integration-components
> mocha --parallel --timeout 15000
1:53:51 PM [vite] Error when evaluating SSR module /@fs/workspaces/astro-example-integration/packages/astro-example-integration-components/src/Component.astro:
Error: Cannot find module 'astro/internal' imported from '/workspaces/astro-example-integration/packages/astro-example-integration-components/src/Component.astro'
at viteResolve (/workspaces/astro-example-integration/node_modules/.pnpm/vite@2.9.5/node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:58548:25)
at nodeImport (/workspaces/astro-example-integration/node_modules/.pnpm/vite@2.9.5/node_modules/vite/dist/node/chunks/dep-27bc1ab8.js:58583:15)
name: PR Closed on Development Feature Branch
on:
pull_request:
types: [closed]
branches-ignore:
- master
jobs:
delete-infrastructure:
@lloydjatkinson
lloydjatkinson / Loading.vue
Last active June 30, 2021 10:39
A Vue component that conditionally renders slots depending on the combination of "loading" and "failed" props.
<template>
<div>
<slot
v-if="showLoadingState"
name="loading">
<div>
Loading...
</div>
</slot>