Skip to content

Commit

Permalink
chore: deps update, appwrite sdk v15
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrdtr committed Aug 27, 2024
1 parent 4059dc3 commit 0c0688a
Show file tree
Hide file tree
Showing 12 changed files with 2,352 additions and 4,556 deletions.
122 changes: 15 additions & 107 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,117 +1,25 @@
name: CI
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
typecheck:
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install && pnpm dev:prepare

- name: Test
run: pnpm typecheck

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install && pnpm dev:prepare

- name: Lint
run: pnpm lint

test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install && pnpm dev:prepare

- name: Test
run: pnpm test
cache: "pnpm"
- run: pnpm install && pnpm dev:prepare
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm prepack
- run: pnpm test
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,
// Disable the default formatter, use eslint instead
"prettier.enable": false,
}
}
10 changes: 4 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ export default createConfigForNuxt({
dirs: {
src: ['./playground'],
},
}).append({
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
},
})
.append({
ignores: [
'dist',
'node_modules',
],
})
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,34 @@
"dist"
],
"scripts": {
"prepack": "nuxt-module-build",
"prepack": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@nuxt/kit": "^3.11.2",
"appwrite": "^14.0.1"
"@nuxt/kit": "^3.13.0",
"appwrite": "^15.0.0"
},
"devDependencies": {
"@nuxt/eslint": "^0.3.10",
"@nuxt/eslint": "^0.5.3",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.11.2",
"@nuxt/test-utils": "^3.12.1",
"@nuxt/schema": "^3.13.0",
"@nuxt/test-utils": "^3.14.1",
"changelogen": "^0.5.5",
"eslint": "^9.1.1",
"nuxt": "^3.11.2",
"release-it": "^17.2.1",
"typescript": "~5.4.5",
"vitest": "^1.5.3"
"eslint": "^9.9.1",
"nuxt": "^3.13.0",
"release-it": "^17.6.0",
"typescript": "~5.5.4",
"vitest": "^2.0.5",
"vue-tsc": "^2.0.29"
},
"packageManager": "pnpm@9.6.0",
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 1 addition & 3 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['../src/module'],
appwrite: {
project: 'nuxt-playground',
},
typescript: {
shim: false,
},
})
10 changes: 9 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"private": true,
"name": "my-module-playground"
"name": "nuxt-appwrite-playground",
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
"generate": "nuxi generate"
},
"dependencies": {
"nuxt": "^3.13.0"
}
}
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 0c0688a

Please sign in to comment.