More tweaks to release process
This commit is contained in:
+5
-1
@@ -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
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "es2015",
|
||||
"module": "commonjs",
|
||||
"strict": true,
|
||||
"jsx": "react",
|
||||
"noUnusedLocals": true,
|
||||
|
||||
Reference in New Issue
Block a user