3.0.6 • Published 1 year ago

ngrv v3.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ngrv

npm GitHub issues

ngrv (called as engrave)

Engrave build information and set environment variables automatically.

Basic usage

CLI

  • Create .ngrv file which contains build information
# That's it! Nothing else. Default outputs will be stored in `./.ngrv`
npx ngrv

# You can pass the output directory where outputs will be stored
npx ngrv --directory my_directory

# shortly,
npx ngrv -d my_directory
  • Read .ngrv file and load values as environment variables
npx ngrv read [--directory my_directory]

# or shortly,
npx ngrv r -d my_directory

Programmatically

  • Create ngrv
import { engrave } from 'ngrv';

// Create outputs with build information
const ngrvs = engrave();

console.log(ngrvs);
  • Read ngrv
import { readEngrave } from 'ngrv';

// Read the files and set information into the process.env
const ngrvs = readEngrave();

console.log(ngrvs);

Example

cd example
pnpm install
pnpm dev # or pnpm cli
3.0.2

1 year ago

3.0.1

1 year ago

3.0.6

1 year ago

3.0.0

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

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.1

2 years ago

1.0.0

2 years ago