Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jtormey committed Aug 24, 2020
1 parent 0108d90 commit d4ed71b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
build
dist
.env
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,16 @@ There are some minor style and structure issues, as my ProseMirror implementatio
* ProseMirror (+ custom plugin)
* Chrome extension (background script, context script, popup menu, `chrome.storage`)
* Express (+ Web Sockets)

## Installation

See the [releases](https://github.com/jtormey/linear-collab/releases) page.

After downloading a release build, go to [your extensions](chrome://extensions/) to install it ("Load unpacked").

## Development

* `yarn build`: Build the extension
* `yarn build:watch`: Build the extension and watch for changes
* `yarn start`: Start the socket server
* `VER=$VER yarn release`: Build a new release
13 changes: 13 additions & 0 deletions extpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export NODE_ENV="production"
export BUILD_NAME="linear-collab"

rm -rf build

echo "Building..."

yarn build

echo "Packaging..."

mkdir -p dist
zip -r dist/$BUILD_NAME-v$VER-$(date +%s).zip build
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"main": "src/index.js",
"license": "MIT",
"scripts": {
"start": "node src/server.js",
"release": "sh extpackage.sh",
"build": "webpack-cli",
"build:watch": "webpack-cli -w"
},
Expand Down

0 comments on commit d4ed71b

Please sign in to comment.