62 Commits

Author SHA1 Message Date
Ivan Žužak
683949b75d Increase timeout for starting a profile after opening devtools 2015-10-21 12:06:32 +02:00
Antonio Scandurra
82fbec0879 🐛 Give priority to initial window background
Otherwise, since we now add styles element right during AtomEnvironment
construction, the default background gets showed (i.e. white on my machine).

/cc: @nathansobo
2015-10-15 11:05:16 +02:00
Nathan Sobo
e886d8b253 Rename “bootstrap” scripts
They’re just window initialization scripts, and this new naming makes
that a lot clearer.
2015-10-07 15:24:50 -05:00
Nathan Sobo
3fc9ab8ffa Remove unused function 2015-09-22 10:37:09 -06:00
Nathan Sobo
68fe7026a8 Disable deprecated APIs in specs 2015-09-22 10:37:07 -06:00
Max Brunsfeld
a4b9b9c6cd 👕 Use standard style for js code 2015-08-21 16:56:32 -07:00
Max Brunsfeld
b533aff8f4 🐎 Minimize dependencies loaded before the module-cache 2015-08-21 13:48:56 -07:00
Max Brunsfeld
49e37f5410 Use source-map-support to handle stack trace conversion
Previously, our Error.convertStackTrace function was provided by coffeestack,
which only works for coffee-script. This adds a dependency on 'source-map-support',
which works for any source file with inline source maps.

This also refactors the code for registering our compilers (coffee-script,
typescript, and babel) so that caching logic is shared.
2015-08-19 17:55:29 -07:00
Kevin Sawicki
993d702ce9 Include deprecated APIs when running core specs 2015-06-24 16:51:48 -04:00
Kevin Sawicki
85a4ae7fea Remove --include-deprecated-apis command line option 2015-06-24 16:51:48 -04:00
Kevin Sawicki
37939f6c76 Log deprecated-packages require error 2015-06-03 16:12:48 -07:00
Kevin Sawicki
c9eb9d71cc Setup deprecated packages in dev mode 2015-06-03 16:11:16 -07:00
Kevin Sawicki
bf37a66831 Rename --one to --include-deprecated-apis 2015-06-02 16:36:20 -07:00
Kevin Sawicki
c4d7df9e99 Prevent global variables from leaking out of index.js 2015-05-14 09:54:35 -07:00
Kevin Sawicki
9f2faa086b Add back raw load settings logging 2015-05-13 10:11:46 -07:00
Kevin Sawicki
f2c50bfd9e Remove unneeded loadSettings validation 2015-05-13 10:00:54 -07:00
Kevin Sawicki
f989981d19 Extract getCacheDirectory helper 2015-05-13 09:50:11 -07:00
Kevin Sawicki
fff546a1e5 Don't set background of spec windows 2015-05-13 09:47:10 -07:00
Kevin Sawicki
a0abd9ebe4 🎨 2015-05-13 09:37:13 -07:00
Kevin Sawicki
ded2438700 Add ; to inline style 2015-05-13 09:37:13 -07:00
Kevin Sawicki
943df49300 Read/write window background in local storage 2015-05-13 09:37:13 -07:00
Kevin Sawicki
df2b0664a1 Catch errors setting load time 2015-04-28 17:43:16 -07:00
Kevin Sawicki
0d9d9e1056 Track load time when profiling startup 2015-04-28 17:42:46 -07:00
Kevin Sawicki
313c8a73ce Only pen dev tools when not already open 2015-04-28 09:04:52 -07:00
Kevin Sawicki
b5839a8960 Add created to profile message 2015-04-28 09:04:52 -07:00
Kevin Sawicki
3cc99d5662 Handle profile startup option on load 2015-04-28 09:04:52 -07:00
Michael Bolin
d2cd05ebdc Add a handler for an unhandledRejection. 2015-04-23 11:59:17 -07:00
Kevin Sawicki
7d592c8b78 includeDeprecations -> includeDeprecatedAPIs 2015-04-03 11:29:16 -07:00
Kevin Sawicki
5a7d746eae Conditionally include deprecations in Atom 2015-04-03 11:27:59 -07:00
basarat
722089be45 feat(typescript) initial commit of built in typescript support 2015-03-08 15:35:27 +11:00
Max Brunsfeld
9bb4968e6f Store load settings in URL fragment, not query string 2015-03-04 16:03:00 -08:00
Kevin Sawicki
caff9e0866 Merge pull request #5579 from sebmck/babel
Rename 6to5 to Babel
2015-02-20 15:04:26 -08:00
Sebastian McKenzie
52506a0df2 Rename 6to5 to Babel 2015-02-18 12:23:58 +11:00
Kevin Sawicki
983027b27f 🐎 inline vm compatibility patch 2015-02-17 16:50:03 -08:00
Kevin Sawicki
718886a077 Pass in full path to root cache dir 2015-02-12 14:22:46 -08:00
Kevin Sawicki
445eee42db 🎨 2015-02-12 14:22:45 -08:00
Kevin Sawicki
fcced492d4 Break out helper methods in index.js 2015-02-12 14:22:45 -08:00
Kevin Sawicki
efd8f160da Add helper to warm caches on apm install 2015-02-12 14:22:45 -08:00
Kevin Sawicki
68926d1319 🎨 Comment each cache setup 2015-02-12 14:22:45 -08:00
Kevin Sawicki
d6212cfc79 Start caching source maps 2015-02-12 14:22:45 -08:00
Kevin Sawicki
0738d456b5 Use coffee-cash module 2015-02-12 14:22:44 -08:00
Kevin Sawicki
77741b6f3f Set ATOM_HOME as early as possible in render process
Moves it from window-bootstrap.coffee to index.js so it runs before
the coffee cache is registered.

Refs #5412
2015-02-05 12:18:51 -08:00
Michael Bolin
52f2c0ec69 rename esnext to 6to5 2015-01-29 17:29:02 -08:00
Michael Bolin
242fce3d79 Transpile all .js files with 6to5.
In the spirit of supporting JavaScript development for Atom packages,
this adds default support for es.next transpilation support in the way
that Atom already has default support for CoffeeScript transpilation.
There are many new features in ES6+ that make JavaScript development
easier and more enjoyable, particularly in terms of support for async code.

For reference, this was a much faster way to iterate on this than running `./script/build`
each time:

```
cp /Users/mbolin/src/atom/static/index.js /Applications/Atom.app/Contents/Resources/app/static/index.js
coffee --output /Applications/Atom.app/Contents/Resources/app/src --compile /Users/mbolin/src/atom/src/esnext.coffee
```

Run the following in the console to see how warm the cache was after startup:

```
global.require('../src/esnext/').getCacheHits()
global.require('../src/esnext/').getCacheMisses()
```
2015-01-29 11:56:32 -08:00
Kevin Sawicki
a9d215970f Remove fs patches that are now fixed in Atom Shell 2015-01-21 10:39:08 -08:00
Kevin Sawicki
ae2ce9a1f9 Log raw load settings when parsing fails 2015-01-13 12:06:08 -08:00
Kevin Sawicki
7b4a9aa2e4 Patch statSyncNoException to handle non-string args
Non-string values were being coerced to strings which can cause
unexpected results.

Refs atom/atom-shell#843
Closes #4247
2014-11-20 11:15:10 -08:00
Kevin Sawicki
b8285a00b0 Require path after setting start time 2014-10-30 10:49:08 -07:00
Kevin Sawicki
025967193a Add path require to top 2014-10-30 10:48:51 -07:00
Kevin Sawicki
75627f50a2 Normalize process.resourcesPath on load
This ensures the drive letter is consistent on Windows for when
package paths are compared to the resources path to determine
whether to use the metadata cache for a bundled package.

Closes #3932
2014-10-30 10:31:37 -07:00