如何管理AngularJS的工作流程有很多的脚本文件 [英] How to manage AngularJS workflow with lots of script files
问题描述
我看着gruntjs但我不知道,如果它合适的工具来解决我的工作流程问题。我工作的一个巨大的角项目30 + js文件已经进去。我每次添加一个新的js文件,我得去索引文件,并在其中添加引用。有什么办法来自动化与繁重的或其他任何工具,这个过程?
I looked into gruntjs but I'm not sure if it the right tool to solve my workflow problem. I' working on a huge angular project with 30+ js files already into it. Every time I add a new js file, I have to go to index file and add reference in it. Is there any way to automate this process with grunt or any other tool?
推荐答案
当然!这里有两种方式:
Absolutely! Here are two ways:
Yeoman
约曼是一套建立在步兵和鲍尔支持自动脚手架和编译集成的工作流管理脚本。有它太一个 AngularJS发电机的。
Yeoman is a set of integrated workflow management scripts built on Grunt and Bower that supports automatic scaffolding and compilation. There is an AngularJS generator for it too.
ngBoilerplate
这是我的创作,所以我肯定在这里有一个偏见,但它有一个基于咕噜构建系统和定义的目录结构,使得管理不平凡的AngularJS Apps超级容易。
This is my creation, so I definitely have a bias here, but it has a Grunt-based built system and a defined directory structure that makes managing non-trivial AngularJS apps super easy.
这篇关于如何管理AngularJS的工作流程有很多的脚本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!