Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/t9md/atom-transformer

Transform something
https://github.com/t9md/atom-transformer

atom

Last synced: 7 days ago
JSON representation

Transform something

Awesome Lists containing this project

README

        

# transformer

Transform something.

![gif](https://raw.githubusercontent.com/t9md/t9md/8adfa669f584361bf4c5c85b3b3431be002dd336/img/atom-transformer.gif)

# Development status

Alpha.
Config parameter, command name might change without notification.

# How to use

- `transformer:run`: run scripts
- `transformer:compile`: compile.

Unlike [preview](https://atom.io/packages/preview) or [script](https://atom.io/packages/script), this package write output to normal TexEditor.
So you can use default TextEditor feature without special supports.
* e.g. search, copy&paste highlight LESS output with [pigments](https://atom.io/packages/pigments).

## Supported language

Languages which "runner command is lower case of grammar name" are supported.

e.g.
Ruby's grammar name(`editor.getGrammar().name`) is Ruby.
and Ruby file can run by `ruby file.rb`.
Other languages fall into this type are Python, OCaml.

For other languages not match above convention like `go run`, see [this file](https://github.com/t9md/atom-transformer/blob/master/lib/transformer.coffee).

# FAQ

## Command not found?

Configure `process.env.PATH` in you `init.coffee`.

e.g.

```coffeescript
process.env.PATH = "/usr/local/bin:/usr/bin"
```