Skip to content

Commit 86b6aca

Browse files
authored
Merge pull request #12 from rtCamp/develop
2 parents 5ef0d67 + 725009c commit 86b6aca

81 files changed

Lines changed: 5671 additions & 3175 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release Plugin
2+
3+
on:
4+
push:
5+
branches:
6+
- production
7+
8+
jobs:
9+
build-and-release:
10+
name: Build and Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # Required to create releases and tags
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.2'
23+
tools: composer
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
30+
- name: Get Version
31+
id: get_version
32+
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
33+
34+
- name: Build Plugin ZIP
35+
run: make zip
36+
37+
- name: Create Release and Upload Asset
38+
uses: softprops/action-gh-release@v1
39+
with:
40+
tag_name: v${{ steps.get_version.outputs.VERSION }}
41+
name: v${{ steps.get_version.outputs.VERSION }}
42+
generate_release_notes: true
43+
files: core-carousel.zip
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ phpstan.neon
2828
# IDE files
2929
.vscode/
3030
.idea/
31-
.github/
3231
*.iml
3332
*.sublime-project
3433
*.sublime-workspace
@@ -37,3 +36,4 @@ phpstan.neon
3736
# Build
3837
build/
3938
tsconfig.tsbuildinfo
39+
core-carousel.zip

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint:js

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# 1.0.0 (2026-02-03)
2+
3+
4+
### Bug Fixes
5+
6+
* Gap issue fixed for the carousel items ([5277b89](https://github.com/rtCamp/carousel-system-interactivity-api/commit/5277b89545c973f13c22f6d1d7cf21e19958305f))
7+
8+
9+
### Features
10+
11+
* Add example carousels for hero, logo showcase, and testimonials ([d2b6e4a](https://github.com/rtCamp/carousel-system-interactivity-api/commit/d2b6e4ae0f915f6edfb6ddf637c4a88878375e4b))
12+
* Add slide to scroll option ([f2adab3](https://github.com/rtCamp/carousel-system-interactivity-api/commit/f2adab310015347400a1c2e6437b3a68566a6c9d))
13+
* Enhance vertical axis support and adjust slide dimensions in carousel styles ([2ec3e40](https://github.com/rtCamp/carousel-system-interactivity-api/commit/2ec3e40e8e34655d3417b25e16feaee41451c604))
14+
* Refactor context handling and define global window interface for carousel context ([5aab80e](https://github.com/rtCamp/carousel-system-interactivity-api/commit/5aab80edd103ee66d8e212359eb0f8d2ad01acb7))
15+
16+
17+

DEVELOPMENT.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Development Reference
2+
3+
This project uses **npm**, **Composer**, and **Make** for development and build workflows.
4+
5+
## Quick Start
6+
7+
```bash
8+
# Fast setup for development (installs dependencies & builds)
9+
make dev
10+
11+
# Start development server (watches for changes)
12+
npm start
13+
```
14+
15+
## Available Commands
16+
17+
### Build & Watch
18+
19+
| Command | Description |
20+
| :--- | :--- |
21+
| `npm start` | Starts the build in watch mode. |
22+
| `make dev` | **Development Build.** Fast, incremental install (`npm install`) + build. |
23+
| `make build` | **Production Build.** Clean install (`npm ci`) + build. Slow but safe. |
24+
25+
### Quality Control (Linting & Testing)
26+
27+
| Command | Description |
28+
| :--- | :--- |
29+
| `npm run lint:js` | Lints JavaScript and TypeScript files. |
30+
| `npm run lint:js:fix` | Fixes JS/TS linting errors. |
31+
| `npm run lint:css` | Lints SCSS files. |
32+
| `npm run lint:css:fix` | Fixes SCSS linting errors. |
33+
| `composer run lint` | Lints PHP files (PHPCS). |
34+
| `composer run format` | Fixes PHP linting errors (PHPCBF). |
35+
| `composer run phpstan` | Runs static analysis with PHPStan. |
36+
37+
### Distribution
38+
39+
| Command | Description |
40+
| :--- | :--- |
41+
| `make zip` | **Production Build.** Runs a clean install (`npm ci`) and creates the ZIP. |
42+
| `make quick-zip` | **Development Package.** Uses existing `node_modules` (incremental) for faster zipping. |
43+
| `make clean` | Removes build artifacts (`build/`, `vendor/`, `node_modules/`, `.zip`). |
44+
45+
### Versioning & Changelog
46+
47+
| Command | Description |
48+
| :--- | :--- |
49+
| `npm run changelog` | Generates/Updates `CHANGELOG.md` based on commits. |
50+
| `npm run version` | Internal hook used by `npm version` to update changelog and stage it. |
51+
| `npm version [major|minor|patch]` | Bumps version in `package.json`, updates `CHANGELOG.md`, and creates a git tag. |
52+
53+
## Local GitHub Actions (act)
54+
55+
To test the release workflow locally, we use [act](https://github.com/nektos/act).
56+
57+
### Prerequisites
58+
- [Docker](https://www.docker.com/products/docker-desktop/) installed and running.
59+
- `act` installed: `brew install act` (macOS).
60+
61+
### Usage
62+
```bash
63+
# Run the release workflow locally
64+
make act
65+
# OR
66+
npm run test:actions
67+
```
68+
69+
## Directory Structure
70+
71+
- `src/` - Source code for blocks (React/TypeScript/SCSS).
72+
- `inc/` - PHP classes and traits (PSR-4 `Core_Carousel`).
73+
- `build/` - Compiled assets (generated by `npm run build`).
74+
- `docs/` - Documentation files.
75+
- `examples/` - Block patterns and examples.

0 commit comments

Comments
 (0)