Commit Graph

175 Commits

Author SHA1 Message Date
Ben Ogle
13cc97e44f Reorganize PackageManager into sections 2014-09-16 17:05:23 -07:00
Ben Ogle
f8b17b6b3c Add Returns line to all the event subscription methods 2014-09-10 17:07:21 -07:00
Ben Ogle
6a0a842de4 Update section comments 2014-09-10 11:52:57 -07:00
Ben Ogle
2e219f288d Add sections for docs clarity 2014-09-09 15:55:47 -07:00
Ben Ogle
55b5debd7f Add PackageManager::onDidLoadAll 2014-09-09 15:04:13 -07:00
Ben Ogle
229277f764 Add PackageManager::onDidActivateAll() 2014-09-09 15:03:45 -07:00
Kevin Sawicki
f6545d4002 Check if name matches before resolving path
Path resolution hits the filesystem so check for a name
match first.
2014-09-08 17:27:34 -07:00
Kevin Sawicki
59bf16fed3 📝 Convert PackageManager docs 2014-08-25 15:08:45 -07:00
Kevin Sawicki
3eadc61a3b 💄 Use trailing if 2014-05-15 10:48:02 -07:00
Brad Gearon
e945b83318 remove os require use process.platform instead 2014-05-08 12:38:35 -05:00
Brad Gearon
d99c9edc43 append .cmd to apm in package-manager.coffee if platform is win32
avoids NOENT error when searching for packages
2014-05-07 18:35:05 -05:00
Kevin Sawicki
4f4da78e54 Add --safe argument
This will launch Atom in "safe" mode where packages from ~/.atom
will not be loaded automatically or be resolveable by name.
2014-05-01 15:20:22 -07:00
Kevin Sawicki
f1b0390b9b Remove apm from node_modules 2014-03-04 17:26:52 -08:00
Kevin Sawicki
d8e314b0a0 Upgrade apm to include bundled node 2014-03-03 12:43:01 -08:00
Kevin Sawicki
366684f3d7 Add missing ThemePackage require 2014-02-17 13:23:21 -08:00
Kevin Sawicki
5f9549e279 Default metadata to empty hash 2014-02-17 13:16:00 -08:00
Kevin Sawicki
fb60a3189a Call load on package 2014-02-17 13:10:19 -08:00
Kevin Sawicki
3f8d9a4c47 Combine AtomPackage and Package 2014-02-17 12:59:03 -08:00
probablycorey
2a2858554a Remove synchronous package loading shims 2014-02-10 15:52:34 -08:00
probablycorey
e6d7413af1 Always call deactivate on loaded packages 2014-02-10 11:24:02 -08:00
Kevin Sawicki
31a154d7eb Use subscription to track if disabled packages are observed 2014-02-10 09:17:15 -08:00
Kevin Sawicki
1a81248c88 💄 Remove extra space 2014-02-07 17:14:24 -08:00
probablycorey
8d40e4df10 Merge remote-tracking branch 'origin/master' into cj-make-package-activation-consistent
Conflicts:
	package.json
	src/package-manager.coffee
	src/text-mate-package.coffee
2014-02-07 16:53:24 -08:00
probablycorey
00f30eaf6c Make immediate package loading work 2014-02-07 15:50:48 -08:00
probablycorey
9a51c24937 Make AtomPackage:activate return a promise that is fulfilled when the
package is activated.
2014-02-07 11:21:42 -08:00
Kevin Sawicki
1e69ede779 📝 doc parameters in package-manager.coffee 2014-02-06 16:52:22 -08:00
Kevin Sawicki
967db1f7b8 Remove more empty Private: comment blocks 2014-02-06 11:21:03 -08:00
probablycorey
972fa41528 Package loading is always synchronous, activation can be async 2014-02-06 11:15:34 -08:00
Kevin Sawicki
932a792289 Remove Private: prefix 2014-02-06 10:02:53 -08:00
Kevin Sawicki
ece269f158 📝 Consistently mention what classes have global instances 2014-02-04 10:06:37 -08:00
Kevin Sawicki
4f6c655294 Remove grunt-download-atom-shell as package dependency 2014-01-03 08:32:23 -08:00
Kevin Sawicki
cef7577826 Install apm into node_modules
settings-views launches apm via a NodeBufferedProcess so it still needs to
be available built against Atom's headers.

The version in apm/ is just for running via the CLI directly and is compiled
against node's headers.
2013-12-17 19:25:44 -08:00
Kevin Sawicki
ed8800d182 Install apm to apm/ from vendor/apm 2013-12-17 16:53:31 -08:00
Cheng Zhao
99d6955644 Ignore grunt-download-atom-shell when loading packages. 2013-12-03 22:04:21 +08:00
Kevin Sawicki
7fa4121227 📝 Mark PackageManager constructor as private 2013-11-22 15:19:23 -08:00
Kevin Sawicki
78b48345ac Update reference to renamed param 2013-11-22 11:52:21 -08:00
Kevin Sawicki
33eb0bae8f 📝 Add docs to all public methods 2013-11-22 11:37:29 -08:00
Kevin Sawicki
fde1560377 📝 doc PackageManager as public 2013-11-22 10:59:43 -08:00
Kevin Sawicki
89d8eac091 Remove console.log statement 2013-11-18 16:09:25 -08:00
Kevin Sawicki
a66543048b Include buffer in emitted events 2013-11-18 10:06:14 -08:00
Kevin Sawicki
8f63e40ba0 Default packageDependencies outside of try block 2013-11-11 13:05:45 -08:00
Kevin Sawicki
6c09a42545 Call getPackageDependencies from getAvailablePackagePaths 2013-11-11 13:04:04 -08:00
Kevin Sawicki
c8aeb8ec2d Add PackageManager::isBundledPackage 2013-11-11 12:01:44 -08:00
Kevin Sawicki
0d75bcae48 Add PackageManager::getPackageDirPaths 2013-11-11 11:53:25 -08:00
Kevin Sawicki
a377a49004 Use atom.config instead of window.config 2013-11-11 09:16:44 -08:00
Kevin Sawicki
9c79e39401 Upgrade to fs-plus@0.4.0 2013-11-01 08:46:03 -07:00
Kevin Sawicki
ebb7a2637a Upgrade to fs-plus@0.3.0 2013-11-01 08:46:03 -07:00
Kevin Sawicki
83dcf79bcf Use fs-plus 2013-11-01 08:46:02 -07:00
Kevin Sawicki
059671c454 🐎 Load packages by path
Previously the package paths were converted to names and then
re-resolved to paths.

Now we just load the paths directly reducing the number of stat calls
and saving ~50ms in PackageManager::loadPackages

Also now internal packages are loaded by parsing the package.json
file for packageDependencies instead of loading the metadata for all
packages in node_modules and checking the engines field.
2013-10-29 13:31:42 -07:00
Kevin Sawicki
bdd4ac63f4 Watch themes after activation instead of loading 2013-10-29 13:31:41 -07:00