- ✅ Ticket 1.1: Estructura Clean Architecture en backend - ✅ Ticket 1.2: Schemas Zod compartidos - ✅ Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares) - ✅ Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares) - ✅ Ticket 1.5: Eliminación de duplicidades (~50 líneas) Cambios principales: - Creada estructura Clean Architecture en backend/src/ - Schemas Zod compartidos en backend/src/shared/schemas/ - Refactorización modular de drugs y procedures - Utilidades genéricas en src/utils/ (filter, validation) - Eliminados scripts obsoletos y documentación antigua - Corregidos errores: QueryClient, import test-error-handling - Build verificado y funcionando correctamente
40 lines
921 B
YAML
40 lines
921 B
YAML
environment:
|
|
matrix:
|
|
- nodejs_version: "14"
|
|
platform: x64
|
|
- nodejs_version: "14"
|
|
platform: x86
|
|
- nodejs_version: "16"
|
|
platform: x64
|
|
- nodejs_version: "16"
|
|
platform: x86
|
|
- nodejs_version: "18"
|
|
platform: x64
|
|
|
|
install:
|
|
- where npm
|
|
- where node
|
|
- ps: Install-Product node $env:nodejs_version $env:platform
|
|
|
|
build: off
|
|
|
|
artifacts:
|
|
- path: 'build/stage/**/bcrypt*.tar.gz'
|
|
|
|
test_script:
|
|
- node --version
|
|
- npm --version
|
|
- npm test
|
|
|
|
after_test:
|
|
- .\node_modules\.bin\node-pre-gyp package
|
|
|
|
on_success:
|
|
- ps: >
|
|
if ($env:NODE_PRE_GYP_GITHUB_TOKEN -ne $null -and $env:APPVEYOR_REPO_TAG_NAME -match '^v(0|[1-9]+)\.(0|[1-9]+)\.(0|[1-9]+)(-\w)?$') {
|
|
echo "Publishing $env:APPVEYOR_REPO_TAG_NAME"
|
|
npm install node-pre-gyp-github@1.4.3
|
|
./node_modules/.bin/node-pre-gyp-github publish --release
|
|
}
|
|
|