From 02f27f281e1b15489be4ec52c03478e0633e4ee4 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 22 Nov 2021 14:45:20 -0300 Subject: [PATCH] make prettier --- Makefile | 4 ++++ package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index ef48681..bf0f79f 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,10 @@ npx: ## Correr comandos con npx (args="run") npm: ## Correr comandos con npm (args="install -g paquete") $(MAKE) hain args="npm $(args)" +prettier: ## Arreglar JS (por ahora) + $(MAKE) yarn args="prettier --write _packs/" + + serve: /etc/hosts $(hain)/run/nginx/nginx.pid ## Servidor de desarrollo @echo "Iniciado servidor web en https://$(domain):4000/" diff --git a/package.json b/package.json index 85888a8..9ccebe5 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "device-detector-js": "^2.2.10", "dotenv-webpack": "^6.0.0", "liquidjs": "^9.14.0", + "prettier": "^2.4.1", "regenerator-runtime": "^0.13.5", "sassdoc": "^2.7.3", "sassdoc-theme-herman": "^4.0.2", diff --git a/yarn.lock b/yarn.lock index af4b4c9..cffdfb6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5161,6 +5161,11 @@ prepend-http@^2.0.0: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= +prettier@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c" + integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA== + process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"