Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

9
Import libraries and shared assets using Stitch!
Post Flair (click to view more posts with a particular flair)
Post Body

Hey, everyone!

A while ago I posted about Stitch, an internal toolkit that we use to create pipelines around GameMaker Studio 2.3 development, and that we decided to open source.

I made some major (breaking!) updates to Stitch's import/merge system. Now you can point Stitch at a GitHub repo, or at a URL where a zipped GameMaker project is hosted, or just at a path on your local machine, and have it import exactly the subset of resources you want!

The most powerful way to use this is with GitHub as the source, because it's very easy to control which version of the project you're getting. Plus, you don't have to take any steps to zip up your project (or subsets of it). The code is the release.

Below are some examples (note that these examples might not be importing the important parts of the source -- I'm using them to demonstrate how merging options work).

1) Import everything in gdash, from the most recent commit:

stitch merge --source-github=gm-core/gdash

2) Import everything in gdash, from the most recent release:

stitch merge --source-github=gm-core/gdash?^(\\d \\.){2}\\d

3) Import all the scripts beginning with an "_", or that are in the "gdash" folder, from version 4.0.0 of gdash:

stitch merge --source-github=gm-core/[email protected] --types=scripts --if-name-matches=^_ --if-folder-matches=gdash

Number 2 is admittedly pretty cryptic, but the point is that you can use a regex pattern that will be tested against your Git tags, with Stitch selecting the most recent tag matching the pattern. (Since there is no requirement for exactly what a "release" name looks like on GitHub, a pattern match is the most effective way to ensure you can get what you want.)

See the docs and the CLI help (e.g. stitch merge -h) for full details.

I hope you find it helpful!

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,408
Link Karma
837
Comment Karma
558
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago