1.0.12 • Published 3 years ago

@bryce-loskie/devops v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago