Kevin Sawicki
d745b9ef5f
Register module cache as early as possible
2014-10-15 13:09:45 -07:00
Kevin Sawicki
b9d89cbf5d
Inline valid extensions to check for
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
06ac206707
Add clipboard to cache
2014-10-15 13:09:44 -07:00
Kevin Sawicki
6e1bdbbed7
Verify that file path is absolute or relative
2014-10-15 13:09:44 -07:00
Kevin Sawicki
3e3de50eb3
💄
2014-10-15 13:09:44 -07:00
Kevin Sawicki
d7a8dfb209
Add Atom Shell builtins to cache
2014-10-15 13:09:44 -07:00
Kevin Sawicki
b0aea54544
Check cache before atom require short-circuit
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
f495db41e7
getCachedModulePath -> resolveModulePath
2014-10-15 13:09:44 -07:00
Kevin Sawicki
76187f176c
Add core cache of pre-resolved paths
...
This reduces the number of calls to Module._findPath for
relative paths since they can be resolved without stating
2014-10-15 13:09:44 -07:00
Kevin Sawicki
d7cb1550bf
Remove semicolon
2014-10-15 13:09:44 -07:00
Kevin Sawicki
086be13ac4
Add Module._findPath debug timing and count
2014-10-15 13:09:44 -07:00
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