@pismo/almighty

1.1.0 • Public • Published

almighty

Tool used to standardize some common tasks in frontend projects

Installation

npm install --save-dev @pismo/almighty

Tasks

Release

almighty release version (patch, minor, major) [--no-push]

Basically a version bump based on [semver] (http://semver.org/). This task bump the desired version, change the CHANGELOG.md of the project to show the changes, commit and tag the version.

If you only want to make the version bump without pushing anything, just use the flag --no-push

almighty release version (patch, minor, major) --no-push

This task use some environment variables to make the communication with GitHub service:

  • GIT_AUTH_TOKEN // GitHub authentication token

Deploy

almighty deploy [-p dist]

By default, it deploys the contents of the dist folder to a bucket on S3. If the bucket does not exist, the bucket is created and configured to serve as a website.

You can define the path where almight will get the final distribution folder, with the -p (alias for --path) parameter.

The bucket is created based on the project name and the current branch. So if the project is foo and the branch is bar the bucket name will be foo-bar.

This task use some environment variables to make the communication with AWS service:

  • GIT_BRANCH // git project branch
  • AWS_REGION // aws region
  • AWS_KEY // access key id
  • AWS_SECRET // secret access key
  • AWS_BUCKET // if this variable is not set, fallback will occurs for the project + branch

All assets that go up to the bucket already go up with configured cache system

Rollbar

almighty rollbar

Notify the rollbar about the new deploy.

This task use some environment variables to make the communication with rollbar service:

  • ROLLBAR_SERVER_TOKEN // token to communicate with rollbar
  • ROLLBAR_ENVIRONMENT // rollbar environment where the deploy was made
  • BUILD_TAG // build version
  • GIT_COMMIT // commit of the build
  • USER // user that did the build (optional)

TODO

  • [ ] Add build task to be used for all projects
  • [ ] Add lint task
  • [ ] Add tests
  • [ ] Improve params for each task
  • [ ] Improve docs

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @pismo/almighty

Weekly Downloads

7

Version

1.1.0

License

MIT

Unpacked Size

58.6 kB

Total Files

12

Last publish

Collaborators

  • svc-npm-p
  • filipe.lyra
  • mounika.nanthabaku
  • danilopismo
  • leticia-cavalcanti
  • fagner.pelicioni
  • mateus_bombassaro
  • nelson.oliveira.p
  • anneke.knox
  • aline.souza
  • caique.constant
  • leandro.almeida.pismo
  • gabriel.miguel
  • clint_roberts
  • rartner-p
  • jonathanleahypi
  • pismojosh
  • fabio-rizzi_pismo
  • raphaelhernandocosta
  • giovanniprosim
  • dandwal
  • henrique.nunes
  • davi.firmino
  • wkerswell-pismo
  • thiagofribeiro
  • vinicius_vieira
  • abraaobueno
  • rodribeze
  • victorwpbastos