10degrees/10degrees-base
最新稳定版本:v1.3.1
Composer 安装命令:
composer require 10degrees/10degrees-base
包简介
10 Degrees base WordPress theme
关键字:
README 文档
README
10 Degrees base WordPress theme
The 10 Degrees base WordPress theme is intended as a quick-start for developers and requires configuration before using. It uses a number of concepts from Laravel, and aims to make development more standardised and accessible. Where possible, PSR-2 style guidelines are mandated with a custom ruleset.
- CSS: SASS preprocessor for CSS
- JavaScript: ES6 ready
- PHP: Namespaces and autoloader with many asbtractions and helper functions
- PHP: base.php wrapper, originally implemented by Sage theme
- WP CLI block quickstart command
Requirements
- WordPress >= 5.6
- PHP >= 7.0
- Composer
- Node
Dependencies are managed through Composer and Node. Please ensure both are installed.
Installation
Via Composer
- Navigate to themes folder
- Run
composer create-project 10degrees/10degrees-base [name-of-project]changing the name of the project - The script will install the theme and composer dependencies
- The script will search/replace for @textdomain and @theme placeholders. The
@themedomainwill be "name-of-project" and the@themename will be "Name Of Project" - The script installs npm dependencies
Theme Setup
From the theme root folder, run:
composer install- this will already have run if you have added
10degrees/10degrees-baseas part of a site-wide composer-based install. For 10 Degrees developers, this is already included as part of our10degrees-alphamaster install.
- this will already have run if you have added
npm install
Placeholders
Find and replace @textdomain and @theme placeholders in order to set the theme's text domain and name as required.
Compiling assets
Assets are edited in src and compiled to dist. Files are given a cache-busting version when compiled for production only. Use npm run watch and npm run dev when compiling for development. Use npm run production when compiling for production.
Browser support
All modern browsers.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-05