This repository contains the complete source code and frontend modules for the free version of Gatey WordPress plugin. The plugin provides a modular authentication and administration interface for WordPress-based systems.
- AI plugin manifest: https://wpsuite.io/.well-known/ai-plugin.json
- OpenAPI spec: https://wpsuite.io/.well-known/openapi.yaml
gatey-core/
: Shared JavaScript modules (e.g. authentication logic)gatey-main/
: Base JavaScript (Gatey.cognito namespace) and CSS features, loaded on every pagegatey-admin/
: Logic for the WordPress admin interfacegatey-blocks/
: Authenticator screens and Gutenberg blocksdist/
folders: Contain compiled and minified frontend output- Plugin PHP code and metadata (e.g.
composer.json
,readme.txt
) are located in the project root
- Node.js (>= 16.x)
- Yarn or NPM
- PHP >= 8.1
- Composer
- Git
git clone https://github.com/smartcloudsol/gatey.git
cd gatey
Each frontend project (gatey-core
, gatey-main
, gatey-admin
, gatey-blocks
) requires its own dependency installation:
cd gatey-core
yarn install
cd ../gatey-main
yarn install
cd ../gatey-admin
yarn install
cd ../gatey-blocks
yarn install
(Use npm install
instead of yarn
if you prefer NPM.)
Start by building the core module:
cd gatey-core
yarn run build
To ensure the other modules can import shared logic from gatey-core
, link it locally:
# Inside gatey-core
npm link
# Inside each of gatey-main, gatey-admin, gatey-blocks
npm link @smart-cloud/gatey-core
You can now build the remaining frontend projects in any order:
cd gatey-main
yarn run build-wp dist
cd ../gatey-admin
yarn run build-wp dist
cd ../gatey-blocks
yarn run build-wp dist
From the root directory, run:
composer install --no-dev --no-scripts --optimize-autoloader --classmap-authoritative
From the root directory, run:
./clean.sh
- During development, rebuild JS projects after changes (
yarn run build
or watch mode if supported). - Ensure
gatey-core
is re-built and re-linked if modified. - PHP changes are loaded automatically by WordPress, no recompilation needed.
- You may use tools like
wp-env
or a local WordPress install for testing.
Once all components have been successfully built, archive the project into a deployable WordPress plugin ZIP:
git archive --format zip -o gatey.zip HEAD
This uses rules defined in the .gitattributes
file to include only required dist
content and production PHP code.
- Node.js / Yarn or NPM: For building frontend assets
- Composer: For PHP dependency management
- PHP >= 8.1
- WordPress: Target environment
MIT License
If you encounter issues or want to contribute, feel free to open a pull request or an issue.