Commit Graph

126 Commits

Author SHA1 Message Date
Dave Rael
f92188fc27 Remove unused inclusion of fs 2015-11-03 14:10:55 -08:00
Dave Rael
5d5d83d474 Remove duplication of locating Atom Home 2015-11-03 14:10:37 -08:00
Kevin Sawicki
de7cf162f9 Merge pull request #8442 from atom/portable-mode
Enable Portable Mode
2015-11-03 12:49:54 -08:00
Antonio Scandurra
6290822067 Export a function in windowInitializationScript
...so that we can pass BlobStore to AtomEnvironment
2015-11-03 09:51:08 +01:00
Antonio Scandurra
e1087acf9e Save BlobStore only when unloading editor window 2015-11-02 19:49:14 +01:00
Antonio Scandurra
a8b5bb243f Save BlobStore only in the first window 2015-11-02 10:53:04 +01:00
Antonio Scandurra
27a6f36738 Remove references to cache 2015-10-30 18:49:06 +01:00
Antonio Scandurra
abcfc8579b Rename to FileSystemBlobStore 2015-10-30 18:42:38 +01:00
Antonio Scandurra
72639e5393 🎨 Satisfy linter requirements 2015-10-30 11:36:58 +01:00
Antonio Scandurra
71b6871d3b 🐎 Make IO faster for v8 compile cache 2015-10-30 10:14:14 +01:00
Antonio Scandurra
c684273ecf Introduce NativeCompileCache 2015-10-30 10:14:14 +01:00
Ivan Žužak
683949b75d Increase timeout for starting a profile after opening devtools 2015-10-21 12:06:32 +02:00
Dave Rael
e0697ecc7f Merge branch 'master' into portable-mode
Conflicts:
	src/atom-environment.coffee
2015-10-20 20:58:14 -06:00
Dave Rael
82f5e81cec Restore check on ATOM_HOME
(undo db57479bf9)
Check on ATOM_HOME is not superfluous - needed on Linux because of
difference in inheriting environment variables between browser and render
processes
2015-10-16 04:24:57 -06: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
Dave Rael
db57479bf9 Remove superfluous check on ATOM_HOME
always set at the process level, so always set here
2015-10-09 11:21:41 -06: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
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