From 38ff3ee4de2b6577fd86064b745e54c0bbdf777d Mon Sep 17 00:00:00 2001 From: ronreg-ribdev Date: Sat, 2 Jan 2021 23:39:54 -0800 Subject: [PATCH] Add yarn, just scripts to build extension This requires some extra manual copying because parcel doesn't yet understand the manifest format. The as-yet-open pull request https://github.com/parcel-bundler/parcel/pull/4313 seems like it should handle this. --- extension/package.json | 3 +++ justfile | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/extension/package.json b/extension/package.json index a9fe0e6..cb32869 100644 --- a/extension/package.json +++ b/extension/package.json @@ -12,5 +12,8 @@ "license": "UNLICENSED", "devDependencies": { "parcel": "^1.12.4" + }, + "scripts": { + "build-dist": "parcel build src/background/page.html src/options/options.html src/popup/popup.html" } } diff --git a/justfile b/justfile index ab74192..4e9ed3e 100644 --- a/justfile +++ b/justfile @@ -4,3 +4,8 @@ copy-to-pier: build-javascript: yarn --cwd gall-app run build-development + +build-extension: + yarn --cwd extension run build-dist + cp -r extension/src/icons/ extension/dist/ + cp extension/src/manifest.json extension/dist/