使用Yeoman和Foundation

3

我正在尝试使用Yeoman和Foundation构建一个Web项目。我已经创建了基本项目,并使用bower install foundation包含了Foundation组件,但是当我运行grunt server时,它无法编译Foundation或将其移动到应用程序树中。如何让Yeoman(或Grunt)识别并编译Foundation?

我正在使用Yeoman 1.0.0-beta.3。运行设置项目的命令如下:

npm install generator-angular generator-testacular
bower install foundation
yo angular --minsafe
npm install
bower install --dev
grunt server

但是 compass:server 任务报告:没有需要编译的内容。如果您正在尝试启动一个新项目,则可能忘记添加目录参数。
1个回答

0

我正在逐渐熟悉Yeoman和Foundation。但是难道你不应该添加<script>标签,以便grunt识别你打算使用“foundation”吗?

从Yeoman入门开始

yo angular 
bower install angular-ui
# then add <script src="components/angular-ui/build/angular-ui.js"></script>
# and <link rel="stylesheet" href="components/angular-ui/build/angular-ui.css"/>
grunt

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接