mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 01:27:12 +02:00
Remove install-nodejs and related make targets (#3809)
This commit is contained in:
parent
ab9f5ae100
commit
a3f430ef03
19
Makefile
19
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: all clean lint install chromium firefox nodejs install-nodejs-link install-nodejs uninstall-nodejs
|
.PHONY: all clean lint chromium firefox nodejs
|
||||||
|
|
||||||
sources := $(wildcard src/* src/*/* src/*/*/* src/*/*/*/*)
|
sources := $(wildcard src/* src/*/* src/*/*/* src/*/*/*/*)
|
||||||
platform := $(wildcard platform/* platform/*/*)
|
platform := $(wildcard platform/* platform/*/*)
|
||||||
@ -27,23 +27,6 @@ dist/build/uBlock0.nodejs: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
|||||||
# Build the Node.js package.
|
# Build the Node.js package.
|
||||||
nodejs: dist/build/uBlock0.nodejs
|
nodejs: dist/build/uBlock0.nodejs
|
||||||
|
|
||||||
# Install the Node.js package as a link in the node_modules directory. This is
|
|
||||||
# convenient for development, but it breaks when the dist/build directory is
|
|
||||||
# cleaned up.
|
|
||||||
install-nodejs-link: dist/build/uBlock0.nodejs
|
|
||||||
npm install dist/build/uBlock0.nodejs --no-save
|
|
||||||
|
|
||||||
dist/build/uBlock0.nodejs.tgz: dist/build/uBlock0.nodejs
|
|
||||||
cd dist/build && tar czf uBlock0.nodejs.tgz uBlock0.nodejs
|
|
||||||
|
|
||||||
# Install the Node.js package.
|
|
||||||
install-nodejs: dist/build/uBlock0.nodejs.tgz
|
|
||||||
npm install dist/build/uBlock0.nodejs.tgz --no-save
|
|
||||||
|
|
||||||
# Uninstall the Node.js package.
|
|
||||||
uninstall-nodejs:
|
|
||||||
npm uninstall '@gorhill/ubo-core' --no-save
|
|
||||||
|
|
||||||
lint: nodejs
|
lint: nodejs
|
||||||
eslint -c platform/nodejs/eslintrc.json \
|
eslint -c platform/nodejs/eslintrc.json \
|
||||||
dist/build/uBlock0.nodejs/js \
|
dist/build/uBlock0.nodejs/js \
|
||||||
|
Loading…
Reference in New Issue
Block a user