sdm


https://github.com/gimmesoda/sdm

To install, run:

haxelib install sdm 0.4.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Soda's Dependency Manager (SDM)

A lightweight dependency manager for Haxe with profile support and XML configuration

SDM is a simple tool for managing dependencies in Haxe projects. It allows you to easily install libraries from Haxelib, Git, or local paths, and switch between different build profiles.

Features

Multiple dependency types:

  • Haxelib (with version support)
  • Git repositories (with commit hash or branch support)
  • Local dev dependencies (dev)

Profile support

Different dependency sets for dev, release, or other scenarios.

XML-based config

Clean and structured dependency definitions.

Minimal CLI

Simple commands for installation and management.


Example Config (sdm.xml)

<!DOCTYPE sdm-config>
<config>
	<haxelib version="4.3.2" name="hxcpp"/>
	<profile name="Haxelib Test">
		<haxelib version="2.6.0" name="hscript"/>
	</profile>
	<profile name="Git Test">
		<git url="https://github.com/HaxeFoundation/hscript.git" ref="f718d5f1a651296f6d9bcd6059d570e0d4e511b5" name="hscript"/>
	</profile>
</config>

SDM Command Reference

CommandDescriptionUsageOptions
setupCreates global shortcutsdm setup
initCreates basic configsdm init
installInstalls dependenciessdm install-p/--profile [name]
-g/--global
haxelibAdds Haxelib dependencysdm haxelib [name] [version?]-p/--profile
-b/--blind
gitAdds Git dependencysdm git [name] [url] [ref?]-p/--profile
-b/--blind
devAdds local dependencysdm dev [name] [path]-p/--profile
-b/--blind
removeRemoves dependencysdm remove [name]-p/--profile
taskAdds post-install cmdsdm task [cmd] [dir?]

Options: - -p/--profile [name] - Target specific profile - -g/--global - Install dependencies globally - -b/--blind - Skip installing sub-dependencies

Example Usage:

sdm init

# Add a haxelib to specific profile
sdm haxelib hscript 2.6.0 -p dev

# Add git dependency with commit ref
sdm git heaps https://github.com/HeapsIO/heaps.git 1f6b60a2604d275855629353a72f1bf2417d0e39

# Add a dependency that needs to be built manually
sdm haxelib hxcpp
sdm git hashcord https://github.com/CCobaltDev/hashcord.git
sdm task "haxelib run hxcpp Build.xml" ".\.haxelib\hashcord\git\project"
sdm task "copy .\.haxelib\hashcord\git\project\out\discord_rpc.hdll discord_rpc.hdll"

# Install with all options
sdm install -p dev
Contributors
gimmesoda
Version
0.4.0
Published
1 year ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂