Add `make lint` and specify as self-hosted

This commit is contained in:
Sage Vaillancourt 2024-06-30 11:03:33 -04:00
parent c816d26348
commit faf975da12
2 changed files with 5 additions and 2 deletions

View File

@ -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 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: clean:
rm *.zip rm *.zip

View File

@ -4,7 +4,7 @@
"description": "An extension with a few convenience features for bitbucket server", "description": "An extension with a few convenience features for bitbucket server",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "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": { "repository": {
"type": "git", "type": "git",