承接 sitecrafting/groot 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sitecrafting/groot

Composer 安装命令:

composer require sitecrafting/groot

包简介

The official SiteCrafting WordPress starter theme

README 文档

README

The official SiteCrafting WordPress starter theme.

Build Status

Migrating from the old, closed-source Groot

For client projects built on top of Groot, there are a few new ways of doing things using more consistent, reliable tooling that comes bundled with the Lando environment. Note that running lando yarn isn't necessary in normal circumstances: the new Lando environment installs everything for you on lando start.

Task New command Notes
Install dependencies lando yarn Lando does this automatically
Add a dependency lando yarn add lib-xyz
Watch LESS/JS lando webpack --watch
Recompile LESS/JS once lando webpack

Asset Paths in LESS files

Webpack handles image paths differently. The simplest way to refer to theme files is to use the absolute path from the webroot.

At build time, webpack will update the @theme-path variable in base/variables.less based on your theme's directory name:

@theme-path: '/wp-content/themes/<theme-dir-name>/';

This will enable you to use the @theme-path variable like this:

* { background-image: url(~'@{theme-path}img/icons/my-icon.svg'); }

Development

To start hacking on the Groot starter theme itself, run:

git clone git@github.com:sitecrafting/groot.git && cd groot
lando start

This will prompt you for site info admin credentials to set up. Then it does some setup/cleanup. After this, you should have a fully functional WordPress site running Groot!

NOTE: For now, we don't import the SiteCrafting WP starter database when spinning up Groot locally. This can be imported manually, if desired. Note that this database expected ACF Pro to be in place, which is also not installed automatically for local development. ACF Pro will need to be installed manually if you require it.

SITKA Support

  • Template content is required to be wrapped with an element with the class of sitka-search-content-container in order to crawl with sitka insights
  • Feedback collector partial and starter custom styles have been provided. Include this partial at locations where the feedback collector should appear
  • check with the PM/Team for any additional requirements - sitka insights plugin, scripts, ect

Run commands from the root directory

For compiling LESS/JS assets within Groot itself, you should be able to run commands within the root directory. For example:

cd /path/to/groot
lando webpack --watch

Building a new release

Start by updating the Groot release number in the style.less header comment. This is not strictly necessary, but can make things easier to troubleshoot:

/*!
 * Theme Name: Groot
 * ...
 * Copyright 2020 SiteCrafting, Inc.
 * Based on Groot release: vX.X.X     // <-- UPDATE THIS NUMBER
 */

Make sure you commit this change before creating the actual release. Otherwise your release download will not include this update.

Groot includes a script for building itself and creating a release. To create a tag and corresponding release called vX.Y.Z:

scripts/build-release.sh vX.Y.Z

This will create a .tar.gz and a .zip archive which you can upload to a new release on GitHub.

If you have hub installed, it will also prompt you to optionally create a release directly!

sitecrafting/groot 适用场景与选型建议

sitecrafting/groot 是一款 基于 Less 开发的 Composer 扩展包,目前已累计 3.7k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 03 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 sitecrafting/groot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sitecrafting/groot 我们能提供哪些服务?
定制开发 / 二次开发

基于 sitecrafting/groot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 12
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 5
  • Forks: 2
  • 开发语言: Less

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-17