Skip to content

Commit 0c0688a

Browse files
committed
chore: deps update, appwrite sdk v15
1 parent 4059dc3 commit 0c0688a

File tree

12 files changed

+2352
-4556
lines changed

12 files changed

+2352
-4556
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,25 @@
1-
name: CI
1+
name: ci
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
8+
branches:
9+
- main
610

711
jobs:
8-
typecheck:
12+
ci:
913
runs-on: ubuntu-latest
10-
1114
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
15-
- name: Install Node.js
16-
uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- run: corepack enable
17+
- uses: actions/setup-node@v4
1718
with:
1819
node-version: 20
19-
20-
- uses: pnpm/action-setup@v2
21-
name: Install pnpm
22-
with:
23-
version: 8
24-
run_install: false
25-
26-
- name: Get pnpm store directory
27-
shell: bash
28-
run: |
29-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
33-
with:
34-
path: ${{ env.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
38-
39-
- name: Install dependencies
40-
run: pnpm install && pnpm dev:prepare
41-
42-
- name: Test
43-
run: pnpm typecheck
44-
45-
lint:
46-
runs-on: ubuntu-latest
47-
48-
steps:
49-
- name: Checkout
50-
uses: actions/checkout@v3
51-
52-
- name: Install Node.js
53-
uses: actions/setup-node@v3
54-
with:
55-
node-version: 20
56-
57-
- uses: pnpm/action-setup@v2
58-
name: Install pnpm
59-
with:
60-
version: 8
61-
run_install: false
62-
63-
- name: Get pnpm store directory
64-
shell: bash
65-
run: |
66-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
67-
68-
- uses: actions/cache@v3
69-
name: Setup pnpm cache
70-
with:
71-
path: ${{ env.STORE_PATH }}
72-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
73-
restore-keys: |
74-
${{ runner.os }}-pnpm-store-
75-
76-
- name: Install dependencies
77-
run: pnpm install && pnpm dev:prepare
78-
79-
- name: Lint
80-
run: pnpm lint
81-
82-
test:
83-
runs-on: ubuntu-latest
84-
85-
steps:
86-
- name: Checkout
87-
uses: actions/checkout@v3
88-
89-
- name: Install Node.js
90-
uses: actions/setup-node@v3
91-
with:
92-
node-version: 20
93-
94-
- uses: pnpm/action-setup@v2
95-
name: Install pnpm
96-
with:
97-
version: 8
98-
run_install: false
99-
100-
- name: Get pnpm store directory
101-
shell: bash
102-
run: |
103-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
104-
105-
- uses: actions/cache@v3
106-
name: Setup pnpm cache
107-
with:
108-
path: ${{ env.STORE_PATH }}
109-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
110-
restore-keys: |
111-
${{ runner.os }}-pnpm-store-
112-
113-
- name: Install dependencies
114-
run: pnpm install && pnpm dev:prepare
115-
116-
- name: Test
117-
run: pnpm test
20+
cache: "pnpm"
21+
- run: pnpm install && pnpm dev:prepare
22+
- run: pnpm lint
23+
- run: pnpm typecheck
24+
- run: pnpm prepack
25+
- run: pnpm test

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3-
"eslint.experimental.useFlatConfig": true,
3+
"eslint.useFlatConfig": true,
44
// Disable the default formatter, use eslint instead
55
"prettier.enable": false,
6-
}
6+
}

eslint.config.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ export default createConfigForNuxt({
1010
dirs: {
1111
src: ['./playground'],
1212
},
13+
}).append({
14+
rules: {
15+
'@typescript-eslint/no-empty-object-type': 'off',
16+
},
1317
})
14-
.append({
15-
ignores: [
16-
'dist',
17-
'node_modules',
18-
],
19-
})

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,34 @@
2626
"dist"
2727
],
2828
"scripts": {
29-
"prepack": "nuxt-module-build",
29+
"prepack": "nuxt-module-build build",
3030
"dev": "nuxi dev playground",
3131
"dev:build": "nuxi build playground",
32-
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
32+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
3333
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
3434
"lint": "eslint .",
3535
"test": "vitest run",
3636
"test:watch": "vitest watch",
3737
"typecheck": "tsc --noEmit"
3838
},
3939
"dependencies": {
40-
"@nuxt/kit": "^3.11.2",
41-
"appwrite": "^14.0.1"
40+
"@nuxt/kit": "^3.13.0",
41+
"appwrite": "^15.0.0"
4242
},
4343
"devDependencies": {
44-
"@nuxt/eslint": "^0.3.10",
44+
"@nuxt/eslint": "^0.5.3",
4545
"@nuxt/module-builder": "^0.8.3",
46-
"@nuxt/schema": "^3.11.2",
47-
"@nuxt/test-utils": "^3.12.1",
46+
"@nuxt/schema": "^3.13.0",
47+
"@nuxt/test-utils": "^3.14.1",
4848
"changelogen": "^0.5.5",
49-
"eslint": "^9.1.1",
50-
"nuxt": "^3.11.2",
51-
"release-it": "^17.2.1",
52-
"typescript": "~5.4.5",
53-
"vitest": "^1.5.3"
49+
"eslint": "^9.9.1",
50+
"nuxt": "^3.13.0",
51+
"release-it": "^17.6.0",
52+
"typescript": "~5.5.4",
53+
"vitest": "^2.0.5",
54+
"vue-tsc": "^2.0.29"
5455
},
56+
"packageManager": "[email protected]",
5557
"publishConfig": {
5658
"access": "public"
5759
}

playground/nuxt.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
export default defineNuxtConfig({
2+
devtools: { enabled: true },
23
modules: ['../src/module'],
34
appwrite: {
45
project: 'nuxt-playground',
56
},
6-
typescript: {
7-
shim: false,
8-
},
97
})

playground/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
22
"private": true,
3-
"name": "my-module-playground"
3+
"name": "nuxt-appwrite-playground",
4+
"scripts": {
5+
"dev": "nuxi dev",
6+
"build": "nuxi build",
7+
"generate": "nuxi generate"
8+
},
9+
"dependencies": {
10+
"nuxt": "^3.13.0"
11+
}
412
}

playground/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nuxt/tsconfig.json"
3+
}

0 commit comments

Comments
 (0)