π¦
WordPress starter theme baseado no Sage 10
- SCSS
- ES6
- Laravel Mix para compilar assets e concatenating e minificar ficheiros
- Browsersync para browser testing sincronizado
- Blade como template engine
- Sage Directives Blade Directives para WordPress, ACF e utilidades
- Clean Up de vΓ‘rias features do WordPress
- Normalize CSS para reset dos estilos
- Foundation for Sites
- Locomotive Scroll para Smooth Scroll
- Highway JS para transição de pÑginas em PJAX
- GSAP para animaçáes em JS
- GSAP Bonus Plugins (Todos)
themes/your-theme-name/ # β Root of your Sage based theme
βββ app/ # β Theme PHP
β βββ Composers/ # β View composers
β βββ Providers/ # β Service providers
β βββ admin.php # β Theme customizer setup
β βββ filters.php # β Theme filters
β βββ helpers.php # β Helper functions
β βββ setup.php # β Theme setup
βββ config/ # β Config files
β βββ app.php # β Application configuration
β βββ assets.php # β Asset configuration
β βββ filesystems.php # β Filesystems configuration
β βββ view.php # β View configuration
βββ composer.json # β Autoloading for `app/` files
βββ composer.lock # β Composer lock file (never edit)
βββ dist/ # β Built theme assets (never edit)
βββ functions.php # β Composer autoloader, Acorn bootloader
βββ index.php # β Never manually edit
βββ node_modules/ # β Node.js packages (never edit)
βββ package.json # β Node.js dependencies and scripts
βββ resources/ # β Theme assets and templates
β βββ assets/ # β Front-end assets
β β βββ fonts/ # β Theme fonts
β β βββ images/ # β Theme images
β β βββ scripts/ # β Theme JS
β β βββ styles/ # β Theme stylesheets
β βββ views/ # β Theme templates
β βββ components/ # β Component templates
β βββ layouts/ # β Base templates
β βββ partials/ # β Partial templates
βββ screenshot.png # β Theme screenshot for WP admin
βββ storage/ # β Storage location for cache (never edit)
βββ style.css # β Theme meta information
βββ vendor/ # β Composer packages (never edit)
βββ webpack.mix.js # β Laravel Mix configuration
Editar app/setup.php
para habilitar ou desabilitar features do tema, como menus, tamanhos de thumbnail, etc.
- Correr
yarn
na pasta do tema para instalar dependΓͺncias - Atualizar
webpack.mix.js
com o URL de desenvolvimento local (ex: warehouse.test)
yarn start
β Compila assets quando sΓ£o feitas atualizaçáes nos ficheiros e comeΓ§a uma sessΓ£o do Browsersyncyarn build
β Compila e optimiza os ficheiros na pasta assetsyarn build:production
β Compila os assets para produção
- Sage 9 (a ser atualizado para a v10)