From 29cd208cd55b053ad5b9e29bce22d73be11a9562 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Fri, 14 Oct 2016 00:31:27 +0100 Subject: [PATCH] chore: add zip packaging script --- README.md | 18 ++++++++++++++++++ package.json | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b463b0a..36894a9 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,21 @@ View screenshots for games within the Steam search page with this extension. Go ## Coming soon - Game videos included in preview. + +## Install + +`npm install` + +## Build + +`npm run build` + +Then you can load the unpacked extension that is in the newly created `build` directory. + +Alternatively, use `npm run watch` if you want this build to run any time file changes are detected. + +## Deploy + +`npm run package` + +Produces a zip file that can be uploaded to the Chrome Web Store. \ No newline at end of file diff --git a/package.json b/package.json index de778ae..51b66ba 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Chrome extension for previewing games on Steam store search page", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "webpack --config webpack.config.js", + "build": "webpack", + "package": "webpack && zip -r search-preview-for-steam.zip build/", "watch": "webpack --watch" }, "repository": {