class Mint::Bundler

Overview

This class is responsible for compiling and building the application.

Defined in:

bundler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, config : Mint::Bundler::Config, artifacts : Mint::TypeChecker::Artifacts) #

[View source]

Instance Method Detail

def application(*args, **options) #

[View source]
def application(*args, **options, &) #

[View source]
def artifacts : TypeChecker::Artifacts #

The artifacts to bundle.


[View source]
def asset_path(node : Ast::Node) #

[View source]
def bundle #

[View source]
def bundle_name(node : Set(Ast::Node) | Bundle) : String #

[View source]
def bundle_names : Hash(Mint::Compiler::Bundle | Set(Mint::Ast::Node), String) #

Contains the names of the bundles.


[View source]
def config : Config #

The bundle configuration.


[View source]
def files : Hash(String, -> String) #

The end result of the bundling. It contains the all the files for the application.


[View source]
def generate_application #

[View source]
def generate_assets #

[View source]
def generate_icons #

[View source]
def generate_icons? #

[View source]
def generate_index_html #

[View source]
def generate_manifest #

[View source]
def json(*args, **options) #

[View source]
def json(*args, **options, &) #

[View source]
def path_for_asset(filename : String) : String #

[View source]
def path_for_bundle(node : Set(Ast::Node) | Bundle) : String #

[View source]
def path_for_import(node : Set(Ast::Node) | Bundle) : String #

[View source]