From faf975da12f2f576f0f42e7c171a24b9991b9025 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 30 Jun 2024 11:03:33 -0400 Subject: [PATCH] Add `make lint` and specify as self-hosted --- Makefile | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9cbc3a7..c0f3e1e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -all: *.json *.js img/* *.md *.txt +all: zip -r bitbucket-fork-redirect.zip * -x '.git/*' -x 'server/*' -x 'node_modules/*' -x img/screenshot.png -x .gitignore -x Makefile +lint: + npm run lint + clean: rm *.zip diff --git a/package.json b/package.json index d5119c9..e998f6a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "An extension with a few convenience features for bitbucket server", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "lint": "make all && addons-linter bitbucket-fork-redirect.zip" + "lint": "make all && addons-linter --self-hosted bitbucket-fork-redirect.zip" }, "repository": { "type": "git",