https://github.com/byteshiva/custom-pnpm-script
Custom pnpm Script with Nix Integration
https://github.com/byteshiva/custom-pnpm-script
Last synced: 10 months ago
JSON representation
Custom pnpm Script with Nix Integration
- Host: GitHub
- URL: https://github.com/byteshiva/custom-pnpm-script
- Owner: byteshiva
- Created: 2024-03-04T17:13:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T18:02:15.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T12:12:49.668Z (12 months ago)
- Language: Nix
- Homepage: https://byteshiva.medium.com/using-nix-to-create-a-custom-pnpm-script-and-integrate-with-direnv-a31017232e8d
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom PNPM Script
This repository contains a custom PNPM script for streamlined project management. The script is designed to work within a Nix environment using `direnv` for dependency management.
## Prerequisites
Before using the custom PNPM script, make sure you have the following prerequisites installed:
1. **Nix**: Use the following command to enter a Nix shell with the necessary dependencies:
```bash
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz -p direnv
```
2. **Direnv**: Ensure Direnv is installed to manage the project-specific environment.
## Getting Started
Follow these steps to set up and use the custom PNPM script:
### Step 1: Clone the Repository
```bash
git clone https://github.com/byteshiva/custom-pnpm-script.git
```
### Step 2: Navigate to the Project Directory
```bash
cd custom-pnpm-script
```
> ### This is a one-time requirement.
Run `direnv allow` once.
### Step 3: Verify PNPM Installation
Check the installed PNPM version using:
```bash
pnpm --version
```