From 8b01dd24862b5dcf45dee49a6838b3d40bb8d422 Mon Sep 17 00:00:00 2001 From: CaioWzy Date: Sat, 22 Jun 2019 22:26:02 -0300 Subject: [PATCH] =?UTF-8?q?Renomeia=20diret=C3=B3rio=20webext/=20para=20sr?= =?UTF-8?q?c/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 8 ++++---- {webext => src}/LICENSE.txt | 0 {webext => src}/background.js | 0 {webext => src}/content-start.js | 0 {webext => src}/content.js | 0 {webext => src}/icon.png | Bin {webext => src}/manifest.json | 0 {webext => src}/options.html | 0 {webext => src}/options.js | 0 9 files changed, 4 insertions(+), 4 deletions(-) rename {webext => src}/LICENSE.txt (100%) rename {webext => src}/background.js (100%) rename {webext => src}/content-start.js (100%) rename {webext => src}/content.js (100%) rename {webext => src}/icon.png (100%) rename {webext => src}/manifest.json (100%) rename {webext => src}/options.html (100%) rename {webext => src}/options.js (100%) diff --git a/Makefile b/Makefile index 2887f57..20d5d96 100644 --- a/Makefile +++ b/Makefile @@ -8,19 +8,19 @@ clean: rm -rf "$(DIST_DIR)" lint: find . -name '*.json' -exec python -c 'import json; json.load(open("{}"))' \; - npx eslint webext + npx eslint src pre-build: clean set -e ; \ for i in $(BROWSERS) ; do \ SRC_DIR="$(DIST_DIR)/$$i/src" ; \ mkdir -p "$$SRC_DIR" ; \ - cp -r webext/* "$$SRC_DIR" ; \ + cp -r src/* "$$SRC_DIR" ; \ if [ $$i != "firefox" ]; then \ perl -0pe 's/,\s+"applications": \{(.*?\}){2}//s' \ - webext/manifest.json > "$$SRC_DIR/manifest.json" ; \ + src/manifest.json > "$$SRC_DIR/manifest.json" ; \ else \ perl -0pe 's/,\s+"update_url": "https:\/\/burlesco.github.io\/burlesco-update\/chromium.xml"//s' \ - webext/manifest.json > "$$SRC_DIR/manifest.json" ; \ + src/manifest.json > "$$SRC_DIR/manifest.json" ; \ fi ; \ done build: pre-build diff --git a/webext/LICENSE.txt b/src/LICENSE.txt similarity index 100% rename from webext/LICENSE.txt rename to src/LICENSE.txt diff --git a/webext/background.js b/src/background.js similarity index 100% rename from webext/background.js rename to src/background.js diff --git a/webext/content-start.js b/src/content-start.js similarity index 100% rename from webext/content-start.js rename to src/content-start.js diff --git a/webext/content.js b/src/content.js similarity index 100% rename from webext/content.js rename to src/content.js diff --git a/webext/icon.png b/src/icon.png similarity index 100% rename from webext/icon.png rename to src/icon.png diff --git a/webext/manifest.json b/src/manifest.json similarity index 100% rename from webext/manifest.json rename to src/manifest.json diff --git a/webext/options.html b/src/options.html similarity index 100% rename from webext/options.html rename to src/options.html diff --git a/webext/options.js b/src/options.js similarity index 100% rename from webext/options.js rename to src/options.js