Skip to content

Lye - a Sprockets inspired asset pipeline for Elixir / Phoenix

Notifications You must be signed in to change notification settings

nicbet/elixir-lye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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:

mix test

Load an asset from a load path

env = Lye.Environment.phoenix()
Lye.Environment.load(env, "app.js")

Dev Notes

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/lye.

RoadMap

Basic Structs

  • Environment
  • Asset
  • Processor

Functionality

  • Loading of assets
  • Caching of loaded assets
  • Development mode
  • Production mode
  • Manifests
  • Saving compiled assets to disk
  • Plug / Phoenix integration

Processing

  • Default Pipeline
  • Basic Directive Processor
  • 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
  • Bundle Processor
  • SCSS Processor
  • Babel Processor
  • CoffeeScript Processor
  • Compressor
  • Uglifier Processor
  • Minifier Processor
  • SourceMaps Processor

About

Lye - a Sprockets inspired asset pipeline for Elixir / Phoenix

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published