1.0.12 • Published 2 years ago

@bryce-loskie/devops v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

An opinionated frontend devops util

NPM version

Install

pnpm i @bryce-loskie/devops -D

Post Install Effect

After install will generate devops and scripts folder and .dockerignore in your project working dir

Usage

  1. Add script in package.json
{
  "sciprts": {
    "prebuild": "node scripts/pre-build.mjs"
  }
}
  1. Optional If you use pnpm as package manager, create .npmrc in your project root path and add flowing key into it.
enable-pre-post-scripts=true
  1. CI/CD pipline
set -e

npx pnpm i && npx pnpm build
dockerTag=$(cat scripts/tag.txt)
dockerImage=docker-registory/docker-image-name:${dockerTag}
docker build -t $dockerImage -f devops/Dockerfile .
docker push $dockerImage

License

MIT License © 2021 guygubaby

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago