From 85cf692ec3e4320ec264036540625d9307b4ec3c Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Fri, 10 Nov 2017 14:12:09 +0100 Subject: [PATCH] Make lint target reliable Previously only the files newer than the timestamp were passed to the linter. Changing the linter config or version did not trigger a lint of all the files. With this commit, all files are linted on changes. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bd8c90649b7c..c079c770bf53 100644 --- a/Makefile +++ b/Makefile @@ -282,7 +282,7 @@ gh-pages: .build/ngeo-$(GITHUB_USERNAME)-gh-pages: git clone --depth=1 --branch gh-pages $(GIT_REMOTE_URL) $@ -.build/eslint.timestamp: .build/node_modules.timestamp .eslintrc.yaml .eslintrc-es6.yaml \ +.build/eslint.timestamp: package.json .build/node_modules.timestamp .eslintrc.yaml .eslintrc-es6.yaml \ $(SRC_JS_FILES) \ $(TEST_JS_FILES) \ $(GMF_TEST_JS_FILES) \ @@ -290,7 +290,7 @@ gh-pages: $(GMF_SRC_JS_FILES) \ $(GMF_EXAMPLES_JS_FILES) \ $(GMF_APPS_JS_FILES) - ./node_modules/.bin/eslint $(filter-out .build/node_modules.timestamp .eslintrc.yaml .eslintrc-es6.yaml, $?) + ./node_modules/.bin/eslint $(filter-out package.json .build/node_modules.timestamp .eslintrc.yaml .eslintrc-es6.yaml, $^) touch $@ dist/ngeo.js: .build/ngeo.json \