包含多个文件的Javascript项目 [英] Javascript project with multiple files

查看:113
本文介绍了包含多个文件的Javascript项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最好的IDE /编辑器/其他什么 - 管理多个文件的javascript项目?我的意思是,有没有办法在多个文件上开发项目,然后将项目构建到一个缩小的文件中?我已经看到这是在网上很多项目中完成的。谢谢!

What is the best IDE/editor/anything-else that manage javascript project on multiple files? I mean, is there a way of developing projects on multiple files and then kinda "build" the project into a single minified file? I've seen that this is done in lots of projects on the net. Thanks!

推荐答案

我认为还没有任何一体化的解决方案。你需要结合几个工具:

I don't think there is any all-in-one solution for that (yet). You need to combine several tools:


  • IDE:WebStorm,Aptana,甚至是Notepad ++

  • Cross -Compiler:Sass,CoffeeScript等。

  • Compressor:Google Closure Compiler,UglifyJS或YUICompressor

  • 构建工具,触发构建过程,管理文件夹结构等。$
    就个人而言,我使用大量的Bash脚本,但我看到人们使用Maven或Ant

  • 还有框架集成构建工具,支持dev /生产模式,如qooxdoo,Sencha,...

  • IDE: WebStorm, Aptana, or even Notepad++
  • Cross-Compiler: Sass, CoffeeScript etc.
  • Compressor: Google Closure Compiler, UglifyJS or YUICompressor
  • Build tool triggering a build process, managing folder structures etc.
    Personally, I use loads of Bash scripts, but I've seen people use Maven or Ant
  • There are also Frameworks with integrated build tools, supporting dev/production mode, something like qooxdoo, Sencha, ...

如果你是一个中小型项目,运行手动工具可能是成本效益比最好的解决方案,因为自动化需要相当多的工作。

If you're on a small to medium-sized project, running the tools manually might be the best solution in terms of cost-benefit ratio, since automation requires quite a bit of work.

这篇关于包含多个文件的Javascript项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆