我刚开始学习Grunt,遇到了很多问题,我使用Express和Angular,我的项目目录如下
|-server
|-controllers
|-routes
|-models
|-views
|-users
signin.jade
signup.jade
index.jade //Index of server
|-public
|-images
|-javascripts
|-controllers
|-services
|-directives
app.coffee
|-stylesheets
app.scss
|-views //Angularjs templates
gruntfile.js
server.js我的index.jade可能如下所示
//- css, will use cdn files in production
link(href='bower_cmps/normalize-css/....')
link(href='bower_cmps/bootstrap/....')
link(href='stylesheets/app.css')
//- body
.container
.row
...
//- scripts, will use cdn files in production
script(src='bower_cmps/jquery/...')
script(src='bower_cmps/angular/...')
script(src='bower_cmps/angular-ui-router/...')
script(src='javascripts/app.js')
script(src='javascripts/controllers/**.js')
script(src='javascripts/services/**.js')我使用coffeescript编写客户端js,使用scss编写css。
Grunt开发人员的配置是什么样的?
以及如何使用usemin构建生产文件?
谢谢你给我一个提示
发布于 2014-04-20 05:22:34
你熟悉Yeoman吗?这里有一堆Angular + Express生成器,看看generator-angular-fullstack。
https://stackoverflow.com/questions/23173010
复制相似问题