刚开始学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
来构建生产文件?
感谢您提供提示