/soundit

Primary LanguageBladeMIT LicenseMIT

πŸ“¦

Warehouse

WordPress starter theme baseado no Sage 10

Documentação Sage 9

Features

  • 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

Libs incluΓ­das

Requisitos

Estrutura do tema

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

Setup

Editar app/setup.php para habilitar ou desabilitar features do tema, como menus, tamanhos de thumbnail, etc.

Desenvolvimento do tema

  • Correr yarn na pasta do tema para instalar dependΓͺncias
  • Atualizar webpack.mix.js com o URL de desenvolvimento local (ex: warehouse.test)

Build commands

  • yarn start β€” Compila assets quando sΓ£o feitas atualizaçáes nos ficheiros e comeΓ§a uma sessΓ£o do Browsersync
  • yarn build β€” Compila e optimiza os ficheiros na pasta assets
  • yarn build:production β€” Compila os assets para produção

Documentação Sage

  • Sage 9 (a ser atualizado para a v10)