【发布时间】:2014-09-23 04:07:09
【问题描述】:
我使用foundation new myproject --libsass 方法创建了一个新的基础项目。
它只是一个简单的静态 index.html(为了这个问题的目的)。
我现在已经将它部署到实时服务器上,我想知道构建它的最佳方式。我省略了 node_modules 和 scss 目录,只剩下以下内容:
- bower_components/
- css/
- js/
- index.html
- bowerrc
- bower.json
- Gruntfile.js
- humans.txt
- package.json
- README.md
bower_components 需要其当前形式,除非我将一些文件打乱,这是我打算做的,但我正在检查是否有更好的方法来做到这一点,并且我没有错过一些用于部署到生产环境的神奇终端命令。
【问题讨论】:
-
magic terminal command to deploy to production- 你签出grunt了吗? -
我正在使用 grunt 来观察 SCSS,并构建初始文件。您是说也可以进行部署吗?我会调查一下谢谢。
-
Grunt 非常灵活.. 取决于您要部署的位置、内容和方式,但大多数情况下都有模块.. 这是一个示例:npmjs.org/package/grunt-deploy
标签: deployment gruntjs zurb-foundation bower directory-structure