Commit Graph

18957 Commits

Author SHA1 Message Date
Kevin Sawicki
f0cffcbd84 Add addPathToCache helper for apm to warm using 2014-10-15 13:09:44 -07:00
Kevin Sawicki
d1f3d7d51e Mention plain return 2014-10-15 13:09:43 -07:00
Kevin Sawicki
bdc0341eb3 undefined -> return 2014-10-15 13:09:43 -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
7926531330 Whitelist folders path from core
There are several folders bundled in the app that aren't needed in the
require cache list so it is simpler to opt-in the folders that should
be part of the cache.
2014-10-15 13:09:43 -07:00
Kevin Sawicki
440866d79e Remove invalid range logging 2014-10-15 13:09:43 -07:00
Kevin Sawicki
d9c758b940 Remove no main module logging 2014-10-15 13:09:43 -07:00
Kevin Sawicki
827a8ba107 First dependency version added wins 2014-10-15 13:09:43 -07:00
Kevin Sawicki
65a1fafaf7 Ensure CoffeeScript is registered when caching
This ensures folders with .coffee files are includes in the
folders array
2014-10-15 13:09:43 -07:00
Kevin Sawicki
9bd6891ac2 Use realpath so path.relative works right 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
472a48092d Export cache for debugging purposes 2014-10-15 13:09:42 -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
Kevin Sawicki
87d2026e63 Generate module cache during build 2014-10-15 13:09:42 -07:00
Kevin Sawicki
20f6489232 Disable debug mode 2014-10-15 13:09:42 -07:00
Kevin Sawicki
2c737b8927 Move debug property into cache object 2014-10-15 13:09:42 -07:00
Kevin Sawicki
0df5045edb Move registered property into cache object 2014-10-15 13:09:42 -07:00
Kevin Sawicki
b91c25186f Use hasOwnProperty 2014-10-15 13:09:42 -07:00
Kevin Sawicki
7b8a293f30 Inline path to listSync call 2014-10-15 13:09:42 -07:00
Kevin Sawicki
26df31aa1f 💄 Group exported methods 2014-10-15 13:09:42 -07:00
Kevin Sawicki
36ff22e30a generateDependencies -> create 2014-10-15 13:09:42 -07:00
Kevin Sawicki
93c5b4be7b Generate cache for bundled packages 2014-10-15 13:09:42 -07:00
Kevin Sawicki
495fa43753 Allow passing in metadata to ModuleCache.add 2014-10-15 13:09:41 -07:00
Kevin Sawicki
2954aacb1c Ignore invalid ranges
They cannot be cache since multiple commits/branches may
map to the same version number which would lead to
unpredictable results.
2014-10-15 13:09:41 -07:00
Kevin Sawicki
1bf8f516c3 Cache parsed ranges 2014-10-15 13:09:41 -07:00
Kevin Sawicki
e0a84232c3 💄 2014-10-15 13:09:41 -07:00
Kevin Sawicki
8c204bb60e Restore cache 2014-10-15 13:09:41 -07:00
Kevin Sawicki
245c77869f Add require time and load count tracking 2014-10-15 13:09:41 -07:00
Kevin Sawicki
508a30efb1 Return when package.json can't be required 2014-10-15 13:09:41 -07:00
Kevin Sawicki
5ad54bbe92 Wire up cache to Module._resolveFilename 2014-10-15 13:09:41 -07:00
Kevin Sawicki
4da6513fb5 Add initial cache of resource path module 2014-10-15 13:09:41 -07:00
Kevin Sawicki
1154490a97 Store main path of module
This is the key in Module._cache
2014-10-15 13:09:41 -07:00
Kevin Sawicki
0e7e24ca6b relative -> relativePath 2014-10-15 13:09:40 -07:00
Kevin Sawicki
944ac14be7 Make dependencies an array of objects 2014-10-15 13:09:40 -07:00
Kevin Sawicki
7aa28920cf Use fs.listSync 2014-10-15 13:09:40 -07:00
Kevin Sawicki
6ce6553456 Add initial task to generate dependencies 2014-10-15 13:09:40 -07:00
Kevin Sawicki
b4470a14cb Explicitly register cache 2014-10-15 13:09:40 -07:00
Kevin Sawicki
5b629e6b29 💄 2014-10-15 13:09:40 -07:00
Kevin Sawicki
7304b97547 Parse resource path for relativizing cache paths 2014-10-15 13:09:40 -07:00
Kevin Sawicki
f523c5eb73 Do hasOwnProperty check first 2014-10-15 13:09:40 -07:00
Kevin Sawicki
5981cfb8c9 Ignore native modules since they are already cached 2014-10-15 13:09:40 -07:00
Kevin Sawicki
d1e966349f Add initial cache lookup method 2014-10-15 13:09:40 -07:00
Kevin Sawicki
dc19fa4baa 📝 Add a couple notes 2014-10-15 13:09:40 -07:00
Kevin Sawicki
84e90d140f Wire initial module cache 2014-10-15 13:09:40 -07:00
Kevin Sawicki
ea557ab109 Prepare 0.138 2014-10-15 13:07:58 -07:00
Kevin Sawicki
bfbc0b1c46 Upgrade to settings-view@0.152 v0.137.0 2014-10-15 11:28:37 -07:00
Paul Betts
d3b9a14f98 Merge pull request #3836 from atom/dont-fail-if-no-deltas
Don't fail create-installer if ATOM_ACCESS_TOKEN isn't set
2014-10-15 11:08:00 -07:00
Paul Betts
85ca8350e5 Twerk error message 2014-10-15 11:04:32 -07:00