Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,31 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
node: [22]

steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: checkout
uses: actions/checkout@master
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
cache: pnpm

- name: cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/pnpm-lock.yaml')) }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Prepare
run: pnpm run dev:prepare

- name: Lint
run: pnpm run lint

- name: Test
run: pnpm run test

- name: Build
run: pnpm run prepack
8 changes: 4 additions & 4 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export default defineNuxtConfig({
preference: 'dark',
},

cloudinary: {
cloudName: 'nuxt-cloudinary',
},

ui: {
icons: ['heroicons', 'simple-icons', 'ph'],
},
Expand All @@ -37,6 +33,10 @@ export default defineNuxtConfig({
},
},

cloudinary: {
cloudName: 'nuxt-cloudinary',
},

// devtools: {
// enabled: true,
// componentInspector: {
Expand Down
45 changes: 24 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@nuxtjs/cloudinary",
"version": "4.0.0",
"version": "4.1.0",
"description": "Cloudinary module for Nuxt",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/types.d.ts",
"types": "./dist/types.d.mts",
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
"default": "./dist/module.mjs"
}
},
"repository": "nuxt-modules/cloudinary",
Expand All @@ -20,8 +20,8 @@
"name": "Maya Shavin <dpnminh@gmail.com>"
}
],
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"main": "./dist/module.mjs",
"types": "./dist/types.d.mts",
"files": [
"dist"
],
Expand All @@ -36,38 +36,41 @@
"plugins"
],
"scripts": {
"prepack": "nuxt-module-build",
"prepack": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"docs": "cd docs && pnpm run dev",
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
"release": "yarn run lint && yarn run test && yarn run prepack && changelogen --release --output=CHANGELOG.md && yarn publish && git push --follow-tags",
"release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release --output=CHANGELOG.md && pnpm publish && git push --follow-tags",
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch",
"stackblitz": "cd .stackblitz && pnpm install && pnpm run dev"
},
"dependencies": {
"@cloudinary-util/url-loader": "^6.0.0",
"@cloudinary-util/types": "2.0.0-beta.1",
"@nuxt/kit": "^3.11.2",
"@unpic/vue": "^0.0.48",
"@cloudinary-util/url-loader": "^6.3.1",
"@cloudinary-util/types": "2.0.0-beta.3",
"@cloudinary-util/util": "^4.3.0",
"@nuxt/kit": "^3.11.2 || ^4.0.0",
"@unhead/vue": "^3.4.1",
"@unpic/vue": "^1.0.0",
"defu": "^6.1.4"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.3.10",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.11.2",
"@nuxt/test-utils": "^3.12.0",
"@nuxt/eslint-config": "^1.0.0",
"@nuxt/module-builder": "^1.0.3",
"@nuxt/schema": "^4.0.0",
"@nuxt/test-utils": "^4.3.2",
"changelogen": "^0.5.5",
"eslint": "^9.0.0",
"nuxt": "^3.11.2",
"typescript": "^5.4.5",
"vitest": "^1.4.0"
"eslint": "^10.4.0",
"nuxt": "^4.0.0",
"typescript": "^5.9.3",
"vitest": "^4.0.0",
"vue-tsc": "^3.3.11"
},
"stackblitz": {
"installDependencies": false,
"startCommand": "yarn stackblitz"
"startCommand": "pnpm stackblitz"
},
"packageManager": "pnpm@8.11.0+sha512.9df87c16c98db27b4e051d787e67f2207ec47e809ccb07bf7b5ec4acdcd1613355839a38d0b900144923d6a7057700b74d2a0ccb1558beb241647a1206a9a7ab"
"packageManager": "pnpm@9.15.9"
}
Loading
Loading