Skip to content

About

A collection of Javascript utilities packages

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

1,587 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folklore Javascript Packages

Build Status Coverage Status

Packages

This package is splitted in multiple packages that can be used independently.

Package Name Description Version Links
generator-folklore Yeoman generator for Folklore projects NPM Version Documentation
@folklore/config Config helpers NPM Version Documentation
@folklore/size Sizing utilities NPM Version Documentation
@folklore/pan Panning and MouseWheeling utilities NPM Version Documentation
@folklore/laravel Laravel javascript helpers NPM Version Documentation
@folklore/services External services helpers NPM Version Documentation
@folklore/pixi Pixi.js utilities NPM Version Documentation
@folklore/user-media getUserMedia utilities NPM Version Documentation

Releases

Packages are versioned independently with Changesets and published to npm by GitHub Actions, with trusted publishing: no npm token, and each version gets a provenance attestation.

  1. In the pull request that changes a published package, run npx changeset: pick the packages, the bump (patch, minor or major) and write the line for their CHANGELOG.md. Commit the file it creates in .changeset/. Changes outside packages/ don't need one; a package change that doesn't need a release takes npx changeset --empty. The Changeset check fails a pull request that changes a package without one.
  2. On every push to main, the Release workflow opens or updates the "Version packages" pull request, which bumps the versions and writes the changelogs.
  3. Before merging it, configure trusted publishing for the packages it releases for the first time (see below).
  4. Merging it runs the workflow again: it builds the packages, publishes the new versions, pushes the <package>@<version> tags and creates the GitHub releases.

Don't publish from a local machine (lerna publish, npm publish).

Trusted publishing

npm only accepts a publish from the Release workflow for packages that trust it. Configure a package once, with npm 11.15+, write access to the package and 2FA:

scripts/trust-packages.sh

Run on the "Version packages" branch with no argument, it configures the packages whose new version isn't on npm yet; it also takes package names. A new configuration expires if no publish succeeds with it within 2 days, so don't configure packages ahead of their release. A package that isn't configured fails to publish with ENEEDAUTH while the others go through: configure it and re-run the workflow.

Once a package has been published by the workflow, its npm settings can be set to "Require two-factor authentication and disallow tokens", which doesn't affect trusted publishing. The workflow file name (release.yml) is part of the trust: renaming it breaks publishing.

About

A collection of Javascript utilities packages

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages