From 6e21c820e94269a765b81b5e475abd3d6d5c3aaa Mon Sep 17 00:00:00 2001 From: sballesteros Date: Fri, 6 Dec 2019 10:28:12 -0800 Subject: [PATCH] extension:pack-src --- .gitignore | 1 + README.md | 10 ++++++++++ extension/manifest.json | 6 ++++-- package.json | 1 + 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index dd778a0..97ebeb1 100644 --- a/.gitignore +++ b/.gitignore @@ -93,6 +93,7 @@ stats.json extension.zip extension-firefox.zip +extension-src.zip rapid-prereview-index.txt.gz rapid-prereview-docs.txt.gz diff --git a/README.md b/README.md index 8c0e6be..6bc67ea 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,16 @@ To add stories, add a file that ends with `.stories.js` in the `./src/components 5. Upload the created `extension-firefox.zip` file to the Firefox web store +Note: to include the unbundled source code of the extension (asked by Mozilla +add on) run `npm run extension:pack-src` and include the following text when you +upload the generated `extension-src.zip`: + +> The extension is built with webpack (config is +> webpack-extension.config.js). See more details on the README.md file. The +> source code is also available on GitHub: +> https://github.com/prereview/rapid-prereview/ + + ### Tests Once cloudant and redis are running run: diff --git a/extension/manifest.json b/extension/manifest.json index 0b2616f..4ba678f 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Outbreak Science Rapid PREreview", - "version": "1.0", + "version": "1.1", "description": "Outbreak Science Rapid PREreview facilitates rapid, open review of preprint related to outbreaks", "permissions": [ "tabs", @@ -49,5 +49,7 @@ "run_at": "document_end" } ], - "web_accessible_resources": ["fonts/*.woff", "fonts/*.woff2"] + "web_accessible_resources": ["fonts/*.woff", "fonts/*.woff2"], + "homepage_url": "https://outbreaksci.prereview.org/app", + "author": "Sebastien Ballesteros" } diff --git a/package.json b/package.json index 7e9320d..5f7769e 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "extension:build-firefox": "cross-env NODE_ENV=production cross-env EXTENSION_BROwSER_ENV=firefox webpack --config webpack-extension.config.js --mode production", "extension:pack": "zip -r -FS extension.zip extension/* --exclude extension/.DS_Store", "extension:pack-firefox": "(cd extension && zip -r -FS ../extension-firefox.zip * --exclude .DS_Store)", + "extension:pack-src": "zip -r -FS extension-src.zip src/ views/ public/ test/ extension/ webpack-extension.config.js webpack.config.js README.md LICENSE --exclude **/*.DS_Store ", "start": "babel-node ./src/dev-server.js | pino-pretty", "start:app-prod": "node ./dist/server.js", "start:service-prod": "node ./dist/service.js",