TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Modern wordpress development? How?

9 点作者 rtfm666将近 11 年前
Does anyone have any resources for developing wordpress without feeling like it&#x27;s 1998.<p>I am talking CSS preprocessors, Git, CI, Bootstrap, mobile first last and in between ... OO php, decent starters kits and just, well, a development workflow that is sane.<p>So far I have: https:&#x2F;&#x2F;github.com&#x2F;romainberger&#x2F;yeoman-wordpress https:&#x2F;&#x2F;github.com&#x2F;welaika&#x2F;wordless<p>Any more?

4 条评论

titusjohnson将近 11 年前
Well, you can use git just as you normally would, nothing stopping you from using that. Just make sure you exclude the right directories so you don&#x27;t deploy your local wp-content to prod. I don&#x27;t really know of any wordpress &amp; git gotchas.<p>Bootstrap, CSS preprocessors, mobile first, that&#x27;s all dependant on your theme. I&#x27;ve seen some pretty decent setups that incorporate a router similar to what Wordless is doing. CSS&#x2F;Less&#x2F;Coffeescript, you can set up a grunt config to handle all that easily enough, nothing in Wordpress will prevent you from doing this. You should incorporate your CSS&#x2F;JS with the usual WP include functions so that WP Total Cache and similar can cache it properly, but there&#x27;s nothing really weird going on there.<p>So, now you&#x27;ve got grunt linting your JS like a boss, you&#x27;ve nice theme partials, you&#x27;ve got some custom libs that functions.php is bootstraping for you, your theme folder has morphed into its own MVC architecture.<p>There are a _lot_ of shops out there that pump out WP site after WP site. I have to think that a well constructed starter theme that incorporates more modern workflow ideas would go over well, but at the end of the day you&#x27;re still building on top of wordpress. Whatever starterkit you use is still limited by the parent it lives in.<p>To my knowledge the most painful part of WP -- keeping the options data in sync between dev, stage, and prod all the while you add and remove plugins -- is still largely unsolved.
jnorthrop将近 11 年前
I&#x27;m working with Timber[0] and Twig[1] for our theme. It is pretty slick.<p>[0]<a href="http://upstatement.com/timber/" rel="nofollow">http:&#x2F;&#x2F;upstatement.com&#x2F;timber&#x2F;</a><p>[1]<a href="http://twig.sensiolabs.org/" rel="nofollow">http:&#x2F;&#x2F;twig.sensiolabs.org&#x2F;</a>
koberstein将近 11 年前
Check this out: <a href="http://roots.io/" rel="nofollow">http:&#x2F;&#x2F;roots.io&#x2F;</a><p>looks cool.
ohashi将近 11 年前
<a href="http://wp-cli.org/" rel="nofollow">http:&#x2F;&#x2F;wp-cli.org&#x2F;</a>