Commit Graph

55 Commits

Author SHA1 Message Date
Adam Stankiewicz
4b4a854ed8 Restore directory structure for published bower
It's because people are depending on internals of bower, like
"bower/lib/renderers/StandardRenderer"

Instead we move templates and bin to lib directory and leave
paths intact. Additionally we alias bin/bower to lib/bin/bower.
2016-01-27 14:47:18 +01:00
Adam Stankiewicz
ad27112b58 Do not assume package.json location 2016-01-25 19:40:54 +01:00
Adam Stankiewicz
3e3b64218d Remove analytics from Bower, fixes #1102
They caused more issues than useful they were.

Instead, we'll focus on fetching statistics from
NPM registry to watch Bower's popularity, and
GitHub stars over time to watch packages' popularity.
2016-01-20 12:30:54 +01:00
Adam Stankiewicz
b9718bb309 Fix search command on no arguments, fixes #2066 2015-12-11 20:15:04 +01:00
Sindre Sorhus
d7b0db41f4 bump update-notifier 2015-01-12 08:27:39 +08:00
Sindre Sorhus
514eb8f0e3 better homedir detection 2014-12-22 22:56:27 +07:00
Sindre Sorhus
9b5fa99d6a bump update-notifier and simplify 2014-07-09 16:15:47 +02:00
Sindre Sorhus
ea3a0d64c1 make jshint :) 2014-04-22 16:01:24 +02:00
Sindre Sorhus
ff817dad0d various tweaks 2014-04-22 15:16:58 +02:00
Adam Stankiewicz
74d568b1e7 Improve noninteractive loading performance 2x, fixes #1221 2014-04-12 21:11:17 +02:00
Sindre Sorhus
4e155caae9 Merge pull request #1124 from jmmk/quiet_output
Suppress end output if quiet option is specified
2014-04-11 12:11:45 +02:00
Brian Donovan
3d7b9f60da Fix a typo in the regex trying to understand the command.
This is almost certainly not trying to replace 's' characters in a command and is, instead, meant to check for nested properties on bower.commands that were not found in bower.abbreviations for some reason. The kicker is that bower.abbreviations already contains the full command names in addition to the shortened ones, so this code path ("Direct lookup") probably never actually results in finding anything and can probably safely be removed.
2014-03-04 15:38:46 -08:00
Michael McLellan
cc63a633b5 Suppress end output if quiet option is specified 2014-02-18 17:13:04 -05:00
Mat Scales
3044c16ce1 Enable Q long stack traces when in verbose mode 2014-01-14 13:10:23 +00:00
Pascal Hartig
e84f71cd37 Basic usage tracking with insight
The user is prompted with a question whether he would like to provide usage data
    on the first start, when run in interactive mode. The current implementation
    tracks calls to `install`, `info`, `search` and `uninstall` when run with at
    least one parameter.

    Fixes #260

Closes gh-796.
2013-12-05 22:37:32 +01:00
André Cruz
46783e32d5 Warn if home is not set. 2013-08-28 21:45:39 +01:00
André Cruz
187457df13 Fix interactive not being set correctly on node 0.8.x, fixes #802. 2013-08-22 18:52:42 +01:00
Andre Cruz
9fa08fee99 Close GH-797: Decoupled prompting from the inner architecture.. Fixes #645 2013-08-19 01:16:19 +01:00
André Cruz
39f3571383 Minor tweaks to last PR. 2013-07-28 03:05:16 +01:00
MrDHat
571b34c990 Close GH-671: Disable use of sudo. Fixes #498. 2013-07-28 02:36:24 +01:00
André Cruz
91779a67fb Pass logger to the registry client, get rid of unnecessary emitter in commands. 2013-07-20 22:08:30 +01:00
André Cruz
7c8146128e bower_new to bower. 2013-07-09 21:04:09 +01:00
André Cruz
8ec079945a Enable interactive even with --json. 2013-07-06 22:46:57 +01:00
André Cruz
f58fb3e556 Doc typo. 2013-07-03 14:29:57 +01:00
André Cruz
81b53112c1 Implement command abbreviations. 2013-07-01 20:41:20 +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
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
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
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
036bd999fd Disable config.interactive also when terminal is not a tty or --json was specified. 2013-06-05 18:51:59 +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
41486d44ee Tweaks. 2013-05-31 19:11:21 +01:00
André Cruz
7fb326245e Print update notice. 2013-05-31 18:17:32 +01:00
André Cruz
57a9b313c4 Finish the help command and help usages for the implemented commands.
Introduce templating based on handlebars.
Minor tweaks.
2013-05-31 16:18:00 +01:00
André Cruz
20ba998383 Implement the uninstall command.
Made also some tweaks to the render stuff.
2013-05-30 21:57:05 +01:00
André Cruz
415a1bffac README typo. 2013-05-28 00:04:23 +01:00
André Cruz
798895d78d Set log level to infinity when --verbose is used. 2013-05-27 23:29:39 +01:00
André Cruz
454436905c Huge commit.
- Changed way renderers work
- Move worker to a separate module
- Improve loglevel
- Minor tweaks
- Fix tests
2013-05-27 22:59:13 +01:00
André Cruz
005b3356f2 Several things changed.
- Make force and offline part of config, clearing all the options mess in the architecture
- Fix some bugs with the renderer
- Parse cli options
2013-05-26 13:47:13 +01:00
André Cruz
c8d4d39068 Add info level to default log levels. 2013-05-24 23:48:36 +01:00
André Cruz
f7395b7d7c Add special "all" log level. 2013-05-24 23:43:33 +01:00
André Cruz
01d8d0dbec Minor CS fixes. 2013-05-24 23:03:19 +01:00
Mat Scales
8bc6d7af8c Added the update notifier 2013-05-24 15:35:03 +01:00
André Cruz
8939fe0b83 Make tag lower case in case of error. 2013-05-24 11:46:12 +01:00
André Cruz
c4cbfd352e Move stdout/stderr logic to the renderers to allow for greater flexibility. 2013-05-24 11:14:14 +01:00
André Cruz
f4c1a125e7 Add default log levels. 2013-05-23 21:41:51 +01:00
André Cruz
680ac9825a Small typo. 2013-05-23 19:58:50 +01:00
André Cruz
cfb3d14028 Initial take on the commands + renderers + cli. 2013-05-23 19:55:59 +01:00
André Cruz
9f6bf62efc Some other tweaks to the API. 2013-05-22 22:58:04 +01:00