mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 02:12:44 +01:00
Move linting out of tools/make-nodejs.sh (#3803)
This commit is contained in:
parent
e86a4cee87
commit
4ea0d134ad
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: all clean install chromium firefox nodejs install-nodejs-link install-nodejs uninstall-nodejs
|
||||
.PHONY: all clean lint install chromium firefox nodejs install-nodejs-link install-nodejs uninstall-nodejs
|
||||
|
||||
sources := $(wildcard src/* src/*/* src/*/*/* src/*/*/*/*)
|
||||
platform := $(wildcard platform/* platform/*/*)
|
||||
@ -44,6 +44,11 @@ install-nodejs: dist/build/uBlock0.nodejs.tgz
|
||||
uninstall-nodejs:
|
||||
npm uninstall '@gorhill/ubo-core' --no-save
|
||||
|
||||
lint: nodejs
|
||||
eslint -c platform/nodejs/eslintrc.json \
|
||||
dist/build/uBlock0.nodejs/js \
|
||||
dist/build/uBlock0.nodejs/*.js
|
||||
|
||||
# Update submodules.
|
||||
update-submodules:
|
||||
tools/update-submodules.sh
|
||||
|
@ -56,11 +56,6 @@ cp platform/nodejs/*.js $DES/
|
||||
cp platform/nodejs/*.json $DES/
|
||||
cp LICENSE.txt $DES/
|
||||
|
||||
# Ignore eslint when building with GitHub Actions
|
||||
if [ -z "$GITHUB_REF" ]; then
|
||||
eslint -c platform/nodejs/eslintrc.json $DES/js $DES/*.js
|
||||
fi
|
||||
|
||||
if [ "$1" = all ]; then
|
||||
echo "*** uBlock0.nodejs: Creating plain package..."
|
||||
pushd $(dirname $DES/) > /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user