npm install --save-dev vitest jsdom- React Testing Library
npm install --save-dev vitest jsdom| import colors from 'colors' | |
| import server from './server' | |
| const port = process.env.PORT || 4000 | |
| server.listen(port, () => { | |
| console.log( colors.cyan.bold( `REST API en el puerto ${port}`)) | |
| }) |
| # Install dependencies only when needed | |
| FROM node:18-alpine3.15 AS deps | |
| # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
| RUN apk add --no-cache libc6-compat | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile | |
| # Build the app with cache dependencies | |
| FROM node:18-alpine3.15 AS builder |
| (function (document) { | |
| var checkCount = 0, | |
| formatFound = false; | |
| function setHTMLClass(height, className) { | |
| checkCount++; | |
| if (height == 2) { | |
| formatFound = true; | |
| document.documentElement.className += " " + className; | |
| } else { |
| "imagenes": { | |
| "prefix": "pic", | |
| "body": [ | |
| "<picture>", | |
| "<source", | |
| "\t sizes=\"1920w, 1280w, 640w\" ", | |
| "\t srcset=\"img/imagen.avif 1920w, \n\t\t\t img/imagen-1280.avif 1280w, \n\t\t\t img/imagen-640.avif 640w\" ", | |
| "\t type=\"image/avif\">", | |
| "<source", | |
| "\t sizes=\"1920w, 1280w, 640w\" ", |