与Yeoman一起使用Foundation

时间:2013-03-04 13:24:28

标签: yeoman gruntjs

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

但罗盘:服务器任务报告Nothing to compile. If you're trying to start a new project, you have left off the directory argument.

1 个答案:

答案 0 :(得分:0)

我只是习惯了Yeoman和粉底。但你不应该添加<脚本>标签,以便咕噜声识别您打算使用“基础”?

From Yeoman getting started

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