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
|
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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue