Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/artemeff/rebar_assets

Plugin for Rebar to compile static assets.
https://github.com/artemeff/rebar_assets

Last synced: 12 days ago
JSON representation

Plugin for Rebar to compile static assets.

Awesome Lists containing this project

README

        

### rebar_assets

---

Plugin for [Rebar](https://github.com/rebar/rebar) to compile static assets.

---

### Instruction

Sample rebar.config:

```erlang
{deps, [
{rebar_assets, ".*", {git, "git://github.com/artemeff/rebar_assets.git", "HEAD"}}
]}.

{plugins, [rebar_assets]}.

{static, [
{files, ["application.js", "application.css"]},
{assets_port, 3005}
]}.
```

```bash
# compile assets
$ rebar assets
# start server
$ rebar assets-serve
# watch changes and recompiles
$ rebar assets-watch
```

If you use erlang application add this to erlang app that have assets:

```erlang
% rebar.config
{post_hooks, [{compile, "rebar assets"}]}.
```

---

### Documentation

Soon

---

### Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request