Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7e72fb5
Remove old files and update .gitignore to include new patterns for lo…
piyushryn Dec 29, 2025
acb70a5
Initialize Angular workspace with ImageKit SDK, including components …
piyushryn Dec 29, 2025
4e213d3
Refactor upload method in ImageKitService to use a more specific type…
piyushryn Dec 29, 2025
ee70093
Add Apache License and update README for Angular SDK
piyushryn Dec 31, 2025
98d0bcb
Add passthrough attribute support in IKImage and IKVideo components
piyushryn Dec 31, 2025
79447a7
Enhance AppComponent to include UploadTestComponent and manage active…
piyushryn Dec 31, 2025
c22fb71
Update package configuration and TypeScript settings for improved bui…
piyushryn Dec 31, 2025
6c7abe0
Update package.json and README for build process and configuration de…
piyushryn Jan 1, 2026
a0325be
Refactor IKImage and IKVideo components to utilize utility functions …
piyushryn Jan 1, 2026
5ec2bb4
Remove features section from README.md for clarity and to streamline …
piyushryn Jan 2, 2026
c46befc
Update README.md to change license from MIT to Apache 2.0
piyushryn Jan 2, 2026
88d30ae
chore: multiple changes
piyushryn Jan 6, 2026
ea79e34
chore: add CHANGELOG and CodeQL workflow
piyushryn Jan 6, 2026
8f2eb47
chore: update testing setup and component configurations
piyushryn Jan 6, 2026
09134c2
chore: update TypeScript imports and Playwright configuration
piyushryn Jan 6, 2026
40a8811
fix: correct transformation string regex in E2E tests for image URL v…
piyushryn Jan 6, 2026
c051198
chore: update Playwright testing setup in CI workflow
piyushryn Jan 6, 2026
efd08ce
chore: enhance CI workflow with SDK build verification and update Pla…
piyushryn Jan 6, 2026
7803a2a
chore: update TypeScript configuration and refine Playwright testing …
piyushryn Jan 7, 2026
3203bec
chore: update CI workflows for SDK build and testing
piyushryn Jan 7, 2026
d459f55
chore: remove deprecated Node CI workflow and update publish workflow…
piyushryn Jan 7, 2026
8f4608c
fix: update E2E test to validate image transformation query parameter
piyushryn Jan 7, 2026
c6fd5fd
refactor: remove redundant URL construction validation tests from E2E…
piyushryn Jan 7, 2026
e08125e
Add imagekit angular to tsconfig
SwarnimDoegar Jan 7, 2026
7bf36c4
Merge branch 'piyush/sdk-overhaul' of https://github.com/piyushryn/im…
SwarnimDoegar Jan 7, 2026
fe00eb4
Add new test-app with SSR support and tests for ssr and csr
SwarnimDoegar Jan 7, 2026
49f354e
Use node 20 in GH workflows
SwarnimDoegar Jan 7, 2026
51dfb8c
Fix playwright run
SwarnimDoegar Jan 7, 2026
4bb73a2
Fix playwright snapshot creation template
SwarnimDoegar Jan 7, 2026
6d1331d
Run playwright browser install in pubslish job
SwarnimDoegar Jan 7, 2026
a3947c0
Update README and package configurations for Angular 14 compatibility
piyushryn Jan 7, 2026
9ec8593
feat: add Transformations type to public API and update IKVideoProps …
piyushryn Jan 7, 2026
895f859
refactor: simplify Transformations type definition in index.ts
piyushryn Jan 7, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
category: "/language:${{ matrix.language }}"
81 changes: 81 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This is a test workflow for testing the tests
name: E2E Tests

on:
push:
branches: ['*']
pull_request:
branches: ['*']

jobs:
playwright-run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: ['Desktop Chrome']

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: npm ci

- name: Build SDK and pack
run: npm run pack

- name: Verify SDK build
run: |
if [ ! -d "dist/imagekit-angular" ]; then
echo "Error: SDK build directory not found"
exit 1
fi
echo "✓ SDK built successfully"

- name: Install test app dependencies
working-directory: ./test-app
run: npm ci
- name: Install SDK
working-directory: ./test-app
run: npm install ../dist/imagekit-angular/imagekit-angular-*.tgz --no-save
# Note: Playwright browsers are installed via postinstall script

- name: Install browsers for Playwright
working-directory: ./test-app
run: npx playwright install --with-deps

- name: Run Playwright tests
working-directory: ./test-app
run: npm run test:e2e

- name: Upload test results on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-results-${{ matrix.project }}
path: test-app/test-results/
if-no-files-found: ignore

- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.project }}
path: test-app/playwright-report/
retention-days: 30
if-no-files-found: ignore

- name: Generate test report
if: always()
run: |
echo "## Test Results - ${{ matrix.project }}" >> $GITHUB_STEP_SUMMARY
echo "Project: ${{ matrix.project }}" >> $GITHUB_STEP_SUMMARY


88 changes: 0 additions & 88 deletions .github/workflows/nodejs.yml

This file was deleted.

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

This file was deleted.

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

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build and Test
run: |
npm install
npm run build
npm pack
cd test-app
npm install
npm install ../dist/imagekit-angular/imagekit-angular-*.tgz --no-save
npx playwright install --with-deps
npm run test:e2e
env:
CI: true


publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: NPM Publish
run: |
npm install
npm run build
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
# print the NPM user name for validation
npm whoami
VERSION=$(node -p "require('./projects/imagekit-angular/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 --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
CI: true
51 changes: 38 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,67 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# dependencies
node_modules
# Node
/node_modules
/test-app/node_modules

npm-debug.log
yarn-error.log

# IDEs and editors
/.idea
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
# Miscellaneous
/.angular/cache
/test-app/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
# System files
.DS_Store
Thumbs.db

# Playwright
/test-app/test-results/
/test-app/playwright-report/
/test-app/playwright/.cache/

# Logs
*.log
logs/

# Build artifacts
*.tsbuildinfo
*.map

# Test coverage
coverage/
.nyc_output/

# Environment files
.env
.env.local
.env.*.local
Loading