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 77 "start" : " parcel" ,
88 "build" : " yarn clean && parcel build --public-url ./" ,
99 "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"
1112 },
1213 "devDependencies" : {
1314 "autoprefixer" : " ^10.4.2" ,
2425 "wavefile" : " ^11.0.0" ,
2526 "wavesurfer.js" : " ^6.2.0"
2627 }
27- }
28+ }
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ <h3>SHORTCUTS</h3>
5656 < section class ="footer "> this is an < a href ="https://github.com/knandersen/morphaweb " target ="_blank "> open source
5757 project</ a >
5858 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 >
5961 </ section >
6062 </ section >
6163
Original file line number Diff line number Diff line change 11import Morphaweb from './Morphaweb'
2+ import version from 'bundle-text:../assets/VERSION.txt'
23
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