Commit b9423af2cd45a86722df9ab973b4db265a8fcaa3
move annotation tool to annotation repo
wanderer committed on 3/21/2018, 11:45:31 PMParent: 158d5b428af69e19901680edef92ece0a876a97c
Files changed
tools/injectTypes | deleted |
tools/testTypeInfo.json | deleted |
tools/injectTypes | ||
---|---|---|
@@ -1,15 +1,0 @@ | ||
1 | -#!/usr/bin/env node | |
2 | -const fs = require('fs') | |
3 | -const types = require('../customTypes') | |
4 | - | |
5 | -const typeinfoFile = process.argv[2] | |
6 | -const inputWasmFile = process.argv[3] | |
7 | -const outputWasmFile = process.argv[4] | |
8 | - | |
9 | -const typeinfo = JSON.parse(fs.readFileSync(typeinfoFile)) | |
10 | -const inputWasm = fs.readFileSync(inputWasmFile) | |
11 | - | |
12 | -const buf = types.encodeJSON(typeinfo) | |
13 | -const outputWasm = types.injectCustomSection(buf, inputWasm) | |
14 | - | |
15 | -fs.writeFileSync(outputWasmFile, outputWasm) |
Built with git-ssb-web