skia2/experimental/tskit/Makefile
Kevin Lubick 38320680cb [canvaskit] Proof of Concept for Typescript-build structure
This CL demonstrates the following
 - Interface code written in TS
 - Having support for modular builds (e.g. making Paragraph
   optional)
 - Avoiding monolithic interface files
 - Using eslint to enforce style and avoid errors.
 - Working debug and release build (using example.html)

Many of these files would be generated via a tool (that
has not been written yet).

go/ts-canvaskit

Change-Id: Ibe9a214d5897b09920cef01f6e95302f3cf30d5c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/392297
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2021-04-09 19:01:49 +00:00

25 lines
529 B
Makefile

debug:
npx tsc
./compile.sh debug
rm -rf ./npm_build/bin
mkdir -p ./npm_build/bin
cp ../../out/tskit_debug/tskit.js ./npm_build/bin
cp ../../out/tskit_debug/tskit.wasm ./npm_build/bin
release:
npx tsc
./compile.sh
rm -rf ./npm_build/bin
mkdir -p ./npm_build/bin
cp ../../out/tskit/tskit.js ./npm_build/bin
cp ../../out/tskit/tskit.wasm ./npm_build/bin
serve:
echo "Go check out http://localhost:8000/npm_build/example.html"
python serve.py
lint:
npx eslint . --ext .ts
apply-lint:
npx eslint . --ext .ts --fix