Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
extension:pack-src
Browse files Browse the repository at this point in the history
  • Loading branch information
sballesteros committed Dec 6, 2019
1 parent f428a61 commit 6e21c82
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ stats.json

extension.zip
extension-firefox.zip
extension-src.zip

rapid-prereview-index.txt.gz
rapid-prereview-docs.txt.gz
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions extension/manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6e21c82

Please sign in to comment.