Commit Graph

70 Commits

Author SHA1 Message Date
André Cruz
41b246903f Add some getter for inner parts of the architecture. 2013-07-21 16:33:25 +01:00
André Cruz
4148e0c7a9 Typo. 2013-07-21 15:00:27 +01:00
André Cruz
1f2d8d6340 Add optional param to getJson. 2013-07-21 14:41:09 +01:00
André Cruz
3b8d00095e Fix accessing options. 2013-07-20 22:07:23 +01:00
André Cruz
0cf8af00b3 Separate logger into its own module. 2013-07-20 20:37:05 +01:00
André Cruz
8e51d1eaf3 Add force-latest option, closes #629. 2013-07-18 18:34:04 +01:00
André Cruz
06bffb9cee Add new line when saving json. 2013-07-16 13:39:43 +01:00
André Cruz
761c947e25 Add isTargetable to prevent UrlResolver and FsResolver from being converted to semver when installing, #619. 2013-07-16 09:21:02 +01:00
André Cruz
ec33766803 Switch endpoint parser to its own module. 2013-07-16 09:17:50 +01:00
André Cruz
3b8b52d222 Do not restore extraneous devDependencies, minor fix to restore tree. 2013-07-14 16:13:25 +01:00
André Cruz
d1001aea1a Use bower-json throughout the code. 2013-07-12 16:22:10 +01:00
André Cruz
a786fa534a Refactor md5 to its own function. 2013-07-12 15:34:05 +01:00
André Cruz
2a0831ab5a Simplify some compatible detection logic. 2013-07-12 15:33:43 +01:00
André Cruz
c6b61b0838 Fix incompatible being set on non-semver versions. 2013-07-12 15:21:51 +01:00
André Cruz
a7b2fe14b9 Fix some minor issues with * endpoints and prevent some semver errors due to module upgrade. 2013-07-06 10:29:50 +01:00
André Cruz
d8cef76592 Added prune command, closes #463. 2013-07-05 01:20:28 +01:00
André Cruz
ca76d41f9a Report progress for remote git resolvers that take too long to clone. 2013-07-04 23:58:35 +01:00
André Cruz
ce06b2cb18 Fix accessing prop if undefined. 2013-07-03 16:25:04 +01:00
André Cruz
7becb19da4 Implement check of newer versions in the list command.
Also:
- Fix some errors not being emitted when a command failed.
- Update semver module; no need to check .valid against null.
2013-07-03 14:37:28 +01:00
André Cruz
fe1a635c14 Switch to graceful-fs. 2013-07-01 20:31:28 +01:00
André Cruz
a82f392cac Fix uninstall always giving conflict, even if the only dependant is the root package. 2013-06-27 23:41:50 +01:00
André Cruz
15d308864c Fixed --save and --save-dev on named endpoints. 2013-06-25 23:08:47 +01:00
André Cruz
9af3a0d725 Read only dependencies of deep dependencies (not dev dependencies). 2013-06-25 22:43:50 +01:00
André Cruz
c32ef61d3a Fix dev dependencies not being fetched. 2013-06-25 22:25:22 +01:00
André Cruz
6020d06038 Move root flag to a more appropriate place. 2013-06-25 21:19:46 +01:00
André Cruz
b2b1b1cb47 Do not throw err if components folder do not exist. 2013-06-25 21:08:41 +01:00
André Cruz
0361436a66 Fix extraneous packages not containing the linked flag even if they are linked. 2013-06-25 00:22:25 +01:00
André Cruz
f9f8f7aebd Implement link command.
Also:
- CS fixes
- Remove options argument from commands that do not have them
- Use console.trace instead of err.stack (more reliable)
2013-06-24 23:19:59 +01:00
André Cruz
97edd21784 Add lookup command, minor tweaks to the info command. 2013-06-23 14:58:54 +01:00
André Cruz
4c3802878a Another huge commit.
- Add info command
- Fix list --paths
- Fix search with no name
- Fix conflict detection when uninstalling
- Mix tweaks and fixes
2013-06-23 01:14:08 +01:00
André Cruz
b82a2ee735 Huge commit.
- Add search command
- Cache clean now clears the registry cache
- Fix error when accessing an unknown deep command in the cli
- Change from 'roaming' to 'path' in the config
- Change from 'canonicalPackage' to 'canonicalDir'
- Fix dev dependencies of nested packages being fetched
- Ignore invalid installed packages
- Various cache fixes and improvements
- Fix .bower.json being deleted if a package specified ignorables
- Use fstream instead of ncp to solve the EMFILE errors
2013-06-22 17:06:02 +01:00
André Cruz
83b6820458 Huge commit.
- Add search command
- Cache clean now clears the registry cache
- Fix error when accessing an unknown deep command in the cli
- Change from 'roaming' to 'path' in the config
- Change from 'canonicalPackage' to 'canonicalDir'
- Fix dev dependencies of nested packages being fetched
- Ignore invalid installed packages
- Various cache fixes and improvements
- Fix .bower.json being deleted if a package specified ignorables
- Use fstream instead of ncp to solve the EMFILE errors
2013-06-22 17:04:50 +01:00
André Cruz
92b7668067 Add list command, some other fixes and improvements.
- Fix cache clean command
- Lots of improvements and fixes of the Manager
- Only save json if the contents changed
- Add nom like tree to installed/updated packages
- Fix help usages.
2013-06-15 21:43:01 +01:00
André Cruz
52be2230cb Improve doc blocks and minor bug fixing. 2013-06-12 23:52:29 +01:00
André Cruz
88b4847ba9 Remove --save-resolutions in favor of prefixing choices with !.
Also improve the manager resolution process by avoiding to fetch incompatible packages always.
Now lazy fetches them when necessary.
2013-06-12 22:34:53 +01:00
André Cruz
f532eb708e Small fix. 2013-06-11 19:16:43 +01:00
André Cruz
62fadc8200 Fix reusing of compatible dependencies. 2013-06-11 16:23:15 +01:00
André Cruz
6d3b3e6de2 Add cache clean and list commands.
This was an huge commit.
- Allow nested commands
- Switch resolve cache in memory object cache to LRU
- Store non-semver packages in the cache
- Tweak help messages
- Various fixes and tweaks
2013-06-11 00:39:18 +01:00
André Cruz
10fd2b5b5a Tweak messages. 2013-06-07 18:13:56 +01:00
André Cruz
e704733743 Read, use and update persistent resolutions.
Add --save-resolutions to deal with this.
Also:
  - Adjust logging when using compact
  - Minor code adjustments.
2013-06-07 13:05:07 +01:00
André Cruz
79522194f1 Inform the user when a conflict was resolved with a configured resolution. 2013-06-06 01:05:55 +01:00
André Cruz
2eea258b9b Save and use resolutions to resolve conflicts. 2013-06-06 00:12:07 +01:00
André Cruz
1fdb5373c9 Fix adjustment made to targets and improve walk tree. 2013-06-05 18:35:38 +01:00
André Cruz
0ebe5ff55a Several fixes.
- Throw an error when trying to update a package that is not installed
- Do not add duplicate packages to the resolved list
- Make conflict resolution serial instead of parallel
- Fix some dumb mistakes
2013-06-05 08:55:32 +01:00
André Cruz
ef610ab7de Sort of picks must be done by the Manager, otherwise indexes are messed up.
Little code simplification on the Project.
2013-06-05 01:13:15 +01:00
André Cruz
68454492e9 Add conflict resolve, presenting choices to the user.
This commit also contains:
- Simplified Manager and Project
- Add warning when an extraneous package is found.
- Fix a lot of bugs in the overall resolve process
- Made templates rendering synchronous
-
2013-06-05 00:50:23 +01:00
André Cruz
49be1638ba Minor tweaks. 2013-06-03 16:54:09 +01:00
André Cruz
afd01cc40c Change from promise progress events to hierarchical logger.
This is an huge commit, contains other small tweaks/fixes.
2013-06-03 16:31:19 +01:00
André Cruz
2d0c0d2aad Reduce nesting and fix analyse not restoring dependants properly in some cases. 2013-06-02 12:04:32 +01:00
André Cruz
c9ef3fa1d7 Allow simultaneous --save and --save-dev flag. 2013-06-01 02:14:21 +01:00