2013-03-24 15:54:14 +04:00
|
|
|
*.swp
|
2011-12-13 01:05:37 +04:00
|
|
|
.DS_Store
|
2012-09-13 22:25:37 +04:00
|
|
|
.project
|
2012-08-10 23:32:19 +04:00
|
|
|
.svn
|
2012-09-20 03:09:15 +04:00
|
|
|
.nvm-version
|
2012-08-11 02:05:38 +04:00
|
|
|
atom.xcodeproj
|
2012-08-11 01:54:28 +04:00
|
|
|
build
|
2012-09-11 04:16:07 +04:00
|
|
|
.xcodebuild-info
|
2012-09-13 22:25:37 +04:00
|
|
|
node_modules
|
|
|
|
npm-debug.log
|
2013-06-13 07:57:38 +04:00
|
|
|
/tags
|
2013-05-12 15:51:31 +04:00
|
|
|
/atom-shell/
|
Use gyp's rules functionality to compile .coffee/.cson files
Instead of finding and compiling all .coffee/.cson files in
script/copy-files-to-bundle, we now tell gyp how to do this for us. It
works like this:
1. Rakefile invokes the new script/generate-sources-gypi script to
generate sources.gypi. This file lists all the .coffee/.cson files in
the src, static, and vendor directories, as well as a new
compiled_sources_dir variable that specifies where the compiled
versions of the files should be placed.
2. atom.gyp includes sources.gypi.
3. atom.gyp has a new target, generated_sources, which contains all the
.coffee/.cson files, and uses two rules to tell gyp how to compile
them. The rules invoke the new script/compile-coffee and
script/compile-cson files once for each file.
4. gyp generates one Makefile for each rule to actually perform the
compilation.
5. script/copy-files-to-bundle now takes the compiled_sources_dir
variable as an argument, and copies files both from there and from
the repository into the Resources directory.
By putting the compilation into a different target, we can do it in
parallel with compiling/linking our binaries. And gyp automatically runs
make using -j$(sysctl -n hw.ncpu), so compilation of .coffee/.cson files
happens in parallel, too.
These changes reduce clean build time on my MacBook Pro from 55 seconds
to 46 seconds.
2013-03-04 20:32:06 +04:00
|
|
|
/sources.gypi
|
2013-04-13 07:37:07 +04:00
|
|
|
docs/api
|