cit / wp-sage-101
基于现代开发工作流程的 WordPress 入门主题
1.0.3
2020-03-23 10:28 UTC
Requires
- php: >=7.1
- composer/installers: ~1.0
- illuminate/support: 5.6.*
- roots/sage-lib: ~9.0.9
- roots/sage-woocommerce: ^1.0
- soberwp/controller: ~2.1.0
Requires (Dev)
- roots/sage-installer: ~1.6
- squizlabs/php_codesniffer: ^2.8.0
- dev-master
- 1.0.3
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/jquery-3.5.0
This package is auto-updated.
Last update: 2024-09-05 19:11:20 UTC
README
WP Sage 101 是由 Conscience Information Technologies 开发的入门主题,基于 Roots 提供的入门主题框架。
开发者指南
特性
- Sass 用于样式表
- 现代 JavaScript
- Webpack 用于编译资源、优化图像以及合并和压缩文件
- Browsersync 用于同步浏览器测试
- Blade 作为模板引擎
- Controller 用于将数据传递给 Blade 模板
- CSS 框架(可选):Bootstrap 4、Bulma、Foundation、Tachyons、Tailwind
要求
在继续之前,请确保已安装所有依赖项
主题安装
使用 Composer 从您的 WordPress 主题目录安装 Sage(以下将 your-theme-name
替换为您主题的名称)
$ composer create-project cit/wp-sage-101 theme-name/
$ cd theme-name/
$ yarn
$ yarn build
在主题安装过程中,您将有机会更新 style.css
主题头部、选择 CSS 框架和配置 Browsersync。
文件结构
themes/your-theme-name/ # → Root of your Sage based theme ├── app/ # → Theme PHP │ ├── Controllers/ # → Controller files │ ├── admin.php # → Theme customizer setup │ ├── filters.php # → Theme filters │ ├── helpers.php # → Helper functions │ └── setup.php # → Theme setup ├── composer.json # → Autoloading for `app/` files ├── composer.lock # → Composer lock file (never edit) ├── dist/ # → Built theme assets (never edit) ├── node_modules/ # → Node.js packages (never edit) ├── package.json # → Node.js dependencies and scripts ├── resources/ # → Theme assets and templates │ ├── assets/ # → Front-end assets │ │ ├── config.json # → Settings for compiled assets │ │ ├── build/ # → Webpack and ESLint config │ │ ├── fonts/ # → Theme fonts │ │ ├── images/ # → Theme images │ │ ├── scripts/ # → Theme JS │ │ └── styles/ # → Theme stylesheets │ ├── functions.php # → Composer autoloader, theme includes │ ├── index.php # → Never manually edit │ ├── screenshot.png # → Theme screenshot for WP admin │ ├── style.css # → Theme meta information │ └── views/ # → Theme templates │ ├── layouts/ # → Base templates │ └── partials/ # → Partial templates └── vendor/ # → Composer packages (never edit)
WP Sage 101 和 Conscience Information Technologies
Conscience Information Technologies 相信 12 Factor 方法论对于网络开发。
因此,为了符合此方法论,Conscience 正在为 Conscience Information Technologies 提供的 WordPress 服务 创建自己的工具链。《WP Sage 101》是 Conscience Information Technologies 的工具之一。请参见下面的图片
因此,“WP Sage 101” 基于由 Roots 提供的入门主题。默认情况下,该主题几乎没有样式。因此,以这个入门主题作为框架,Conscience 提出了“WP Sage 101”,它具有一些基本的样式和功能。