Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/anilu-221/gsap-classes/archive/refs/heads/main.zipGSAP Classes Custom Plugin
Development Notes
LARAVEL MIX
The theme utilizes Laravel Mix to compile SASS and JS files.
SASS AND JS FILES
To modify the JS or SASS files make sure that you have Node.js installed and then run npm install from the wp-content/plugin/gsap-classes folder.
Afterwards you can modify the following files src/modules src/sass src/app.js and src/app.scss.
Run npx mix after every modification to update the dist. folder.
You can also run npx mix watch while you're working on those files, everytime you update one of these files src/modules src/sass src/app.js src/app.scss, they will be automatically compiled.
Please do not modify files under the dist folder as they are generated automatically everytime npx mix is run.
# Scripts
Scripts and styles are registered/enqueued on the `inc\class-asc-scripts.php` file.
Deploying Chanages
With each live push make sure that you bump up the theme's version in gsap-classes.php, both on the comment of the file and on GSC_PLUGIN_VERSION. This will speed up cache purging.