File: build

package info (click to toggle)
node-vega-embed 6.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,016 kB
  • sloc: javascript: 50; sh: 8; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

printf "// generated with build-style.sh\nexport default \`" > src/style.ts
node-sass vega-embed.scss >> src/style.ts
echo "\`;" >> src/style.ts

rollup -c

# Without rollup-plugin-ts, it's difficult to reproduce TS declaration build
cp debian/vega-embed.module.d.ts build/
#tsc --emitDeclarationOnly --declaration --moduleResolution node --declarationDir ./build
#mv build/src/index.d.ts `pkgjs-pjson . types`
#mv build/src/*.d.ts build/
#rmdir build/src