File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 7
7
"start" : " parcel" ,
8
8
"build" : " yarn clean && parcel build --public-url ./" ,
9
9
"clean" : " rm -rf dist/" ,
10
- "deploy" : " yarn build && gh-pages -d dist"
10
+ "deploy" : " yarn generateVersion && yarn build && gh-pages -d dist" ,
11
+ "generateVersion" : " git rev-parse --short HEAD > assets/VERSION.txt"
11
12
},
12
13
"devDependencies" : {
13
14
"autoprefixer" : " ^10.4.2" ,
24
25
"wavefile" : " ^11.0.0" ,
25
26
"wavesurfer.js" : " ^6.2.0"
26
27
}
27
- }
28
+ }
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ <h3>SHORTCUTS</h3>
56
56
< section class ="footer "> this is an < a href ="https://github.com/knandersen/morphaweb " target ="_blank "> open source
57
57
project</ a >
58
58
by kevin nørby andersen. all data is processed client-side, which means it stays with you and only you.
59
+ < br />
60
+ < strong > version < span id ="version "> </ span > </ strong >
59
61
</ section >
60
62
</ section >
61
63
Original file line number Diff line number Diff line change 1
1
import Morphaweb from './Morphaweb'
2
+ import version from 'bundle-text:../assets/VERSION.txt'
2
3
3
- const morphaweb = new Morphaweb ( )
4
+ const morphaweb = new Morphaweb ( )
5
+
6
+ const versionElement = document . getElementById ( 'version' )
7
+ versionElement . textContent = version
You can’t perform that action at this time.
0 commit comments