salvatori / alma
Wordpress theme based on Alma using Vite
Installs: 324
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 3
Language:Blade
Type:wordpress-theme
Requires
- php: ^8.2
- generoi/sage-woocommerce: ^1.1.2
- illuminate/encryption: ^10.46
- illuminate/queue: ^10.46
- illuminate/support: ^10.33
- illuminate/testing: ^10.46
- livewire/livewire: ^3.4
- log1x/acf-composer: ^3.0.20
- log1x/pagi: ^1.0
- log1x/poet: ^2.0
- log1x/sage-directives: ^1.1
- log1x/sage-html-forms: ^1.0
- log1x/sage-svg: ^1.1
- log1x/wp-smtp: ^1.0
- roots/acorn: ^4.0.0
- stoutlogic/acf-builder: ^1.12
Requires (Dev)
- laravel/pint: ^1.13
- spatie/laravel-ignition: ^2.4
- squizlabs/php_codesniffer: 3.7.1
This package is auto-updated.
Last update: 2024-11-04 02:18:52 UTC
README
Features
- Solar (Sugary implementation of: Locomotive with Lenis, Gsap, Barba, Mouse Follower, Bulma, and some other nice stuff)
- Laravel Routing
- Laravel Blade
- Laravel Components, Composers and Controllers
- Sage Directives
- Sage Wooocommerce
- Alpine
Tech
Theme installation
- This framework is shipped with Acorn v3. Read the docs, please (https://roots.io/acorn/docs/)
- Install Alma using Composer from your WordPress themes directory (replace
your-theme-name
below with the name of your theme):
# @ app/themes/ or wp-content/themes/
$ composer create-project salvatori/alma your-theme-name
To install the latest development version of Alma, add dev-lightning
to the end of the command:
$ composer create-project salvatori/alma your-theme-name dev-lightning
Theme structure
themes/alma/ # → Root of your Alma based theme ├── app/ # → Theme PHP │ ├── Providers/ # → Service providers │ ├── View/ # → View models │ ├── filters.php # → Theme filters │ ├── helpers.php # → Global helpers │ ├── medias.php # → Medias helper │ └── setup.php # → Theme setup ├── composer.json # → Autoloading for `app/` files ├── routes/web.php # → Place non WP routes here. ├── public/ # → Built theme assets (never edit) ├── functions.php # → Theme bootloader ├── index.php # → Theme template wrapper ├── node_modules/ # → Node.js packages (never edit) ├── package.json # → Node.js dependencies and scripts ├── resources/ # → Theme assets and templates │ ├── fonts/ # → Theme fonts │ ├── images/ # → Theme images │ ├── scripts/ # → Theme javascript │ ├── styles/ # → Theme stylesheets │ └── views/ # → Theme templates │ ├── components/ # → Component templates │ ├── forms/ # → Form templates │ ├── layouts/ # → Base templates │ ├── partials/ # → Partial templates └── woocommerce/ # → Woocommerce templates ├── screenshot.png # → Theme screenshot for WP admin ├── style.css # → Theme meta information ├── vendor/ # → Composer packages (never edit) └── vite.config.js # → Vite configuration
Theme development
- Run
yarn
from the theme directory to install dependencies - Update
vite.config.js
for bundler fine tuning
Build commands
yarn dev
— Start dev server and hot module replacementyarn build
— Compile assetsyarn lint
— Lint stylesheets & javascriptsyarn lint:css
— Lint stylesheetsyarn lint:js
— Lint javascripts
Hot Module Replacement
Project Side
Add the following variables in your project .env
# Hot module reload enabled? This should be turned off in production. HMR_ENABLED=true # Endpoint where the bundler serve your assets HMR_ENTRYPOINT=http://localhost:5173 # Add an APP_KEY for LiveWire APP_KEY= #some 32 characters randomized string
Maintainance Mode
Alma comes with a basic and simple maintainance mode implemented. If you want to enable it, just use this .env variable:
WP_MAINTAINANCE_MODE="true"