All Projects → gleam-lang → mix_gleam

gleam-lang / mix_gleam

Licence: Apache-2.0 license
⚗️ Build Gleam code with mix

Programming Languages

elixir
2628 projects
Gleam
7 projects

Projects that are alternatives of or similar to mix gleam

makestudio
Setup your Delphi Environment very easily - build your projects with more comfort
Stars: ✭ 43 (-48.81%)
Mutual labels:  build-tool
nanobundle
Yet another build tool for libraries, powered by esbuild
Stars: ✭ 45 (-46.43%)
Mutual labels:  build-tool
gleam decode
Transform Erlang or Elixir data into Gleam data
Stars: ✭ 25 (-70.24%)
Mutual labels:  gleam
b2
B2 makes it easy to build C++ projects, everywhere.
Stars: ✭ 38 (-54.76%)
Mutual labels:  build-tool
replify
Minimalist, standalone Clojure(script) build tool
Stars: ✭ 27 (-67.86%)
Mutual labels:  build-tool
otp
📫 Fault tolerant multicore programs with actors
Stars: ✭ 169 (+101.19%)
Mutual labels:  gleam
vim-build-tools-wrapper
Projects building plugin for Vim
Stars: ✭ 23 (-72.62%)
Mutual labels:  build-tool
pyrocms-cheatsheet
Pyro CMS - Cheat Sheet
Stars: ✭ 17 (-79.76%)
Mutual labels:  mix
mix under
Execute mix tasks under Elixir umbrella applications
Stars: ✭ 19 (-77.38%)
Mutual labels:  mix
stdlib
🎁 Gleam's standard library
Stars: ✭ 153 (+82.14%)
Mutual labels:  gleam
Nginx-builder
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.
Stars: ✭ 143 (+70.24%)
Mutual labels:  build-tool
CMake-Cheatsheet
Short introduction to CMake with some examples.
Stars: ✭ 90 (+7.14%)
Mutual labels:  build-tool
atool-build
🔨 Build tool based on webpack.
Stars: ✭ 393 (+367.86%)
Mutual labels:  build-tool
6umpukc
Тулинг для разработки сайтов и решений на Bitrix под Ubuntu/Windows
Stars: ✭ 13 (-84.52%)
Mutual labels:  build-tool
make
The Ultimate Makefile to compile all your C, C++, Assembly and Fortran projects
Stars: ✭ 41 (-51.19%)
Mutual labels:  build-tool
elite
Fegeya Elitebuild, small, powerful build system. Written in Rust.
Stars: ✭ 24 (-71.43%)
Mutual labels:  build-tool
systemjs-tools
(dev)tools for working with SystemJS
Stars: ✭ 41 (-51.19%)
Mutual labels:  build-tool
cdkdx
Zero-config CLI for aws cdk development
Stars: ✭ 31 (-63.1%)
Mutual labels:  build-tool
Textrude
Code generation from YAML/JSON/CSV models via SCRIBAN templates
Stars: ✭ 79 (-5.95%)
Mutual labels:  build-tool
alibuild
A simple build tool for ALICE software
Stars: ✭ 19 (-77.38%)
Mutual labels:  build-tool

MixGleam

Hex Package Hex Docs Licence Build

An Elixir archive that teaches Mix how to work with Gleam code and dependencies!

Installation

Install the Gleam compiler onto your machine. Installation instructions can be found here.

Install or update the MixGleam archive from Hex:

$ mix archive.install hex mix_gleam

To install or update from source:

$ mix archive.uninstall mix_gleam # if this archive was previously installed
$ git clone https://github.com/gleam-lang/mix_gleam.git
$ cd mix_gleam
$ MIX_ENV=prod mix do archive.build, archive.install

Configure your Mix project to use the MixGleam archive to work with Gleam's compiler and Gleam dependencies:

# in mix.exs
# ...
  @app :my_gleam_app

  def project do
    [
      app: @app,
      # ...
      archives: [mix_gleam: "~> 0.6.0"],
      compilers: [:gleam | Mix.compilers()],
      aliases: [
        # or add this alias to your aliases() function
        "deps.get": ["deps.get", "gleam.deps.get"]
      ],
      erlc_paths: ["build/dev/erlang/#{@app}/build"],
      erlc_include_path: "build/dev/erlang/#{@app}/include",
      # ...
    ]
  end
# ...

To see an entire example mix.exs file you can adapt to your existing Mix project:

$ mix gleam.new --retro

If you want to write Gleam code in your project, it's a good idea to add gleam_stdlib and gleeunit to your project's dependencies:

# in mix.exs
# ...
  defp deps do
    [
      # ...
      {:gleam_stdlib, "~> 0.22"},
      {:gleeunit, "~> 0.6", only: [:dev, :test], runtime: false},
      # ...
    ]
  end
# ...

Make a src directory for your Gleam code to live in:

$ mkdir src

And add the build directory to your .gitignore file so Gleam's build artefacts are not included in your project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].