Skip to content

V4 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 18, 2025
Merged

V4 #124

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
997ee88
initial commit
manu4543 May 15, 2025
483b80b
Add ImageKit integration and update dependencies
manu4543 May 15, 2025
e70af93
Refactor imgData computation to build normalSrc conditionally and sim…
manu4543 May 15, 2025
e03d133
Add Video component and update package structure for improved functio…
manu4543 May 16, 2025
6c91101
test app for vue ts
manu4543 May 16, 2025
cd050ff
ignore user provided srcset in Image component
manu4543 May 16, 2025
cd8fed6
Update .gitignore, add Playwright tests, and modify Test.vue for impr…
manu4543 May 16, 2025
3f5b59b
just import important stuff
manu4543 May 16, 2025
af7ede7
Add Nuxt.js application structure with CI/CD workflows, Playwright te…
manu4543 May 17, 2025
0ab57ad
Update snapshot for basic.spec.ts to reflect changes in image and vid…
manu4543 May 17, 2025
dd54305
try CI
manu4543 May 17, 2025
a26512e
Refactor build script in package.json and remove unused temp.sh script
manu4543 May 17, 2025
92b4b8b
Change demo-app dependency installation from npm ci to npm install
manu4543 May 17, 2025
06f15db
Fix demo-app dependency installation to use the correct .tgz filename
manu4543 May 17, 2025
d7a5224
fix ci
manu4543 May 17, 2025
b4c332c
Add CI workflow for Node.js and publish package to npm
manu4543 May 17, 2025
ac36fee
Enhance CI workflow and add README with SDK details and installation …
manu4543 May 17, 2025
7b27368
Bump version to 4.0.0-beta.2 in package.json and package-lock.json
manu4543 May 17, 2025
3c227c7
Fix formatting and add missing output configuration in Vite build setup
manu4543 May 17, 2025
7597b41
add express backend for manual upload testing
manu4543 May 18, 2025
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
19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Node CI

on:
push:
pull_request:

jobs:
# ─────────────────────────────────────────────────────
# 1. Build the library and create the .tgz once
# ─────────────────────────────────────────────────────
pack:
runs-on: ubuntu-latest

steps:
- name: ⬇️ Check out code
uses: actions/checkout@v4

- name: 🟢 Set up Node 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

- name: 📦 Install deps, build, pack
run: |
npm ci
npm run build
npm pack # ⇠ generates imagekit-vue-*.tgz in $GITHUB_WORKSPACE
env:
CI: true

- name: 📤 Upload package artifact
uses: actions/upload-artifact@v4
with:
name: imagekit-package
path: imagekit-vue-*.tgz # uploads exactly one .tgz

# ─────────────────────────────────────────────────────
# 2. Matrix: run demo-app tests in parallel
# ─────────────────────────────────────────────────────
test:
needs: pack # wait for the tarball
runs-on: ubuntu-latest

strategy:
matrix:
app: [vue-ts, nuxt] # sub-folders in test-apps

steps:
- name: ⬇️ Check out code
uses: actions/checkout@v4

- name: 🟢 Set up Node 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

- name: 📥 Download package artifact
uses: actions/download-artifact@v4
with:
name: imagekit-package # puts .tgz into $GITHUB_WORKSPACE by default

- name: 🚀 Run E2E tests
run: |
# ── figure out the real .tgz filename (there’s only one) ───────────────
PKG_TGZ="$(ls "$GITHUB_WORKSPACE"/imagekit-vue-*.tgz)"
echo "Installing $PKG_TGZ"

# ── now set up the demo app ───────────────────────────────────────────
cd test-apps/${{ matrix.app }}
npm install
npm install "$PKG_TGZ" --no-save
npx playwright install --with-deps
npm run test:e2e
env:
CI: true
92 changes: 0 additions & 92 deletions .github/workflows/nodejs.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/npmpublish.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Package to npmjs

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: ⬇️ Check out code
uses: actions/checkout@v4

- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Build and Publish
run: |
npm ci
npm run build
# print the NPM user name for validation
npm whoami
VERSION=$(node -p "require('./package.json').version" )
# Only publish stable versions to the latest tag
if [[ "$VERSION" =~ ^[^-]+$ ]]; then
NPM_TAG="latest"
else
NPM_TAG="beta"
fi
echo "Publishing $VERSION with $NPM_TAG tag."
npm publish --tag $NPM_TAG --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
CI: true
39 changes: 34 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.vscode/settings.json
.vscode/launch.json
.env
/dist
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo


*.tgz

.env
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
25 changes: 0 additions & 25 deletions DEVELOPMENT.md

This file was deleted.

Loading