Commit Graph

517 Commits

Author SHA1 Message Date
Matt Colyer
2ffa989ba4 Add a missing comma 2013-12-18 11:12:38 -08:00
Matt Colyer
341454cd81 Dont use console 2013-12-18 11:11:27 -08:00
Matt Colyer
4507981f2a Fix logging 2013-12-18 11:07:46 -08:00
Matt Colyer
14f2444883 Add debugging 2013-12-18 11:03:21 -08:00
Matt Colyer
bb517467eb 💄 2013-12-18 09:48:03 -08:00
Matt Colyer
bf021ab7f7 Merge branch 'master' into win32-specs
Conflicts:
	tasks/spec-task.coffee
2013-12-18 09:34:28 -08:00
Kevin Sawicki
cef7577826 Install apm into node_modules
settings-views launches apm via a NodeBufferedProcess so it still needs to
be available built against Atom's headers.

The version in apm/ is just for running via the CLI directly and is compiled
against node's headers.
2013-12-17 19:25:44 -08:00
Matt Colyer
e7f63b7c62 Merge branch 'master' into win32-specs 2013-12-17 18:22:08 -08:00
Kevin Sawicki
75c573fe61 Run apm commands from new apm directory 2013-12-17 16:53:31 -08:00
Kevin Sawicki
ed8800d182 Install apm to apm/ from vendor/apm 2013-12-17 16:53:31 -08:00
Matt Colyer
cbfa87a3b4 Merge branch 'master' into win32-specs 2013-12-17 15:36:24 -08:00
Kevin Sawicki
180e5d4164 Delete node_modules from vendor/apm 2013-12-17 09:50:04 -08:00
Kevin Sawicki
b10ef9454b Disable colors in script/constructicon/build not script/build 2013-12-17 09:27:11 -08:00
Kevin Sawicki
31fc4fcde8 Disable colors in constructicon output 2013-12-17 09:22:14 -08:00
Kevin Sawicki
f48514114d Disable colors when BUILT_PRODUCTS_DIR env var is set 2013-12-17 09:15:04 -08:00
Kyle Robinson Young
ed4b50e3b4 Rename removeCommand and set tmpdir to /tmp on osx/linux. 2013-12-16 17:51:20 -08:00
Kyle Robinson Young
d526cfcba0 Change .node-type to .node-gyp in clean script 2013-12-16 17:51:20 -08:00
Kyle Robinson Young
0cf2cdceea Ability to delete without node_modules 2013-12-16 17:51:20 -08:00
Kyle Robinson Young
8239bb7e05 Add clean script 2013-12-16 17:51:20 -08:00
Matt Colyer
fa34eea27a Allow script/cibuild to run on windows 2013-12-16 17:33:45 -08:00
Kevin Sawicki
e5bd341f05 Set npm log level to warn instead of silent 2013-12-11 10:03:32 -08:00
Kevin Sawicki
e9d4563084 Disable apm colors in CI builds 2013-12-11 09:40:30 -08:00
Kevin Sawicki
b67ce8f4f8 Only retain last 10 releases 2013-12-11 09:17:47 -08:00
Kevin Sawicki
6a90bc1b17 Create prereleases 2013-12-11 09:06:59 -08:00
Kyle Robinson Young
59f453bb06 Prefer npm created node_modules/.bin/grunt 2013-12-10 19:36:48 -08:00
Kevin Sawicki
1737df6ff9 Use .zip extension 2013-12-10 18:03:28 -08:00
Kevin Sawicki
897bf2f8e0 💄 Add assetName variable 2013-12-10 17:49:53 -08:00
Kevin Sawicki
1851c81e60 Log when delete response is non-204 2013-12-10 17:47:43 -08:00
Kevin Sawicki
938c85e616 Use default headers in publish release API call 2013-12-10 17:46:34 -08:00
Kevin Sawicki
f1ed51a823 Only publish master builds 2013-12-10 17:37:32 -08:00
Kevin Sawicki
fbd8f7a1a7 Use commitSha variable 2013-12-10 17:37:32 -08:00
Kevin Sawicki
3e359e3c4e Upload releases to atom/atom-master-builds repo 2013-12-10 17:37:32 -08:00
Kevin Sawicki
2136fdaa60 Set cwd to vendor/apm instead of cd'ing 2013-12-10 14:11:10 -08:00
Kevin Sawicki
163994340d Log Atom release tag name 2013-12-10 13:51:09 -08:00
Kevin Sawicki
2141d06f61 Upload master builds only 2013-12-10 13:33:31 -08:00
Kevin Sawicki
e1a1a7efc9 Log what release is being uploaded to 2013-12-10 13:24:02 -08:00
Kevin Sawicki
f3f94a2af0 Drop prerelease from asset name 2013-12-10 12:59:32 -08:00
Kevin Sawicki
3d8e304b1c Allow script/upload-release to be called directly 2013-12-10 12:48:34 -08:00
Kevin Sawicki
2d0ba3e1f9 Uncomment branch check 2013-12-10 12:48:34 -08:00
Kevin Sawicki
be0ebab841 Delete existing before uploading new one 2013-12-10 12:48:34 -08:00
Kevin Sawicki
8c1d49c703 Exit with 1 when upload fails 2013-12-10 12:48:34 -08:00
Kevin Sawicki
4af71391a6 Use basename of assetPath in zip command 2013-12-10 12:48:34 -08:00
Kevin Sawicki
90802e3725 Check for error being null and default body to empty string 2013-12-10 12:48:34 -08:00
Kevin Sawicki
a9d1afdf65 Rename upload variable to assetRequest 2013-12-10 12:48:34 -08:00
Kevin Sawicki
2a51eb7614 Remove unneeded key name 2013-12-10 12:48:34 -08:00
Kevin Sawicki
96d38d7252 💄 Use return unless 2013-12-10 12:48:34 -08:00
Kevin Sawicki
4705e382bf Convert script/upload-release to CoffeeScript 2013-12-10 12:48:33 -08:00
Kevin Sawicki
11f8eba2c3 Add initial upload-release script 2013-12-10 12:48:33 -08:00
Cheng Zhao
33778cefdd Merge branch 'master' into atom-shell-v0.7.5 2013-12-09 16:52:05 +08:00
Kevin Sawicki
8cf2cdb2a9 Add script/install-cli to install atom and apm 2013-12-05 11:02:37 -08:00
Cheng Zhao
a7db8229d5 Also change the version field of package.json in set-development-version task. 2013-12-05 18:13:42 +08:00
Kevin Sawicki
31a909828d Don't override ATOM_ACCESS_TOKEN if already set 2013-12-04 14:40:37 -08:00
Kevin Sawicki
63dc8863e3 Use atom-bot's token as ATOM_ACCESS_TOKEN 2013-12-04 11:38:25 -08:00
Kevin Sawicki
caffcafe2e 🙉 Ignore stdout from installation of apm 2013-11-15 09:54:36 -08:00
Kevin Sawicki
b0da17701b Run apm clean during bootstrap
Closes #905
2013-11-02 19:29:52 -07:00
Kevin Sawicki
c9db0f14ed Disable colored output in script/cibuild 2013-11-01 16:42:50 -07:00
Kevin Sawicki
875e9c886c Increase max buffer to 1MB 2013-11-01 16:34:20 -07:00
Kevin Sawicki
05867bc889 Default error code to 1
Apparently not all errors passed to the callback have a code so default
it to zero when missing. The 'stdout maxBuffer exceeded.' is once such
error that has no code.
2013-11-01 16:27:46 -07:00
Kevin Sawicki
6d4285f180 Add script/build.cmd 2013-11-01 10:58:25 -07:00
Cheng Zhao
53954c236c Use the apm in node_modules/atom-package-manager instead of vendor/apm. 2013-10-30 23:44:05 +08:00
Cheng Zhao
3de18ae9f6 Fix calling of apm and grunt in script/cibuild and script/test. 2013-10-30 18:10:03 +08:00
Cheng Zhao
bfab56247f node_modules/.bin/grunt is a bash script not a js script. 2013-10-30 17:05:08 +08:00
Cheng Zhao
e4400c648d Revert "Run apm from node_modules"
This reverts commit 8742f6c06c.

The `node_modules/.bin/apm` is a bash script not a js script, so on
Windows `node node_modules/.bin/apm` would fail with:

```
C:\cygwin\home\zcbenz\codes\atom\node_modules\.bin\apm:2
basedir=`dirname "$0"`
        ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
```
2013-10-30 10:51:06 +08:00
Kevin Sawicki
2f62123a75 Merge branch 'master' into win-bootstrap-native-modules 2013-10-28 17:33:39 -07:00
Kevin Sawicki
8eecc56d08 💄 Fix typo in variable name 2013-10-26 15:12:13 -07:00
Kevin Sawicki
e009ff6c59 Add missing parens 2013-10-26 15:07:20 -07:00
Kevin Sawicki
f500e2e9fc Add semicolon 2013-10-26 15:03:21 -07:00
Kevin Sawicki
2a98ccec8d Don't require async before bootstrapping
async won't be available on the very first run of script/build
until it runs script/bootstrap for the first time so defer requiring
it until script/bootstrap completes.
2013-10-26 15:01:19 -07:00
Kevin Sawicki
8742f6c06c Run apm from node_modules 2013-10-26 14:54:23 -07:00
Kevin Sawicki
e4fc15deec Remove cmake check since it is no longer required 2013-10-25 10:01:43 -07:00
probablycorey
c1b0ba2773 Check for cmake dependency before building Atom 2013-10-24 14:40:03 -07:00
Adam Roben
f21e8e3aa4 Get rid of ANSI escape sequences in Constructicon output
Passing --no-color to grunt should get rid of these.
2013-10-24 08:48:05 -04:00
Kevin Sawicki
e873a0977c Revert "Set path to node directly"
This reverts commit 8bcf40111d.
2013-10-23 11:29:14 -07:00
Kevin Sawicki
8bcf40111d Set path to node directly 2013-10-23 11:18:49 -07:00
Kevin Sawicki
2254a6e33b Set environment variables before bootstrapping
The environment variables are required by bootstrap now for
installing packages via atom.io
2013-10-22 10:34:34 -07:00
Cheng Zhao
dbd1438cf7 Add script/bootstrap.cmd. 2013-10-19 22:32:26 +08:00
Cheng Zhao
082686bba8 Fix bootstrap script on Windows. 2013-10-19 22:11:03 +08:00
Cheng Zhao
53b4b1c349 💄 Remove unsed variable. 2013-10-14 16:59:31 +08:00
Cheng Zhao
fae1f500eb Rewrite script/test in js. 2013-10-14 16:52:52 +08:00
Cheng Zhao
4308e428d3 Rewrite script/cibuild in js. 2013-10-14 16:47:29 +08:00
Cheng Zhao
1d343dd483 Make the safeSpawn function a util module. 2013-10-14 15:14:03 +08:00
Cheng Zhao
e17c9ced57 Rewrite script/build in js. 2013-10-14 14:37:16 +08:00
Cheng Zhao
8edd6ad5d5 Rewrite bootstrap script in js. 2013-10-14 14:18:04 +08:00
Cheng Zhao
d39797fdca Import atomcredentials in cibuild. 2013-10-04 13:39:53 +08:00
Kevin Sawicki
bc76b70552 Add SHA-1 based CoffeeScript compile cache
This restores the require cache that was used pre-node integration
2013-09-09 18:56:15 +01:00
Kevin Sawicki
0e3caafe4d Update atom-shell to version in package.json
This changes the behavior to always install the atom-shell version
in the package.json instead of the latest.

This also ports over the script/update-atom-shell script to a Grunt task.
2013-09-09 18:40:22 +01:00
Cheng Zhao
72e725e6bc Update atom-shell to v0.4.5. 2013-09-09 16:28:31 +08:00
Cheng Zhao
bad0b74d5b Update to atom-shell v0.4.4. 2013-09-06 08:58:17 +08:00
Kevin Sawicki
6dbf003c03 Downgrade to atom-shell@0.4.3
Specs are failing against 0.4.4 so hardcode 0.4.3 until this is resolved.
2013-09-05 09:34:28 -07:00
Kevin Sawicki
8415922d20 💄 consistent argument ordering 2013-09-03 16:21:39 -07:00
Kevin Sawicki
b57d655a8a Delete /tmp/atom-coffee-cache before building
Temp fix to get CI working again
2013-09-03 16:18:34 -07:00
Kevin Sawicki
f5bb0333b9 Run apm clean instead of deleting node_modules
This ensures removed modules are uninstalled before specs run but
unchanged modules can be cached between builds.
2013-09-03 14:13:04 -07:00
Kevin Sawicki
25434e943e Silently install apm's dependencies 2013-09-02 21:25:06 -07:00
Cheng Zhao
d9b2b3e565 The atom-shell's distribution filename now includes version and platform. 2013-09-02 14:09:14 +08:00
probablycorey
e833649111 Remove aa script and replace it with compile-main-to-app 2013-08-21 16:19:37 -07:00
Kevin Sawicki
c747e1c686 Separate npm and apm output with an empty line 2013-08-14 08:46:53 -07:00
Cheng Zhao
ebaa6c349f Revert "Downgrade to atom-shell@v0.2.1"
This reverts commit d7cfb757d6.
2013-08-13 14:47:27 +08:00
Kevin Sawicki & Nathan Sobo
d7cfb757d6 Downgrade to atom-shell@v0.2.1
atom-shell@v0.3.0 removed the node binary which was needed for
scripts spawned by BufferedProcess such as nak. We can explore
other approaches to spawning node-based  subprocesses if it's
a deal-breaker to ship with a node binary.
2013-08-08 09:45:17 -07:00
Kevin Sawicki
c6a914a6e1 Default looking for octicons in ~/github/octicons 2013-08-07 10:59:45 -07:00
Kevin Sawicki
32af574206 Add trailing newline to octicon-utf-codes.less 2013-08-07 10:56:08 -07:00
probablycorey
de204b0321 Add script to automate octicon updates 2013-08-07 10:37:12 -07:00
Cheng Zhao
ee0443e40c Revert "Use atom-shell 23dd5b4da8"
Since the async function issue is fixed in atom-shell, we can go back to
use the latest release.
2013-07-18 18:57:13 +08:00
Kevin Sawicki
17cecda23e Use atom-shell 23dd5b4da8
The release past this build is causing issues with async callbacks
not firing.
2013-07-16 09:48:15 -07:00
Kevin Sawicki
3366c4d6a5 Remove node_modules before bootstrapping 2013-07-08 11:29:28 -07:00
Kevin Sawicki & Nathan Sobo
6d70bf9106 Remove node_modules during script/cibuild so they recompile during bootstrap 2013-07-03 17:53:43 -07:00
probablycorey
264f7e1a74 Add script/test 2013-06-21 09:46:25 -07:00
probablycorey
94227889f1 script/build calls script/bootstrap 2013-06-21 09:46:25 -07:00
Kevin Sawicki
b562b3cf72 Remove script/copy-info-plist
Perform the copy in Gruntfile.coffee instead of a script
2013-06-21 09:30:53 -07:00
probablycorey
82cb2aa124 Remove unused scripts 2013-06-20 17:15:53 -07:00
probablycorey
93d6a80bc6 Add script/build task 2013-06-20 17:15:53 -07:00
probablycorey
cc591e18b0 Remove colored output from cibuilds 2013-06-20 17:15:53 -07:00
probablycorey
f8bc5ce648 cibuild runs ./script/bootstrap 2013-06-20 17:15:52 -07:00
probablycorey
abf4a6501a Use grunt to run ci tests 2013-06-20 17:15:52 -07:00
probablycorey
5c2aaf9849 Create deploy task 2013-06-20 17:15:51 -07:00
probablycorey
d6cd51399d Fix build script 2013-06-20 12:15:35 -07:00
probablycorey
ab53e2ffda Rename create-atom script to constructicon/build 2013-06-20 12:15:35 -07:00
probablycorey
f47fa21fe9 Don't create version file in app bundle 2013-06-20 12:15:34 -07:00
probablycorey
478c617e60 Don't use polite curl in update-atom-shell 2013-06-20 12:15:34 -07:00
probablycorey
4449758135 Don't set version when building on constructicon 2013-06-20 12:15:34 -07:00
probablycorey
7163d8dc71 Make atom work with constructicon 2013-06-20 12:15:34 -07:00
probablycorey
128f7b851a Better constructicon output 2013-06-20 12:15:34 -07:00
probablycorey
90bc5f58f7 Bootstrap atom before constructicon build 2013-06-20 12:15:34 -07:00
probablycorey
c89328fa14 Set permissions for prebuild script 2013-06-20 12:15:34 -07:00
probablycorey
af655b3674 Make atom work with constructicon 2013-06-20 12:15:34 -07:00
probablycorey
fcaa952973 Simplify gyp
Gyp is only used for construction now.
2013-06-20 12:15:34 -07:00
probablycorey
65c02328b3 Remove polite curl 2013-06-20 12:15:34 -07:00
probablycorey
ed4f4a699b Remove typo that causes everything to fail 2013-06-20 12:15:34 -07:00
probablycorey
22b7ae2136 Move plist code into update-info-plist 2013-06-20 12:15:33 -07:00
probablycorey
032d865c92 Move plist code into update-info-plist 2013-06-20 12:15:33 -07:00
Cheng Zhao
feab9862ac Update apm for node v0.10.9. 2013-06-06 09:57:03 +08:00
Cheng Zhao
94e7011413 Update node version to v0.10.9.
Should make this default settings after atom-shell branch is merged.
2013-06-02 10:25:35 +08:00
Cheng Zhao
92f071de93 Add script to clean up "open with" menu.
By compiling and running Atom again and again, the "open with" menu
would be polluted with various Atoms... This script cleans them.
2013-05-30 22:11:24 +08:00
Kevin Sawicki
5a691a1b1e Merge branch 'master' into atom-shell 2013-05-29 13:23:23 -07:00
Corey Johnson & Kevin Sawicki
17a83933d4 Use two -f flags to clean all git dirs 2013-05-29 10:01:33 -07:00
Cheng Zhao
c6d4942295 Generate Info.plist for App and Helper. 2013-05-29 19:33:48 +08:00
Cheng Zhao
9a08ea10cc Copy icon files and speakeasy.pem to bundle. 2013-05-29 18:57:02 +08:00
probablycorey
0eaec66ba6 Remove all native code 2013-05-28 11:46:19 -07:00
Kevin Sawicki
2bd95a2b57 Merge branch 'master' into atom-shell
Conflicts:
	.gitmodules
2013-05-28 10:47:46 -07:00
Kevin Sawicki
6690598024 Use TextMate packages instead of vendoring bundles 2013-05-28 09:25:22 -07:00
Cheng Zhao
0fa5ca3782 Generate version after all files are copied.
And also note that <(PRODUCT_DIR) cannot work in postbuilds.
2013-05-24 23:58:01 +08:00
Cheng Zhao
a00fe91fca Show Atom's version. 2013-05-24 23:24:46 +08:00
Cheng Zhao
61f8878e05 Merge branch 'master' into atom-shell
Conflicts:
	package.json
	script/bootstrap
	spec/app/window-spec.coffee
	src/app/window.coffee
2013-05-22 20:52:42 +08:00
Cheng Zhao
1254561724 There is no need to call node-gyp externally any more.
From npm v1.2.19, the npm_config_disturl is supported to set dist-url
for node-gyp, so we don't need to interactive with node-gyp ourselves
any more.
2013-05-20 15:27:12 +08:00
Kevin Sawicki
276c6c1725 Add --silent flag to apm/npm commands 2013-05-17 15:37:26 -07:00
Kevin Sawicki
851febd495 Use apm to install modules 2013-05-14 12:30:35 -07:00
Kevin Sawicki
81f7354fb5 Use season for compiling cson to json 2013-05-14 11:08:32 -07:00
Cheng Zhao
77963aaf88 Keep symbol links when copying atom-shell bundle. 2013-05-13 16:46:48 +08:00
Cheng Zhao
02d5ca78d5 Clean unused native build scripts. 2013-05-13 15:16:42 +08:00
Cheng Zhao
e99fe93029 Don't build native code and use atom-shell's binary instead. 2013-05-13 13:49:31 +08:00
Cheng Zhao
548021dd40 Download atom-shell and remove cefode. 2013-05-12 19:51:31 +08:00
Kevin Sawicki
8172618bec Remove unused libgit2 script 2013-05-10 11:19:40 -07:00
Kevin Sawicki
f16c7247a9 Clean cefode cache during prebuild 2013-05-08 11:17:30 -07:00
probablycorey
915d2e42b7 Store cefode versions in /tmp/atom-cached-cefodes
This will make rake cleaning go faster
2013-04-24 15:19:11 -07:00
Kevin Sawicki
7e9c39fd55 Remove less hack
less is no longer vendored and so the previous
window hack is no longer needed.
2013-04-24 11:36:18 -07:00
Kevin Sawicki
8fb61168b0 doc: mention cson and less files 2013-04-24 10:12:30 -07:00
Kevin Sawicki
36e725d5d5 Precompile theme metadata to JSON 2013-04-24 10:12:29 -07:00
Kevin Sawicki
df9c30d174 Precompile .less theme files 2013-04-24 10:12:29 -07:00
Kevin Sawicki
865b70e16d Don't exclude node_modules/less
Less is no longer vendored and so it should now be
copied over.
2013-04-16 08:46:13 -07:00
Nathan Sobo
1ce9cdff0c Make precompilation of less stylesheets work with @import directives 2013-04-15 20:45:56 -06:00
Kevin Sawicki
78dc676f0f Exclude .less/.cson/.coffee files at root of src
Previously the rsync exclude rules required files to be two-levels
deep to be excluded which would keep the window-bootstrap.coffee in
the bundle since it was at the root of the src folder.

Now if cson, less, or coffee files end up in src/ they will be
correctly excluded from the bundle when synced.
2013-04-11 12:36:40 -07:00
Nathan Sobo
7967dada4b Make script/bootstrap exit on subprocess errors 2013-04-11 13:07:16 -06:00
Nathan Sobo
b1e79b4634 Run rake clean on prebuild to clear out node_modules 2013-04-11 12:53:32 -06:00
Nathan Sobo
d56946fa6e Export VERSION to rake task in prebuild script 2013-04-10 15:57:17 -06:00
Cheng Zhao
1fcc0adf6c Update cefode2 to cefode3. 2013-04-05 23:00:58 +08:00
probablycorey
a048d2994e Use [ -t 1 ] to check if we should output progress bar. 2013-04-04 12:22:37 -07:00
probablycorey
44d78ed30d move files int tools/mac to scripts dir 2013-04-04 10:04:45 -07:00
Cheng Zhao
20083b97c6 Update node to v0.10.3 2013-04-04 21:18:21 +08:00
Kevin Sawicki
52d47f555f Don't run clean before test
Clean should be optional
2013-04-03 12:11:45 -07:00
Kevin Sawicki
326910eeed Don't output curl progress bar during ci build 2013-04-02 17:28:26 -07:00
Kevin Sawicki
4971a73c01 Merge branch 'master' into tweak-coffee 2013-04-02 08:27:35 -07:00
Cheng Zhao
371fdde4f9 Use atom/cefode. 2013-03-27 12:25:54 +08:00
Cheng Zhao
67c2a1473c Cefode is using node v0.8.22. 2013-03-27 12:25:54 +08:00
Cheng Zhao
215cd64c9a Use the node binary compiled with V8 used by Chromium.
The official node is using a different V8 version with the one used by
cefode, which causes incompatibility with cefode on native modules, this
special node binary fixes it.

The source code of this node binary can be found at:
https://github.com/atom/cefode-node/tree/chromium-v8
2013-03-27 12:25:54 +08:00
probablycorey
75fbab94b1 Make npm install quieter 2013-03-26 14:32:40 -07:00
Kevin Sawicki
858f58da97 Precompile less files to css during build
This mirrors the CSON to JSONS compilation step.

Closes #440
2013-03-26 12:05:12 -04:00
Kevin Sawicki
43dc7fcf9e Correct typo in error message 2013-03-26 11:45:47 -04:00
Cheng Zhao
c9cb5016b7 Script to translate addresses in crash log into function lines. 2013-03-26 15:47:30 +08:00
Cheng Zhao
f969927c69 💄 2013-03-24 19:53:51 +08:00
Cheng Zhao
e4995091d3 Always check and download newest cefode. 2013-03-24 13:43:19 +08:00
Kevin Sawicki
b006841fa7 Install npm locally and use during bootstrap
This ensures the expected version is used regardless
of the global version already installed.

Closes #439
2013-03-21 10:56:43 -07:00
Corey Johnson & Nathan Sobo
dfa91f0f3c Use explicit path for node-gyp 2013-03-19 12:32:50 -07:00
John Barnette
c720274221 Alphabetize flags 2013-03-15 19:49:19 -07:00
John Barnette
8a1c16c35e Enable source maps
We'll figure out how to use them later.
2013-03-15 13:32:57 -07:00
Nathan Sobo
aba0f8e362 Change condition for installing a local node-gyp 2013-03-13 18:58:33 -06:00
Cheng Zhao
c393a0677e Update cefode for child_process.fork. 2013-03-13 21:57:12 +08:00
Cheng Zhao
347ba6c7ee Bundle offical node binary with Atom.
This is required for using child_process.fork.
2013-03-13 20:15:41 +08:00
Kevin Sawicki
10fe754dfd Only install headers if directory does not exist 2013-03-11 15:59:34 -07:00
Kevin Sawicki
f3990722e3 Install node-gyp with custom node distribution
This should be done before the rest of the dependencies
are installed to that the correct headers are used for
compiling native modules.
2013-03-11 15:38:15 -07:00
Corey Johnson
709d9738ef Revert "Exclude package-generator templates from coffee compilation"
This reverts commit f432ad350f.
2013-03-08 09:27:44 -08:00
Corey Johnson
f432ad350f Exclude package-generator templates from coffee compilation
Closes #359
2013-03-08 09:16:19 -08:00
Kevin Sawicki
b0ec0cda7f Merge remote-tracking branch 'origin/dev' into cefode 2013-03-07 11:44:46 -08:00
Kevin Sawicki
ce2d0389e1 Use ctags node module
Remove internal ctags code and defer to
new node module for finding tags and listing
tags.
2013-03-07 09:41:04 -08:00
Adam Roben
192f8841bb Let Rakefile take care of running npm 2013-03-05 14:32:51 -08:00
Adam Roben
9e1b975773 Try finding node where it's installed on Constructicon 2013-03-05 14:32:51 -08:00
Adam Roben
7b32560ce2 Fix syntax errors 2013-03-05 14:32:50 -08:00
Adam Roben
28d4ea0456 Don't source env.sh unless it exists 2013-03-05 14:32:50 -08:00
Adam Roben
01e0e886e6 Turn on code signing in Constructicon 2013-03-05 14:32:50 -08:00
Adam Roben
aae5ebc810 Ensure gyp is in Constructicon's PATH 2013-03-05 14:32:50 -08:00
Adam Roben
ebaa344164 Put Constructicon's node in PATH 2013-03-05 14:32:50 -08:00
Adam Roben
caf0dec598 Make the prebuild script noisy while we debug 2013-03-05 14:32:50 -08:00
Adam Roben
5f2bd9edd7 Add a prebuild script for Constructicon
Constructicon will run this just before building the project, so this is
our chance to install the node modules we need and create the
.xcodeproj.
2013-03-05 14:32:50 -08:00
Kevin Sawicki
91347f14f2 Build libgit2 with thread safe option enabled 2013-03-05 14:27:19 -08:00
Kevin Sawicki & Nathan Sobo
41e1ce4a09 Remove cson2json dependency
The latest release does not work because of CoffeeScript
changes so use a simple compile script to convert CSON
files to JSON files when buildilng.

Closes #348
2013-03-04 18:27:51 -08:00
Adam Roben
73e0b72479 Only source /opt/github/env.sh if needed
If node is already in PATH and functional, we don't need to spend a
bunch of time running all of Boxen's setup scripts.

This reduces clean build time on my MacBook Pro from 46 seconds to 31
seconds.
2013-03-04 11:52:51 -05:00
Adam Roben
83ee2d23b3 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 11:32:06 -05:00
Adam Roben
550cd8348c Echo commands in script/cibuild for debugging purposes 2013-02-27 14:38:05 -05:00
Corey Johnson
d07d59353e Remove atom.githubapp.com private key 2013-02-27 10:48:38 -08:00
Corey Johnson
e618850712 Update script/cibuild to work with the Mac Janky server 2013-02-27 10:47:53 -08:00
Kevin Sawicki
d35c871e17 Install atom executable during window.startup()
Previously this was done during `rake install`.

Also default to `~/github/atom` as the default resource path
when no `--resource-path` argument is specified.  This argument
will now be required when running in dev mode if the repository
is not at the default location.

Closes #300
2013-02-22 21:19:34 -08:00
Kevin Sawicki
b04c1ad766 Include dot-atom directory in bundle 2013-02-22 14:46:29 -08:00
Adam Roben
668921d336 Remove CEF from the repo and download it as needed
We now use github/prebuilt-cef to download CEF from S3, then build
against that. This means we no longer need to have CEF committed to the
repo.

Fixes #280.
2013-02-17 11:59:06 -05:00
Corey Johnson
e7a8e4e3c4 Add atom.update and atom.getUpdateStatus 2013-02-14 16:40:24 -08:00
Nathan Sobo
aeb1e3fd3c Add a script to fix the author w/ git-filter-branch 2013-01-30 16:53:36 -07:00
Corey Johnson & Nathan Sobo
493ed5f006 Merge branch 'web-workers' into dev 2013-01-28 15:02:57 -07:00
Corey Johnson & Nathan Sobo
1190644e76 Make update-cef script tolerate multiple cef binaries in chromium/src/cef 2013-01-28 14:52:45 -07:00
Kevin Sawicki
a8a1d09dac Output updated paths after changing id 2013-01-28 09:39:50 -08:00
Kevin Sawicki
fbfdd6ab65 Doc libgit2 build and verification steps in update script 2013-01-28 09:38:01 -08:00
Kevin Sawicki
97e808620e Copy themes folder to bundle 2013-01-17 16:50:25 -08:00
Kevin Sawicki
781f58e33a Precompile cson files to json 2013-01-17 16:50:25 -08:00
Kevin Sawicki
f1efc9ce60 Upgrade to latest libgit2 development branch 2013-01-04 14:57:14 -08:00
Kevin Sawicki
3e8913f518 Be quiet 2013-01-04 08:18:52 -08:00
Kevin Sawicki
b0d38d0ac7 Sync submodules before updating 2013-01-04 08:18:52 -08:00
Kevin Sawicki
4078046ac6 Vendor textmate bundles as submodules 2013-01-04 08:18:52 -08:00
Corey Johnson
d77fc88ff4 Merge remote-tracking branch 'origin/master' into config 2012-12-27 10:38:24 -08:00
Corey Johnson
83af57db41 cibuild removes ~./atom before running specs 2012-12-26 18:08:18 -08:00
Corey Johnson
e5e5c497e1 Load themes from ~/.atom/themes 2012-12-26 17:41:48 -08:00
Corey Johnson
207281aa1c Stole clean-merged-branches from github/github 2012-11-08 09:55:00 -08:00
Corey Johnson
80529c2f25 Uncommented needed lines in update-cef script 2012-11-08 09:51:30 -08:00
Corey Johnson
b436d9467e Enhance ./script/update-cef
It will now update or download a specific release of CEF and Chromium, compile CEF/Chromium, and copy the needed files to Atom.
2012-10-30 14:26:19 -07:00
Corey Johnson
540f651061 Only compile coffee files in src static and vendor 2012-10-26 15:36:15 -07:00
Kevin Sawicki
d58954145b Remove brew check
This was added for the gyp formula install
which has been removed
2012-10-18 16:04:43 -07:00
Will Farrington
fcc6795e83 no more custom gyp 2012-10-18 16:00:14 -07:00
Corey Johnson
0dfc57a98f add new build-bot private key 2012-10-16 09:44:31 -07:00
Corey Johnson
6ea19bc765 When building, only compile coffeescript if needed.
Also doesn't copy coffeescript files to bundle.
2012-10-15 11:49:19 -07:00
Corey Johnson
fbe9a8b671 Fail Xcode build if any coffeescript file fails to compile 2012-10-15 09:01:26 -07:00
Corey Johnson
49d270d4ec Taking the the gyp formula out of the formula directory
I'm a shallow directory fan, when we have more than one formula I'd be done with adding it back.
2012-10-12 09:25:51 -07:00
Kevin Sawicki
82af5e826c Use specific gyp revision 2012-10-09 12:06:27 -07:00
Kevin Sawicki
304d4f741e Exit unless brew exists 2012-10-09 11:51:28 -07:00
Kevin Sawicki
aa5b68e9a9 Install gyp via custom formula 2012-10-09 11:47:07 -07:00
Corey Johnson
e9e0e24ce3 make cibuild work on updated build machine 2012-09-27 11:38:15 -07:00
Corey Johnson
646d9778e5 npm, not np 2012-09-21 13:30:55 -07:00
Corey Johnson
27dbf5798b No longer being clever when compiling coffeescript 2012-09-20 15:48:18 -07:00
Corey Johnson
ece908a10a Make paths with spaces work with coffee compiler 2012-09-20 13:28:33 -07:00
Corey Johnson
981a6dff81 script/bootstrap verifies that Xcode and npm are installed 2012-09-19 17:42:36 -07:00
Corey Johnson
f624d2277e Compiling coffeescript is slow, so only compile the .coffee files if they are newer than the .js files
If a coffeescript file is deleted, this will not remove that file from the bundle. This is the source of a future bug that I'm hoping to avoid.
2012-09-19 16:08:26 -07:00
Corey Johnson
cb48ad9019 Add update-cef script 2012-09-18 15:00:03 -07:00
Corey Johnson
61c8068171 Add The Setup's env when Xcode copy files to bundle. 2012-09-17 15:35:55 -07:00
John Barnette
7fbb7b70e8 Stub script/bootstrap
Consistency is awesome. This should probably check for Xcode proper at
some point too.
2012-09-13 11:29:54 -07:00
Corey Johnson & Nathan Sobo
27d2d14414 Carry CEF1 directories over to CEF3 2012-08-31 10:43:21 -07:00
Nathan Sobo
c2c8724ad0 Initial commit 2012-08-10 13:32:19 -06:00
Corey Johnson
aed346cfcf Fail if the benchmarks fail 2012-05-15 17:00:54 -07:00
Corey Johnson
8cbd81b7ac don't fail build if benchmark fails 2012-05-15 10:22:47 -07:00
Corey Johnson & Nathan Sobo
7fd614fe2f updated ssh key 2012-05-03 09:19:07 -07:00
Corey Johnson
2332592a78 Benchmark after cibuild succeeds 2012-03-15 17:47:51 -07:00
Corey Johnson
f5cc7fceb9 Get rid of newline in cibuild's sha var 2012-03-14 16:13:42 -07:00
Corey Johnson
709de13138 Add key for cibuild 2012-03-14 16:09:31 -07:00
Corey Johnson
eceb5aec33 Set permissions for cibuild 2012-03-14 12:17:25 -07:00
Corey Johnson
8a0a1f0e66 Add Janky build script 2012-03-14 12:15:05 -07:00
Chris Wanstrath
409a77c485 gigantic ass reorg. let me know if this breaks. 2011-08-27 03:55:56 -07:00
Chris Wanstrath
d76e40ad02 HTML/lib/ 2011-08-23 20:54:03 -07:00
Corey Johnson
bae0ab2e6b loading frames with their own JSCocoa OSX objects 2011-08-23 17:49:51 -07:00
Corey Johnson
3d8545bbb0 just keep all the compile/mv stuff in one script 2011-08-23 16:20:12 -07:00
Corey Johnson
89390b3015 took the HTML dir out of xcode. Everything in HTML will be copied to the bundle on build. Directory structure REMAINS INTACT! 2011-08-23 14:44:20 -07:00
Corey Johnson
5156f22f1d Check for coffee AFTER the path is alerted 2011-08-19 11:56:41 -07:00
Corey Johnson
403b026bf6 displays error when coffee-script is not installed 2011-08-19 09:48:08 -07:00
Chris Wanstrath
8bf12cdcc6 install build into /Applications 2011-08-19 02:45:45 -07:00
Chris Wanstrath
9067cff57c now it compiles. booyah. 2011-08-19 00:49:28 -07:00