sheetjs-clone/demos/angular2/nscript.sh

11 lines
307 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
2022-04-14 07:27:38 +00:00
npm install --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
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