4 releases

✓ Uses Rust 2018 edition

0.1.3 Mar 16, 2019
0.1.2 Feb 14, 2019
0.1.1 Jan 31, 2019
0.1.0 Jan 31, 2019

#9 in #lambda

Download history 237/week @ 2019-04-26 218/week @ 2019-05-03 165/week @ 2019-05-10 172/week @ 2019-05-17 246/week @ 2019-05-24 219/week @ 2019-05-31 265/week @ 2019-06-07 196/week @ 2019-06-14 213/week @ 2019-06-21 141/week @ 2019-06-28 100/week @ 2019-07-05 99/week @ 2019-07-12 43/week @ 2019-07-19 50/week @ 2019-07-26 41/week @ 2019-08-02

1,103 downloads per month

MIT license

19KB
492 lines

now-builders

This is a monorepo containing the Official Builders provided by the ZEIT team.

Channels

There are two Channels:

Channel Git Branch npm dist-tag use example
Canary canary @canary @now/node@canary
Stable master @latest @now/node@latest

All PRs should be submitted to the canary branch.

Once a PR is merged into the canary branch, it should be published to npm immediately using the Canary Channel.

Publishing to npm

For the Canary Channel, publish the modified Builders to npm with the following:

yarn publish-canary

For the Stable Channel, you must do the following:

  • Cherry pick each commit from canary to master
  • Verify that you are in-sync with canary (with the exception of the version line in package.json)
  • Deploy the modified Builders
# View differences excluding "Publish" commits
git checkout canary && git pull
git log --pretty=format:"$ad- %s [%an]" | grep -v Publish > ~/Desktop/canary.txt
git checkout master && git pull
git log --pretty=format:"$ad- %s [%an]" | grep -v Publish > ~/Desktop/master.txt
diff ~/Desktop/canary.txt ~/Desktop/master.txt

# Cherry pick all PRs from canary into master ...
git cherry-pick <PR501_COMMIT_SHA>
git cherry-pick <PR502_COMMIT_SHA>
git cherry-pick <PR503_COMMIT_SHA>
git cherry-pick <PR504_COMMIT_SHA>

# Verify the only difference is "version" in package.json
git diff origin/canary

# Ship it
yarn publish-stable

After running this publish step, GitHub Actions will take care of publishing the modified Builder packages to npm.

If for some reason GitHub Actions fails to publish the npm package, you may do so manually by running npm publish from the package directory. Make sure to use npm publish --tag canary if you are publishing a canary release!

Contributing

See the Contribution guidelines for this project, it also contains guidance on interpreting tests failures.

Creating Your Own Builder

To create your own Builder, see the Builder's Developer Reference.

Dependencies

~6MB
~116K SLoC