slogsdon/simplify
Composer 安装命令:
composer require slogsdon/simplify
包简介
Simplify is a lean, content-first theme based the Jekyll theme Lanyon (http://getpoole.com/lanyon/) and uses the WordPress starter theme Sage as a base.
README 文档
README
Sage is a WordPress starter theme based on HTML5 Boilerplate, gulp, Bower, and Bootstrap Sass, that will help you make better themes.
- Source: https://github.com/roots/sage
- Homepage: https://roots.io/sage/
- Documentation: https://roots.io/sage/docs/
- Twitter: @rootswp, @retlehs, @swalkinshaw, @Foxaii, @c2foryou, @austinpray
- Newsletter: Subscribe
- Forum: https://discourse.roots.io/
Requirements
| Prerequisite | How to check | How to install |
|---|---|---|
| PHP >= 5.4.x | php -v |
php.net |
| Node.js 0.12.x | node -v |
nodejs.org |
| gulp >= 3.8.10 | gulp -v |
npm install -g gulp |
| Bower >= 1.3.12 | bower -v |
npm install -g bower |
For more installation notes, refer to the Install gulp and Bower section in this document.
Features
- gulp build script that compiles both Sass and Less, checks for JavaScript errors, optimizes images, and concatenates and minifies files
- BrowserSync for keeping multiple browsers and devices synchronized while testing, along with injecting updated CSS and JS into your browser while you're developing
- Bower for front-end package management
- asset-builder for the JSON file based asset pipeline
- Sass Bootstrap
- Theme wrapper
- ARIA roles and microformats
- Posts use the hNews microformat
- Multilingual ready and over 30 available community translations
Install the Soil plugin to enable additional features:
- Cleaner output of
wp_headand enqueued assets - Cleaner HTML output of navigation menus
- Root relative URLs
- Nice search (
/search/query/) - Google CDN jQuery snippet from HTML5 Boilerplate
- Google Analytics snippet from HTML5 Boilerplate
Installation
Clone the git repo - git clone https://github.com/roots/sage.git and then rename the directory to the name of your theme or website.
If you don't use Bedrock, you'll need to add the following to your wp-config.php on your development installation:
define('WP_ENV', 'development');
Configuration
Edit lib/config.php to enable or disable theme features
Edit lib/init.php to setup navigation menus, post thumbnail sizes, post formats, and sidebars.
Theme development
Sage uses gulp as its build system and Bower to manage front-end packages.
Install gulp and Bower
Building the theme requires node.js. We recommend you update to the latest version of npm: npm install -g npm@latest.
From the command line:
- Install gulp and Bower globally with
npm install -g gulp bower - Navigate to the theme directory, then run
npm install - Run
bower install
You now have all the necessary dependencies to run the build process.
Available gulp commands
gulp— Compile and optimize the files in your assets directorygulp watch— Compile assets when file changes are madegulp --production— Compile assets for production (no source maps).
Using BrowserSync
To use BrowserSync during gulp watch you need to update devUrl at the bottom of assets/manifest.json to reflect your local development hostname.
For example, if your local development URL is http://project-name.dev you would update the file to read:
... "config": { "devUrl": "http://project-name.dev" } ...
If your local development URL looks like http://localhost:8888/project-name/ you would update the file to read:
... "config": { "devUrl": "http://localhost:8888/project-name/" } ...
Documentation
Sage documentation is available at https://roots.io/sage/docs/.
Contributing
Contributions are welcome from everyone. We have contributing guidelines to help you get started.
Community
Keep track of development and community news.
- Participate on the Roots Discourse
- Follow @rootswp on Twitter
- Read and subscribe to the Roots Blog
- Subscribe to the Roots Newsletter
slogsdon/simplify 适用场景与选型建议
slogsdon/simplify 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「jekyll」 「wp」 「roots」 「simplify」 「sage」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 slogsdon/simplify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 slogsdon/simplify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 slogsdon/simplify 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A to the point yaml front matter parser
A modern WordPress stack
WordPress boilerplate with Composer, easier configuration, and an improved folder structure
A php `frontmatter` parser
Configure system status variables for YITH plugins with Roots Trellis/Bedrock
Skosh is a simple static site generator for PHP using Gulp.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-02