Skip to content

Commit

Permalink
Bump version to 0.2.0 and prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpai committed Jan 3, 2019
1 parent a1e8dc8 commit f6879b3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ typings/
.next

/dist
/out
/out
/release
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "hammermonkey",
"productName": "Hammermonkey",
"version": "0.1.0",
"description": "A TestCafe-Hammerhead implementation of userscript manager",
"version": "0.2.0",
"description": "A web debugger based on TestCafe Hammerhead",
"main": "src/index.entry.js",
"scripts": {
"start": "npm run watch & electron -r @babel/register .",
Expand All @@ -14,7 +14,8 @@
"watch-css": "npm run compile-css; node-sass src --output out --recursive --watch",
"watch": "npm run watch-css",
"pack": "npm run clean; npm run compile; electron-builder --dir",
"dist": "npm run clean; npm run compile; electron-builder"
"dist": "npm run clean; npm run compile; electron-builder",
"release": "npm run dist; ./script/release.sh"
},
"repository": {
"type": "git",
Expand All @@ -39,7 +40,7 @@
"babel-plugin-transform-decorators": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"cpy-cli": "^2.0.0",
"electron": "^3.0.5",
"electron": "^3.0.13",
"electron-builder": "^20.28.4",
"eslint": "^5.5.0",
"eslint-plugin-react": "^7.11.1",
Expand Down
8 changes: 8 additions & 0 deletions script/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
#CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
VERSION=$(node -p -e "require('./package.json').version")
RELEASE_DIR="release/$VERSION"

if [ -d "$RELEASE_DIR" ]; then rm -rf $RELEASE_DIR; fi
mkdir -p $RELEASE_DIR
cp dist/*.dmg $RELEASE_DIR

0 comments on commit f6879b3

Please sign in to comment.