Skip to content

Commit

Permalink
refactor: better typings, pnpm and generation bugs (#42)
Browse files Browse the repository at this point in the history
* refactor: better typings, pnpm and generation bugs

* ci: use PNPM

* chore: update playground

---------

Co-authored-by: Sébastien Chopin <seb@nuxt.com>
  • Loading branch information
farnabaz and atinux authored May 9, 2023
1 parent 183b2f6 commit a7221fa
Show file tree
Hide file tree
Showing 25 changed files with 10,275 additions and 10,577 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
ci:
Expand All @@ -19,9 +17,13 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: yarn
- run: yarn install
- run: yarn prepare
- run: yarn lint
- run: yarn build
# - run: yarn test
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 7
- run: pnpm install
- run: pnpm prepare
- run: pnpm lint
- run: pnpm build
- run: pnpm test
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
37 changes: 26 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,43 @@
"dev:docs": "nuxi dev docs",
"build:docs": "nuxi generate docs",
"lint": "eslint --ext .js,.ts,.vue .",
"test": "vitest",
"test": "vitest run",
"prepack": "nuxt-module-build",
"release": "release-it"
},
"dependencies": {
"@nuxt/kit": "^3.0.0",
"@octokit/graphql": "^5.0.1",
"@octokit/rest": "^19.0.4",
"@nuxt/kit": "^3.3.2",
"@octokit/graphql": "^5.0.5",
"@octokit/rest": "^19.0.7",
"defu": "^6.1.2",
"h3": "^1.6.2",
"remark-gfm": "^3.0.1",
"remark-github": "^11.2.4"
"remark-github": "^11.2.4",
"ufo": "^1.1.1"
},
"devDependencies": {
"@nuxt-themes/docus": "npm:@nuxt-themes/docus-edge@latest",
"@nuxt/content": "npm:@nuxt/content-edge@latest",
"@nuxt-themes/docus": "latest",
"@nuxt/content": "latest",
"@nuxt/module-builder": "latest",
"@nuxt/test-utils": "^3.0.0",
"@nuxt/test-utils": "^3.3.2",
"@nuxtjs/eslint-config-typescript": "latest",
"eslint": "latest",
"nuxt": "^3.0.0",
"release-it": "^15.4.2",
"nuxt": "^3.3.2",
"release-it": "^15.9.3",
"standard-version": "^9.5.0",
"vitest": "^0.23.4"
"vitest": "^0.29.7"
},
"packageManager": "pnpm@7.29.1",
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"vue": "^3.2.45"
},
"ignoreMissing": [
"webpack",
"vue"
]
}
},
"release-it": {
"hooks": {
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/commits.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
const file = ref('package.json')
const date = ref('2022-06-30')
</script>
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/contributors.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
const { owner, repo } = useRuntimeConfig().github
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
const { owner, repo } = useRuntimeConfig().github
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/last-release.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/readme.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions playground/pages/release.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
const tag = ref('v0.1.18')
</script>

Expand Down
4 changes: 2 additions & 2 deletions playground/pages/releases.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
const { owner, repo } = useRuntimeConfig().github
const qOwner = ref('nuxt-community')
const qRepo = ref('supabase-module')
const qOwner = ref('nuxt-modules')
const qRepo = ref('supabase')
</script>

<template>
Expand Down
Loading

0 comments on commit a7221fa

Please # to comment.