More tweaks to release process

This commit is contained in:
Jamie Wong
2018-04-05 00:53:21 -07:00
parent 045be2831b
commit 971c0a2dc4
3 changed files with 9 additions and 8 deletions
+5 -1
View File
@@ -13,6 +13,10 @@ import {Flamechart} from './flamechart'
import { FlamechartView } from './flamechart-view'
import { FontFamily, FontSize, Colors } from './style'
declare function require(x: string): any
const exampleProfileURL = require('./sample/perf-vertx-stacks-01-collapsed-all.txt')
const enum SortOrder {
CHRONO,
LEFT_HEAVY
@@ -286,7 +290,7 @@ export class Application extends ReloadableComponent<{}, ApplicationState> {
loadExample = () => {
this.setState({ loading: true })
const filename = 'perf-vertx-stacks-01-collapsed-all.txt'
fetch(filename).then(resp => resp.text()).then(data => {
fetch(exampleProfileURL).then(resp => resp.text()).then(data => {
this.loadFromString(filename, data)
})
}
+3 -6
View File
@@ -7,7 +7,6 @@
# Fail on first error
set -e
COMMITHASH=`git rev-parse HEAD`
OUTDIR=`pwd`/dist/release
echo $OUTDIR
@@ -18,11 +17,9 @@ node_modules/.bin/tsc --noEmit
rm -rf "$OUTDIR"
mkdir -p "$OUTDIR"
# Place the current commit into the build dir to easiy identify releases
git rev-parse HEAD > "$OUTDIR"/commit
# Copy a couple of static files into the release directory
cp sample/perf-vertx-stacks-01-collapsed-all.txt "$OUTDIR"
# Place info about the current commit into the build dir to easiy identify releases
date > "$OUTDIR"/release.txt
git rev-parse HEAD >> "$OUTDIR"/release.txt
# Build the compiled assets
node_modules/.bin/parcel build index.html --out-dir "$OUTDIR" --detailed-report
+1 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "es2015",
"module": "commonjs",
"strict": true,
"jsx": "react",
"noUnusedLocals": true,