/prettier

Dockernized prettier. This is an opinionated code formatter.

Primary LanguageMakefileApache License 2.0Apache-2.0

prettier

Dockerfile Actions Status Shell Script Actions Status Markdown Actions Status YAML Actions Status JSON Actions Status

Docker Build Status Docker Automated build MicroBadger Size MicroBadger Layers License

An opinionated code formatter based on Docker.

This is prettier wrapper.

Requirements

Usage

Format markdown

docker run --rm -v "$PWD:/work" tmknom/prettier --parser=markdown --write '**/*.md'

Format json

docker run --rm -v "$PWD:/work" tmknom/prettier --parser=json --write '**/*.json'

Help

docker run --rm tmknom/prettier

Makefile targets

build                          Build docker image
format                         Format code
help                           Show help
install                        Install requirements
lint                           Lint code
release                        Release

Development

Installation

git clone git@github.com:tmknom/prettier.git
cd prettier
make install

Deployment

  1. Bump VERSION file.
  2. Run make release.
  3. Automatically deployed by "Docker Hub Automated Build".

Deployment Pipeline

  1. GitHub - Version Control System
  2. GitHub Actions - Continuous Integration
  3. Docker Hub - Docker Registry
  4. MicroBadger - Docker Inspection

License

Apache 2 Licensed. See LICENSE for full details.