An open API service indexing awesome lists of open source software.

https://github.com/nem035/ember-install

Bash script to install/uninstall ember-cli.
https://github.com/nem035/ember-install

bash ember ember-cli

Last synced: about 2 months ago
JSON representation

Bash script to install/uninstall ember-cli.

Awesome Lists containing this project

README

          

# Ember-Install

Bash script to install/uninstall ember-cli.

## Scripts
- [ember-install](https://github.com/nem035/ember-install/blob/master/ember-install)
- script that uninstalls current ember cli, if one is installed, and installs the provided version (or latest if nothing is provided)

```bash
# install ember cli
# if you don't specify a version, ember-install will use the latest
ember-install
```
- [ember-uninstall](https://github.com/nem035/ember-install/blob/master/ember-uninstall)
- Script that uninstalls current ember cli

```bash
# uninstall ember cli
ember-uninstall
```

## Installation

Clone the repo and remove the git tracking:

```bash
git clone git@github.com:nem035/ember-install.git
cd ember-install
rm -rf .git
```

Of course one can just download the raw scripts as well.

*Note*: If necessary, make sure to make the scripts executable

```bash
chmod +x ember-install
chmod +x ember-uninstall
chmod +x print_utils
```

Modify your path to add the directory with `ember-install` scripts:

- Bash:

```bash
echo 'export PATH=$PATH:/{{path_to_ember-install_dir}}' >> ~/.bashrc
```

- Zsh

```bash
echo 'export PATH=$PATH:/{{path_to_ember-install_dir}}' >> ~/.zshrc
```

Assuming you are inside the `ember-install` directory, you can use `$(pwd)` instead of the path to that directory.

## Example
```bash
15:31:12 › ember-install 2.4.3

#########################################################
Uninstalling Ember-CLI

version: 2.4.2 node: 0.12.7 os: darwin x64
- abbrev@1.0.7 node_modules/ember-cli/node_modules/abbrev
- acorn@1.2.2 node_modules/ember-cli/node_modules/acorn
... # removed output for brevity

Done.

#########################################################
Cleaning NPM cache...

... # removed output for brevity

Done.

#########################################################
Cleaning Bower cache...

... # removed output for brevity

Done.

#########################################################
Installing ember@2.4.3 ...

... # removed output for brevity

Done.
```