-default: preview
-
-build: docker-build
+default: package
start:
docker-compose up
docker-build:
docker-compose build
+
+build: create-build-folder
+ cd extension && pnpm build
+
+package: package-for-firefox package-for-chrome
+
+package-for-firefox: build
+ cd extension && zip -r ../build/junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/
+
+package-for-chrome: build
+ cd extension && zip -r ../build/junction.zip manifest.json junction.js build/content_script.js icons/ sounds/
+
+create-build-folder:
+ mkdir -p build