@bryce-loskie/devops

1.0.12 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @bryce-loskie/devops

Weekly Downloads

15

Version

1.0.12

License

MIT

Unpacked Size

5.86 kB

Total Files

7

Last publish

Collaborators

  • guygubaby