sheetjs/demos/angular2/nscript.sh

11 lines
253 B
Bash
Raw Normal View History

#!/bin/bash
if [ ! -e SheetJSNS ]; then
2021-10-03 01:41:36 +00:00
ns create SheetJSNS --ng
cd SheetJSNS
npm install xlsx
2021-10-03 01:41:36 +00:00
cd ..
fi
2021-10-03 01:41:36 +00:00
<../../dist/xlsx.full.min.js sed 's/require("fs")/null/g' > SheetJSNS/src/app/xlsx.full.min.js
cp nscript.ts SheetJSNS/src/app/app.component.ts