Antonio Scandurra
de47a26c5d
WIP: Start preloading packages
2017-03-28 10:22:29 +02:00
Antonio Scandurra
e9c13a92ed
Extract a loadAvailablePackage method and avoid doing work twice
...
This will reuse the information that comes from `getAvailablePackages`,
thus avoiding to resolve, for example, a package path twice.
`PackageManager.loadPackage` will still be supported for backward
compatibility, but it will use `loadAvailablePackage` under the hood.
2017-03-28 10:22:29 +02:00
Antonio Scandurra
2ce66a724c
Ensure packagesCache exists before accessing it
2017-03-20 17:23:06 +01:00
Antonio Scandurra
e2637aac78
🎨
2017-03-20 10:20:36 +01:00
Antonio Scandurra
a1da6c9196
Resolve style sheets paths during script/build for bundled packages
2017-03-14 14:27:10 +01:00
Antonio Scandurra
19d07172a7
Don't transform deprecated selectors for bundled packages
2017-03-09 16:15:54 +01:00
Antonio Scandurra
dcd9c48f63
Use CompileCache supportedExtensions instead of require.extensions
2017-02-28 19:01:21 +01:00
Antonio Scandurra
e453b04105
Put back code that was commented out
2017-02-27 16:45:57 +01:00
Antonio Scandurra
681f0f9fe1
Make Atom work also without a snapshot
2017-02-27 14:47:20 +01:00
Antonio Scandurra
ea879340c0
WIP
2017-02-24 16:36:16 +01:00
Max Brunsfeld
a57b627a58
Re-throw package activation exceptions in test mode
2017-01-18 10:19:25 -07:00
Antonio Scandurra
756e6e4641
Activate packages immediately if hook had already been triggered
2016-12-02 12:56:51 +01:00
Matthew Dapena-Tretter
25518b9c8e
Add initialize() hook to packages
2016-11-30 14:27:29 -08:00
Michelle Tilley
94f603e50a
Pass package info to transpilers
2016-11-01 10:54:26 -07:00
Michelle Tilley
2d3afb431c
Include package name as part of cache key
2016-10-31 23:21:13 -07:00
Michelle Tilley
b111941022
Implement glob checking and multiple transpilers
2016-10-29 15:18:34 -07:00
Michelle Tilley
ad448184b4
First pass at per-package transpilation
2016-10-29 14:30:24 -07:00
Indrek Ardel
55f3311c01
Remove unused variables
2016-09-26 20:52:13 +03:00
Max Brunsfeld
db781dd54f
Disallow duplicate keys when loading package keymaps
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-09-22 14:21:36 -07:00
Max Brunsfeld
4fa24a05da
Fix invalid usage of activation disposable in Package::load
...
Like deserializers and config schema, directory providers are added
at package load time, and *not* removed when the package is deactivated
2016-09-15 16:34:39 -07:00
Max Brunsfeld
3aaa738944
Activate atom.directory-provider services before deserialization
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-09-14 13:26:03 -07:00
Max Brunsfeld
5d24bcf19e
Merge pull request #12237 from zertosh/cleanup-activation-hook-subscrtiptions
...
Cleanup activationHookSubscriptions when deactivating package
2016-08-09 17:08:49 -07:00
Max Brunsfeld
9a72c7e65e
Fix exception when package requires an incompatible native module
2016-08-02 12:14:00 -07:00
Andres Suarez
d7378f0d6a
Cleanup activationHookSubscriptions when deactivating package
...
Released under CC0.
2016-07-25 22:45:43 -07:00
Yuya Tanaka
b66d1acb02
🐎 Skip require from settings view if configSchema
2016-07-25 07:51:11 +09:00
Lee Dohm
9f6f903592
Add enhanced wording @thomasjo recommended
2016-07-12 15:31:49 -07:00
Glavin Wiechert
4986a64815
Improve incompatible native module error message
...
Close #6771
2016-07-04 09:46:09 -03:00
Max Brunsfeld
e8693f45c9
Move lazy main module require out of loop
2016-02-10 17:40:55 -08:00
Max Brunsfeld
9c0aa629d7
Let packages define deserializers & view providers as main module methods
2016-02-10 14:28:57 -08:00
Max Brunsfeld
dc903fa124
Require package's main module in legacy activateConfig method
2016-01-25 12:42:12 -08:00
Max Brunsfeld
aecc2598f9
Restore private activateConfig method to fix settings-view
2015-11-24 15:14:39 -08:00
Max Brunsfeld
f35dddee2f
Reregister config schema when package is reactivated
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-11-23 18:01:26 -08:00
Max Brunsfeld
327cf6997b
Remember which packages use atom APIs at main module load time
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-11-23 17:35:38 -08:00
Max Brunsfeld
24938c0361
Defer loading view providers until activation or deserializer use
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-11-23 16:28:08 -08:00
Max Brunsfeld
d6e5ea8564
Defer requiring packages' main modules if they use new package.json fields
2015-11-23 16:05:32 -08:00
Max Brunsfeld
5f1947ef1f
Guard for undefined package.json fields
2015-11-23 15:53:27 -08:00
Max Brunsfeld
2d29fd6e79
Load config schemas from packages' package.json files
2015-11-23 15:53:26 -08:00
Max Brunsfeld
cb2b068d77
Load view providers from files specified in package.json
2015-11-19 16:58:20 -08:00
Max Brunsfeld
a0a402c3f8
Remove 'atom' prefix from deserializers package.json key
2015-11-19 14:12:03 -08:00
Max Brunsfeld
46272cd192
Load deserializers lazily
2015-11-18 14:31:16 -08:00
Max Brunsfeld
ade1ef7a4c
Load deserializers from files specified in package.json
2015-11-18 14:03:49 -08:00
Wliu
1bb944dadc
Add specs
2015-11-04 16:22:01 -05:00
Wliu
5f8b2b643b
Include package name metadata when creating errors
2015-11-04 16:00:57 -05:00
Max Brunsfeld
74c0836be5
🔥 Duplicate devMode/inDevMode parameter to Package, PackageManager
2015-10-09 17:34:22 -07:00
Max Brunsfeld
75463829f9
Pass inDevMode to package-manager as a boolean value
...
Rather than as a bound function
2015-10-09 17:26:19 -07:00
Antonio Scandurra
ff86eb6a59
Don't use atom.config global in ScopedProperties
2015-10-07 15:25:05 -05:00
Antonio Scandurra
4108939201
Don't use atom.{themes,menu,contextMenu} global in Package
2015-10-07 15:25:05 -05:00
Antonio Scandurra
7b25af5ad4
Remove more globals from Package
...
🔥 atom.{notifications,keymaps,commands,grammars,inDevMode}
2015-10-07 15:25:05 -05:00
Antonio Scandurra
c192004b06
Don't use atom.{config,styles} global in Package
2015-10-07 15:25:05 -05:00
Nathan Sobo
b649cb48ef
Move static Package methods to PackageManager instance
2015-10-07 15:24:54 -05:00