feat: apply phase1 DX cleanup for private registry

This commit is contained in:
hibna
2026-02-12 18:27:50 +03:00
parent 8a32c5c1b3
commit fcd2a14a05
21 changed files with 281 additions and 279 deletions
+7 -7
View File
@@ -1,27 +1,27 @@
# .npmrc Örnek Dosyası
# Bu dosyayı diğer projelerinize kopyalayın ve .npmrc olarak kaydedin
# @alper scope'u için Gitea registry'yi kullan
@alper:registry=https://gitea.yourdomain.com/api/packages/your-username/npm/
# @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)
//gitea.yourdomain.com/api/packages/your-username/npm/:_authToken=${GITEA_TOKEN}
//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)
# //gitea.yourdomain.com/api/packages/your-username/npm/:_authToken=your-gitea-access-token-here
# //gits.yourdomain.com/api/packages/your-username/npm/:_authToken=your-registry-token-here
# Environment variable nasıl ayarlanır:
#
# Linux/Mac:
# export GITEA_TOKEN=your-token-here
# export GITS_NPM_TOKEN=your-token-here
# # veya ~/.bashrc veya ~/.zshrc dosyasına ekleyin
#
# Windows (PowerShell):
# $env:GITEA_TOKEN="your-token-here"
# $env:GITS_NPM_TOKEN="your-token-here"
# # veya sistem environment variables'a ekleyin
#
# .env dosyası (projede):
# GITEA_TOKEN=your-token-here
# GITS_NPM_TOKEN=your-token-here
# Not: Bu dosyayı .gitignore'a ekleyin!
# Asla token'ınızı git'e commit etmeyin.