tangramdotdev / packages

A collection of community maintained Tangram packages.
https://www.tangram.dev
MIT License
8 stars 2 forks source link

feat(std): implement $, remove std.build() #69

Closed deciduously closed 4 months ago

deciduously commented 4 months ago

This PR removes std.build() in favor of the $ tagged template literal. Closes #68.

Example usage:

export let test = tg.target(async () => {
    return await $`
        echo "Checking that we can run wget."
        wget --version
        echo "Checking that we can download a file."
        wget -O - https://tangram.dev > $OUTPUT
    `
        .env(wget())
        .checksum("unsafe");
});