Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/artemeff/rebar_assets
- Owner: artemeff
- License: mit
- Created: 2014-09-09T09:49:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-16T22:34:47.000Z (about 10 years ago)
- Last Synced: 2024-11-05T12:12:45.303Z (about 2 months ago)
- Language: Erlang
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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