# alien

> Fe development tools

Latest version **0.2.5** (published 2015-11-24) · 0 weekly downloads

## Install

```sh
npm install alien
pnpm add alien
yarn add alien
bun add alien
```

Provides the command `alien`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2015-11-24 |
| First published | 2014-08-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | purple.calm |
| Maintainers | purple.calm |

## Links

- npm: https://www.npmjs.com/package/alien
- Repository: https://github.com/purplecalm/alien
- Issues: https://github.com/purplecalm/alien/issues
- npm.io page: https://npm.io/package/alien

## Dependencies (8)

- [MD5](https://npm.io/package/MD5.md) *
- [async](https://npm.io/package/async.md) *
- [colors](https://npm.io/package/colors.md) *
- [express](https://npm.io/package/express.md) *
- [hogan.js](https://npm.io/package/hogan.js.md) 2.0.0
- [optimist](https://npm.io/package/optimist.md) 0.3.x
- [clean-css](https://npm.io/package/clean-css.md) *
- [uglify-js](https://npm.io/package/uglify-js.md) *

## Recent versions

- 0.2.5 (latest) — 2015-11-24
- 0.2.3 — 2015-11-23
- 0.2.2 — 2015-10-30
- 0.2.1 — 2015-02-10
- 0.2.0 — 2015-01-08
- 0.1.9 — 2015-01-07
- 0.1.7 — 2014-12-21
- 0.1.6 — 2014-08-28
- 0.1.3 — 2014-08-21
- 0.1.2 — 2014-08-21
- 0.1.1 — 2014-08-20
- 0.1.0 — 2014-08-20
- 0.0.6 — 2014-08-20
- 0.0.5 — 2014-08-20
- 0.0.4 — 2014-08-19
- … 3 more at https://npm.io/package/alien/versions

## README

![](https://raw.githubusercontent.com/purplecalm/alien/master/alien.png)
===

## Require
  * rsync (http://rsync.samba.org/)

## Installation
```bash
$ npm install alien -g
```

## Quick Start
before we run the commands of alien, we should have a project first

### create a project
(directory structure)
```
project
├─┬src
│ ├─┬scripts
│ │ └──...
│ └─┬styles
│   └──...
└─.config
```
you can checkout (https://github.com/purplecalm/alien.git) to get a test case

### start a server
before start server, make sure the working directory contains project
```bash
$ alien server
```

server has three modes, [SRC|DEV|PRD]
  * SRC: source mode, return every file, esay to debug
  * DEV: package mode, return files' package
  * PRD: product mode, return minified code

```bash
$ alien server -m DEV
```

### pack
packing exports files

(File .config) e.g
```javascript
{
	"exports": [
		"scripts/index.js",
		"styles/index.css"
	]
}
```

before run pack, make sure the project is working directory
```bash
$ alien pack
```

result
```
project
├─┬dev(package directory)
│ ├─┬scripts
│ │ └──index@dev.js
│ └─┬styles
│   └──index@dev.css
├─┬src
│ ├─┬scripts
│ │ └──...
│ └─┬styles
│   └──...
└─.config
```

### min
minify exports files

(File .config) e.g
```javascript
{
	"exports": [
		"scripts/index.js",
		"styles/index.css"
	]
}
```

before run min, make sure the project is working directory
```bash
$ alien min
```

result
```
project
├─┬prd(product directory)
│ ├─┬scripts
│ │ └──index@bc23723a6ebdd528a774264d37173293.js
│ └─┬styles
│   └──index@db47495f5329bd6a6df53228034d4746.css
├─┬ver(versions directory)
│ ├─┬scripts
│ │ └──index.js.ver (bc23723a6ebdd528a774264d37173293)
│ └─┬styles
│   └──index.css.ver (db47495f5329bd6a6df53228034d4746)
├─┬src
│ ├─┬scripts
│ │ └──...
│ └─┬styles
│   └──...
└─.config
```

### sync
sync all package to target server

*make sure you installed rsync* (find it here http://rsync.samba.org/)

set dev environment in .config
(File .config) e.g
```javascript
{
	"dev": {
		"host": "127.0.0.1",
		"path": "/home/q/www/project/"
	}
}
```

before run sync
  * make sure the project is working directory
  * make sure you packed your project before
```bash
$ alien sync
```
we also run pack and sync together
```bash
$ alien pack && alien sync
```

### help
```
Aha!
```

---
_Source: https://npm.io/package/alien · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
