Add `make lint` and specify as self-hosted
This commit is contained in:
parent
c816d26348
commit
faf975da12
5
Makefile
5
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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue