Upgrade libraries & change release procedure (#8)

Previously, I was doing a hacky release process where I had `index.html` serve contents for `jlfwong.github.io/speedscope`, but used `dev.html` locally. This seems like it broke with the latest parcel release, so I just revamped the release process instead.

Now, the `release.sh` script creates a temporary shallow clone of the repository, overwrites its contents with build artifacts, runs a local server to verify it's working, then commits and pushes to the `gh-pages` branches.
This commit is contained in:
Jamie Wong
2018-04-05 00:15:42 -07:00
committed by GitHub
parent aee0554635
commit 1987e83bde
20 changed files with 8476 additions and 1247 deletions
+12 -9
View File
@@ -4,18 +4,21 @@
"description": "",
"main": "index.js",
"scripts": {
"serve": "parcel -o dev.html",
"release": "tsc --noEmit && parcel build speedscope.tsx"
"serve": "parcel dev.html --open --no-autoinstall",
"release": "./release.sh"
},
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions"
],
"author": "",
"license": "MIT",
"devDependencies": {
"aphrodite": "^1.2.5",
"parcel-bundler": "^1.2.1",
"preact": "^8.2.7",
"regl": "^1.3.0",
"tsify": "^3.0.4",
"typescript": "^2.6.1",
"uglify-es": "^3.2.2"
"aphrodite": "2.1.0",
"parcel-bundler": "1.7.0",
"preact": "8.2.7",
"regl": "1.3.1",
"typescript": "2.8.1",
"uglify-es": "3.2.2"
}
}