1
0
forked from GitHub/gf-core

Move everything to javascript dir. Add jspgf API, test files for both Node and web.

This commit is contained in:
John J. Camilleri
2022-08-01 14:11:45 +02:00
parent 63828de0c2
commit 3d272ac053
10 changed files with 206 additions and 15 deletions

View File

@@ -1,10 +1,10 @@
#! /usr/bin/env bash
set -e
cd ../c
# Build inside Docker image
IMAGE="gf/build-c-runtime-wasm"
docker build . --file Dockerfile-wasm --tag $IMAGE
docker build ../c --file Dockerfile --tag $IMAGE
# Copy bulit files from container to host
docker run --rm --volume "$PWD":/tmp/host $IMAGE bash -c "cp pgf.js pgf.wasm /tmp/host/"
mkdir -p .libs
docker run --rm --volume "$PWD":/tmp/host $IMAGE bash -c "cp pgf.js pgf.wasm /tmp/host/.libs/"