regionhalland / region-halland-theme-intra
Region Hallands WP intranät tema
v1.11.2
2021-03-23 20:00 UTC
Requires
- php: >=7.1
- composer/installers: ~1.0
- guzzlehttp/guzzle: ~6.0
- illuminate/support: 5.6.*
- regionhalland/region-halland-plugin-acf-add-theme-subpage: 1.5.1
- regionhalland/region-halland-plugin-acf-background-color: 1.6.0
- regionhalland/region-halland-plugin-acf-cookie-notice: 1.7.3
- regionhalland/region-halland-plugin-acf-gutenberg-block-button: 1.0.3
- regionhalland/region-halland-plugin-acf-gutenberg-block-card: 1.3.0
- regionhalland/region-halland-plugin-acf-gutenberg-block-key-value: 1.1.0
- regionhalland/region-halland-plugin-acf-main-post-settings-intra: 1.1.0
- regionhalland/region-halland-plugin-acf-options-page-site-message: 1.4.0
- regionhalland/region-halland-plugin-acf-page-core-model: 1.0.0
- regionhalland/region-halland-plugin-acf-page-ingress: 1.6.1
- regionhalland/region-halland-plugin-acf-page-link-lists-repeater: 1.6.0
- regionhalland/region-halland-plugin-acf-page-links-blurbs: 1.8.3
- regionhalland/region-halland-plugin-acf-page-personer-intra: 1.0.0
- regionhalland/region-halland-plugin-category-pages: 1.2.0
- regionhalland/region-halland-plugin-current-category: 1.3.0
- regionhalland/region-halland-plugin-current-category-and-child-categories: 1.0.0
- regionhalland/region-halland-plugin-current-page-and-child-pages: 1.2.0
- regionhalland/region-halland-plugin-f5-check-database-and-status: 1.0.0
- regionhalland/region-halland-plugin-find-on-page: 2.7.0
- regionhalland/region-halland-plugin-gutenberg-allow-block: 1.5.0
- regionhalland/region-halland-plugin-last-visited-page: 1.3.1
- regionhalland/region-halland-plugin-mobile-detect: 1.1.0
- regionhalland/region-halland-plugin-multi-breadcrumbs: 1.4.0
- regionhalland/region-halland-plugin-page-children: 1.6.0
- regionhalland/region-halland-plugin-page-lix-calculator: 1.0.0
- regionhalland/region-halland-plugin-page-lix-calculator-all-pages: 1.0.0
- regionhalland/region-halland-plugin-parent-category: 1.1.0
- regionhalland/region-halland-plugin-parent-category-page: 1.2.0
- regionhalland/region-halland-plugin-parent-page: 1.3.0
- regionhalland/region-halland-plugin-prepare-the-content: 1.8.0
- regionhalland/region-halland-plugin-show-categories-as-taxonomy: 1.2.0
- regionhalland/region-halland-plugin-single-page-information: 1.2.1
- regionhalland/region-halland-plugin-tree-all-levels-pages: 1.3.0
- regionhalland/region-halland-plugin-tree-first-level: 1.6.0
- regionhalland/region-halland-plugin-tree-first-level-category: 1.0.0
- regionhalland/region-halland-plugin-use-taxonomy-category-on-page: 1.2.0
- regionhalland/region-halland-plugin-wp-comment-page-advanced: 1.2.0
- regionhalland/region-halland-plugin-wp-disable-full-screen: 1.0.0
- regionhalland/region-halland-plugin-wp-remove-dashboard-meta: 1.1.0
- roots/sage-lib: ~9.0.9
- soberwp/controller: ~2.1.0
Requires (Dev)
- roots/sage-installer: ~1.4
- squizlabs/php_codesniffer: ^2.8.0
README
该主题基于 Sage 10 alpha,进行了修改以适应我们的需求。
推荐
>注意! 在开始使用主题之前,请务必阅读 Sage 文档。
- 保持 原始主题结构,以便我们在下一步升级到最新版本的 Sage 时更加方便。
- 使用 Laravel Mix,因为它已经包含了许多 内置功能。
配置
- 使用文件
/resource/assets/config-local.json.sample
创建config-local.json
,以满足您本地开发环境的需求。 - 确保字体路径正确 -
/resource/assets/styles/config/variables.scss
。
系统要求
- WordPress >= 5.4
- PHP >= 7.2.5(需启用
php-mbstring
) - Composer
- Node.js 版本 >= 12.0.0 (推荐使用 LTS 版本以保持开发过程中的稳定性和性能)
- Yarn 版本 >= 1.22.4
Rh 安装
- Tailwind CSS
- @regionhalland/styleguide
- laravel-mix-polyfill
- laravel-mix-purgecss v5.0.0
- axios
- stylelint-config-standard
该主题需要在以下浏览器上良好运行
- 桌面
- Google Chrome
- Safari
- MS Edge Chromium
- MS Edge
- IE11
- (Firefox,Opera)
- 移动
- Safari
- Google Chrome
- (三星)
命令
命令 | 描述 |
---|---|
composer install -vv | 安装必要的 Composer 包 |
yarn | 安装必要的 NPM 包 |
yarn build | 编译测试版本 |
yarn build:production | 编译生产版本 |
yarn start | 启动本地开发环境 |
yarn dev | 在启动本地开发环境之前,请删除 /dist 文件夹 |
检查清单
- [x] Tailwind CSS
- [x] RH styleguide
- [x] IE11 的 JavaScript Polyfill
- [x]
/resources/assets
中的配置文件- [x] 主题配置文件 (config.json)
- [x] 本地开发环境配置文件 (config-local.json)
- [x] 示例配置文件 (config-local.json.sample)
- [x] 在启动本地开发环境之前删除
/dist
文件夹 - [x] 当 SCSS 文件发生变化时进行 CSS 注入
- [x] 通过编译合并 Tailwind 配置文件