1.0.2 • Published 11 months ago

@rbxts/neomake v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Neomake

My personal alternative to @rbxts/make.

import { make, modify } from "@rbxts/neomake";

// basic usage
const root = make("Part", {
	Position: Vector3.zero,
	children: make("Attachment"),
});

// refs
const weldedPart = make("Part", (ref) => ({
	Position: Vector3.zero,
	Parent: Workspace,
	children: make("WeldConstraint", {
		Part0: ref,
		Part1: root,
	}),
}));

// carbon-copy
const light = make(new Instance("PointLight"), {
	Color: new Color3(1, 1, 1),
	Parent: weldedPart,
});

// modify an existing instance
modify(light, {
	Enabled: false,
});

Caveats

  • This module does not have event support. If that is something you'd need I'd suggest using @rbxts/make or @rbxts/altmake.

Contributing

All PRs are welcome!

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago