From 767f680edc037d00898a4ae6ae5b6003cce910a2 Mon Sep 17 00:00:00 2001 From: Lajos Koszti Date: Wed, 9 Aug 2023 08:14:48 +0200 Subject: [PATCH] use makefile to execute tasks move lint command to makefile to have only commands in one place --- Makefile | 5 +++-- package.json | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 08758f8..a294a74 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ all: test -doc: - yuidoc . test: @(cd tests && $(MAKE)) + +lint: + @node_modules/.bin/eslint index.js lib/ tests --fix diff --git a/package.json b/package.json index 8ad3e3a..5a04816 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "jagiella " ], "scripts": { - "test": "make", - "lint": "eslint index.js lib/ tests --fix" + "test": "make test", + "lint": "make lint" }, "license": "MIT", "version": "2.2.0",