A WebExtension to redirect ALL YouTube and Twitter requests to their alternative interfaces. https://addons.mozilla.org/firefox/addon/invidition/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
715 B

git_watched_files := $(shell git ls-files)
extension_files := $(shell find extension -type f -not -name '*.map')
extension_sourcemap_files := $(shell find extension -type f)
.PHONY: build watch clean package package-sm
all: build package
extension.zip: $(extension_files)
cd extension && \
find . -type f -not -name '*.map' | xargs zip ../extension.zip
extsm.zip: $(extension_sourcemap_files)
cd extension && \
find . -type f | xargs zip ../extsm.zip
sources.zip: $(git_watched_files)
git ls-files | xargs zip sources.zip
package: extension.zip sources.zip
package-sm: build extsm.zip
npm run build
npm run build:watch
rm -r extension/dist/*;
rm -r extension.zip sources.zip