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, json : Mint::MintJson) #

[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 bundle #

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

[View source]
def bundle_names : Hash(Mint::Ast::Node | Mint::Compiler2::Bundle, 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 : MintJson #

The application configuration.


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

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

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

[View source]