https://github.com/nicbet/elixir-lye
Lye - a Sprockets inspired asset pipeline for Elixir / Phoenix
https://github.com/nicbet/elixir-lye
assets assets-pipeline elixir phoenix-framework
Last synced: 11 months ago
JSON representation
Lye - a Sprockets inspired asset pipeline for Elixir / Phoenix
- Host: GitHub
- URL: https://github.com/nicbet/elixir-lye
- Owner: nicbet
- Created: 2018-07-05T20:39:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T00:33:33.000Z (almost 8 years ago)
- Last Synced: 2025-06-04T02:26:32.930Z (about 1 year ago)
- Topics: assets, assets-pipeline, elixir, phoenix-framework
- Language: Elixir
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lye
Lye - a Sprockets inspired asset pipeline for Elixir / Phoenix
## Installation
The package can be installed by adding `lye` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:lye, git: "https://github.com/nicbet/elixir-lye"}
]
end
```
## Usage
This project is a massive WIP!
For now, you can execute the test suite with:
```sh
mix test
```
Load an asset from a load path
```elixir
env = Lye.Environment.phoenix()
Lye.Environment.load(env, "app.js")
```
## Dev Notes
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/lye](https://hexdocs.pm/lye).
## RoadMap
#### Basic Structs
- [x] Environment
- [x] Asset
- [x] Processor
#### Functionality
- [x] Loading of assets
- [x] Caching of loaded assets
- [ ] Development mode
- [ ] Production mode
- [ ] Manifests
- [ ] Saving compiled assets to disk
- [ ] Plug / Phoenix integration
#### Processing
- [x] Default Pipeline
- [x] Basic Directive Processor
- [x] require Directive
- [ ] require_tree Directive
- [ ] require_directory Directive
- [ ] require_self Directive
- [ ] link Directive
- [ ] depend_on Directive
- [ ] depend_on_asset Directive
- [ ] stub Directive
- [ ] node_module Directive
- [ ] Custom Directives
- [x] Bundle Processor
- [ ] SCSS Processor
- [ ] Babel Processor
- [ ] CoffeeScript Processor
- [ ] Compressor
- [ ] Uglifier Processor
- [ ] Minifier Processor
- [ ] SourceMaps Processor