@hspkg/boom

A toolkit for CDN deployment.

Usage no npm install needed!

<script type="module">
  import hspkgBoom from 'https://cdn.skypack.dev/@hspkg/boom';
</script>

README

boom

NPM version Downloads JavaScript Style Guide

A toolkit for CDN deployment.

Background

There're lots of ways to deploy a backend application, but not for frontend applications.

IMO, we can make things easier by CI:

  • Git push to repository with special marks
  • Trigger CI to build and publish to CDN

Here marks can be a branch or tag which can also be used to separate different environments. And here we make an assumption:

  • A branch like daily/x.y.z: publish to daily environment
  • A tag like publish/x.y.z: publish to production environment

The tool is a gadget to do these things better for you. If you have different marks, fork & modify as you like.

Usage

In the root directory of project:

$ npx @hspkg/boom

Or

$ npm i -g @hspkg/boom
$ boom

screenshot

License

MIT © Cody Chan