我按照以下步骤设置了一个非常简单的启动前端应用程序:
- $ yo (Webapp Generator no css frameworks)
- $ bower install -S underscore
- add _.times(3, function () { console.log('rawr') });
- $ grunt
预期结果:
everything runs fine.
实际结果:
grunt aborts due to warnings. ('_' is not defined.)
grunt server runs fine and '_' is properly defined
2问题:
- What should I be doing to make grunt happy?
- How should I be testing this kind of setup? (bower install jasmine?)
我正在寻找新的工作流程来快速设置简单的前端应用程序。有一段时间我一直在手动设置一切,我正在努力扩展我的技能。