Commit Graph

49 Commits

Author SHA1 Message Date
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
Kevin Sawicki
0c590d6170 Load CoffeeScript when using a custom resource path
Load CoffeeScript early whenever the resource path a subdirectory
from process.resourcesPath

Close #3993
2014-10-29 10:21:23 -07:00
Kevin Sawicki
6a6c7b1852 Calculate load time in index.js
Do it previously in window-bootstrap caused several things to not be
included such as requiring coffee script and atom shell modules.

Now it is a much more accurate representation of on load time.
2014-10-15 13:09:46 -07:00
Kevin Sawicki
289f17b119 Require coffee before module cache in dev mode 2014-10-15 13:09:46 -07:00
Kevin Sawicki
d745b9ef5f Register module cache as early as possible 2014-10-15 13:09:45 -07:00
Kevin Sawicki
934c0720d8 Require ipc when needed 2014-10-15 13:09:44 -07:00
Kevin Sawicki
41598af2b2 Add pre-resolved path to require('atom') 2014-10-15 13:09:44 -07:00
Kevin Sawicki
171411823f 🐎 Resolve uncached core dependencies
Trust modules under the resource path to be there without stat-ing and
verifying.
2014-10-15 13:09:43 -07:00
Kevin Sawicki
8a0755340f Remove extra ) 2014-10-15 13:09:43 -07:00
Kevin Sawicki
bdebe575b7 💄 Use regular require paths 2014-10-15 13:09:43 -07:00
Kevin Sawicki
d877872c71 Use right require path 2014-10-15 13:09:42 -07:00
Kevin Sawicki
0a297d7642 Load module cache in index.js 2014-10-15 13:09:42 -07:00
Patrick Toomey
2e3aec81e7 initial attempt at CSP policy to see what breaks 2014-03-05 09:03:27 -06:00