Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/klaussner/meteor-cleaner
Clean up your Meteor package cache!
https://github.com/klaussner/meteor-cleaner
Last synced: about 2 months ago
JSON representation
Clean up your Meteor package cache!
- Host: GitHub
- URL: https://github.com/klaussner/meteor-cleaner
- Owner: klaussner
- License: mit
- Archived: true
- Created: 2017-06-09T20:13:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-13T12:16:33.000Z (about 7 years ago)
- Last Synced: 2024-07-07T04:24:38.203Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 132 KB
- Stars: 45
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# meteor-cleaner
Clean up your Meteor package cache!
[![Build Status](https://travis-ci.org/klaussner/meteor-cleaner.svg?branch=master)](https://travis-ci.org/klaussner/meteor-cleaner)
![`meteor-cleaner`](screenshot.png)
## Installation
```sh
[meteor] npm install -g meteor-cleaner
```If you install `meteor-cleaner` globally using the `npm` version bundled with Meteor, you can run the `clean-package-cache` command like a built-in Meteor command.
**Note: Windows is currently not supported!**
## Usage
```sh
[meteor] clean-package-cache [options]
````clean-package-cache` analyzes the packages in `~/.meteor` and computes the amount of disk space that would be saved by removing versions according to the options explained below.
Unless you pass the `--yes` (`-y`) option, **you are asked for confirmation before anything is removed**.After analyzing the packages, the results are stored in a cache (`~/.meteor-cleaner-cache`) that is valid for 24 hours or until versions are removed.
This means that you can quickly try out different options before you decide which versions you want to remove.
You can force `clean-package-cache` to analyze all packages again (for example, if Meteor has downloaded new packages in the meantime) using the `--ignore-cache` option or by removing the cache file.## Options
By default, `clean-package-cache` removes all versions of each package.
Using the following options, you can specify which versions you want to keep.
If you pass more than one option, `clean-package-cache` computes the union of all matching versions.
For example, `--keep-final --keep-latest 1` removes all but the latest pre-releases.`--keep-latest `
Keep the `n` latest versions of each package.`--keep-scanned `
Keep versions that are used by Meteor projects in `path`.`--keep-final`
Keep final releases (everything that's not a pre-release).