Skip to content

Commit

Permalink
Merge pull request #22 from wobsoriano/bump-nuxt-kit
Browse files Browse the repository at this point in the history
chore: Bump @nuxt/kit to 3.14.159 and other related dependencies
  • Loading branch information
wobsoriano authored Nov 11, 2024
2 parents ed375b8 + 3dce6ac commit ca2deba
Show file tree
Hide file tree
Showing 16 changed files with 6,928 additions and 7,625 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Preview

on: [push, pull_request]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Prepare tsconfig
run: pnpm dev:prepare

- name: Build
run: pnpm prepack

- name: Create a snapshot version
id: snapshot
run: pnpm dlx pkg-pr-new publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ dist
# Nuxt
.nuxt
.output
.data
.vercel_build_output
.build-*
.env
.netlify

# Env
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
20 changes: 20 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: [
'./playground',
],
},
})
.append(
// your custom flat config here...
)
27 changes: 16 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "0.3.1",
"license": "MIT",
"type": "module",
"homepage": "https://github.com/wobsoriano/nuxt3-socket.io#readme",
"repository": {
"type": "git",
"url": "https://github.com/wobsoriano/nuxt3-socket.io.git"
},
"bugs": "https://github.com/wobsoriano/nuxt3-socket.io/issues",
"exports": {
".": {
"types": "./dist/types.d.ts",
Expand All @@ -11,7 +17,7 @@
},
"./helpers": {
"types": "./dist/runtime/helpers.d.ts",
"import": "./dist/runtime/helpers.mjs"
"import": "./dist/runtime/helpers.js"
}
},
"main": "./dist/module.cjs",
Expand All @@ -30,20 +36,19 @@
"release": "bumpp && npm publish"
},
"dependencies": {
"@nuxt/kit": "^3.11.2",
"@nuxt/kit": "^3.14.159",
"fast-glob": "^3.3.2",
"pathe": "^1.1.2",
"requrl": "^3.0.2",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5"
"socket.io": "^4.8.1",
"socket.io-client": "^4.8.1"
},
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxt/eslint-config": "^0.3.1",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.11.2",
"@nuxt/devtools": "^1.6.0",
"@nuxt/eslint-config": "^0.6.1",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.14.159",
"bumpp": "^9.4.0",
"eslint": "^9.0.0",
"nuxt": "^3.11.2"
"eslint": "^9.14.0",
"nuxt": "^3.14.159"
}
}
7 changes: 3 additions & 4 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default defineNuxtConfig({
modules: ['../src/module'],
myModule: {
addPlugin: true
},
devtools: { enabled: false }
devtools: { enabled: false },

compatibilityDate: '2024-11-11',
})
11 changes: 10 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"private": true,
"name": "my-module-playground"
"name": "playground",
"type": "module",
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
"generate": "nuxi generate"
},
"dependencies": {
"nuxt": "^3.14.159"
}
}
5 changes: 3 additions & 2 deletions playground/server/api/hello.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export default eventHandler((event) => {
export default eventHandler(() => {
// @ts-expect-error: todo fix types
console.log(globalThis.__io)

return {
hello: 'world'
hello: 'world',
}
})
3 changes: 3 additions & 0 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json"
}
Loading

0 comments on commit ca2deba

Please sign in to comment.