28 lines
977 B
Plaintext
28 lines
977 B
Plaintext
# .npmrc Örnek Dosyası
|
||
# Bu dosyayı diğer projelerinize kopyalayın ve .npmrc olarak kaydedin
|
||
|
||
# @source scope'u için private registry kullan
|
||
@source:registry=https://gits.yourdomain.com/api/packages/your-username/npm/
|
||
|
||
# Authentication token (environment variable kullanımı - ÖNERİLEN)
|
||
//gits.yourdomain.com/api/packages/your-username/npm/:_authToken=${GITS_NPM_TOKEN}
|
||
|
||
# Alternatif: Doğrudan token (GÜVENLİ DEĞİL - sadece local geliştirme için)
|
||
# //gits.yourdomain.com/api/packages/your-username/npm/:_authToken=your-registry-token-here
|
||
|
||
# Environment variable nasıl ayarlanır:
|
||
#
|
||
# Linux/Mac:
|
||
# export GITS_NPM_TOKEN=your-token-here
|
||
# # veya ~/.bashrc veya ~/.zshrc dosyasına ekleyin
|
||
#
|
||
# Windows (PowerShell):
|
||
# $env:GITS_NPM_TOKEN="your-token-here"
|
||
# # veya sistem environment variables'a ekleyin
|
||
#
|
||
# .env dosyası (projede):
|
||
# GITS_NPM_TOKEN=your-token-here
|
||
|
||
# Not: Bu dosyayı .gitignore'a ekleyin!
|
||
# Asla token'ınızı git'e commit etmeyin.
|