Skip to content
/ es-return-json Public template

Return JSON Script Template

Notifications You must be signed in to change notification settings

BunnyWay/es-return-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template: es-return-json

This templates demonstrates a basic return JSON built for Bunny using a local Deno.

You do not want to use Deno? Feel free to use something else, here is a full fledged example with node instead!

This templated script is currently deployed here.

Setup

To run this example you'll need to have a valid Deno installation.

When you have the deno binary available, you should be able to run the check task which is the task ensuring everything is compiling fine.

# A tiny lint just to be sure!
deno task lint

# We ensure everything is type compliant!
deno task check

We also use pnpm to use changeset.

Changeset

This template uses changeset for version management. Changeset helps track and document changes in your project, making it easier to manage releases and generate changelogs.

When you make changes to the project, you should create a changeset to describe those changes:

  1. Run the following command:
    pnpm changeset
    
  2. Follow the prompts to select the type of change (major, minor, or patch) and provide a brief description.
  3. Commit the generated changeset file along with your code changes.

This process ensures that all modifications are properly documented and versioned, facilitating smoother releases and better communication about project updates.

When you merge a pull request that includes a changeset, it will automatically create an associated pull request to release your changes.

This new pull request will trigger the release process of the script to your PullZone in Bunny.

This behavior is disabled by default, every pushes on main are now pushed to Bunny directly. You can enable this pattern again by updating this action

About

Return JSON Script Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published