# About the `tasks` folder
The `tasks` directory is a suite of Grunt tasks and their configurations, bundled for your convenience. The Grunt integration is mainly useful for bundling front-end assets, (like stylesheets, scripts, & markup templates) but it can also be used to run all kinds of development tasks, from browserify compilation to database migrations.
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, read on!
### How does this work?
The asset pipeline bundled in Sails is a set of Grunt tasks configured with conventional defaults designed to make your project more consistent and productive.
The entire front-end asset workflow in Sails is completely customizable-- while it provides some suggestions out of the box, Sails makes no pretense that it can anticipate all of the needs you'll encounter building the browser-based/front-end portion of your application. Who's to say you're even building an app for a browser?
### What tasks does Sails run automatically?
Sails runs some of these tasks (the ones in the `tasks/register` folder) automatically when you run certain commands.
###### `sails lift`
Runs the `default` task (`tasks/register/default.js`).
###### `sails lift --prod`
Runs the `prod` task (`tasks/register/prod.js`).
###### `sails www`
Runs the `build` task (`tasks/register/build.js`).
###### `sails www --prod` (production)
Runs the `buildProd` task (`tasks/register/buildProd.js`).
### Can I customize this for SASS, Angular, client-side Jade templates, etc?
You can modify, omit, or replace any of these Grunt tasks to fit your requirements. You can also add your own Grunt tasks- just add a `someTask.js` file in the `grunt/config` directory to configure the new task, then register it with the appropriate parent task(s) (see files in `grunt/register/*.js`).
### Do I have to use Grunt?
Nope! To disable Grunt integration in Sails, just delete your Gruntfile or disable the Grunt hook.
### What if I'm not building a web frontend?
That's ok! A core tenant of Sails is client-agnosticism-- it's especially designed for building APIs used by all sorts of clients; native Android/iOS/Cordova, serverside SDKs, etc.
You can completely disable Grunt by following the instructions above.
If you still want to use Grunt for other purposes, but don't want any of the default web front-end stuff, just delete your project's `assets` folder and remove the front-end oriented tasks from the `grunt/register` and `grunt/config` folders. You can also run `sails new myCoolApi --no-frontend` to omit the `assets` folder and front-end-oriented Grunt tasks for future projects. You can also replace your `sails-generate-frontend` module with alternative community generators, or create your own. This allows `sails new` to create the boilerplate for native iOS apps, Android apps, Cordova apps, SteroidsJS apps, etc.
没有合适的资源?快使用搜索试试~ 我知道了~
FreeSWITCH IVR图形化开业工具WEB版本
共118个文件
js:78个
css:6个
ejs:5个
1星 需积分: 50 78 下载量 164 浏览量
2019-02-01
10:42:36
上传
评论 7
收藏 1.05MB ZIP 举报
温馨提示
该文件为FreeSWITCH图形化的IVR开源工具的web版本,对于需要学习和设计一款这样的工具的同学是一份很好的参考。
资源推荐
资源详情
资源评论
收起资源包目录
FreeSWITCH IVR图形化开业工具WEB版本 (118个子文件)
bootstrap.min.css 120KB
jquery-ui.min.css 29KB
font-awesome.min.css 26KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
ivr-designer.css 3KB
.DS_Store 6KB
.editorconfig 166B
500.ejs 66KB
layout.ejs 5KB
404.ejs 4KB
homepage.ejs 4KB
403.ejs 4KB
fontawesome-webfont.eot 67KB
.gitignore 3KB
.gitkeep 0B
.gitkeep 0B
.gitkeep 0B
.gitkeep 0B
.gitkeep 0B
favicon.ico 920B
jquery-ui.min.js 235KB
jquery-ui-1.9.2.min.js 232KB
jsPlumb.js 129KB
sails.io.js 118KB
ajquery.js 94KB
jquery-2.1.4-min.js 82KB
defaults.js 59KB
endpoint.js 56KB
anchors.js 54KB
designer_flow.js 36KB
bootstrap.min.js 36KB
katavorio-0.6.js 30KB
mottle-0.6.js 26KB
connection.js 25KB
renderers-svg.js 23KB
dom-adapter.js 22KB
renderers-vml.js 22KB
connectors-flowchart.js 18KB
jsBezier-0.7.js 17KB
util.js 17KB
overlay-component.js 10KB
blueprints.js 10KB
connectors-statemachine.js 9KB
biltong-0.2.js 9KB
dom.jsPlumb.js 8KB
sockets.js 8KB
jquery.jsPlumb.js 7KB
sails-linker.js 6KB
views.js 6KB
connections.js 5KB
session.js 4KB
http.js 4KB
cors.js 4KB
connectors-bezier.js 3KB
globals.js 3KB
csrf.js 3KB
pipeline.js 3KB
i18n.js 3KB
notFound.js 2KB
serverError.js 2KB
routes.js 2KB
forbidden.js 2KB
policies.js 2KB
Gruntfile.js 2KB
browser-util.js 2KB
app.js 2KB
badRequest.js 2KB
base-library-adapter.js 2KB
models.js 1KB
production.js 1KB
log.js 1KB
ok.js 1KB
jst.js 1KB
jquery.ui.touch-punch-0.2.2.min.js 1KB
main.js 832B
development.js 830B
copy.js 812B
coffee.js 781B
watch.js 765B
concat.js 701B
sessionAuth.js 695B
less.js 661B
bootstrap.js 628B
sync.js 626B
cssmin.js 480B
uglify.js 464B
clean.js 453B
prod.js 298B
linkAssetsBuildProd.js 290B
Nodes.js 288B
linkAssetsBuild.js 282B
linkAssets.js 245B
NodesController.js 192B
buildProd.js 191B
compileAssets.js 154B
build.js 147B
syncAssets.js 136B
default.js 114B
package.json 951B
共 118 条
- 1
- 2
资源评论
- 我还要去追逐我的梦2020-05-08没什么用,github地址https://github.com/jupox/designerFlow,已有
sdh710799175
- 粉丝: 4
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功