deckbrowser and overview

This commit is contained in:
Damien Elmes 2019-12-18 13:21:58 +10:00
parent f080616eed
commit de29b02089
8 changed files with 14 additions and 22 deletions

View File

@ -93,4 +93,4 @@ JSDEPS := $(patsubst ts/%.ts, web/%.js, $(TSDEPS))
js: $(JSDEPS)
web/%.js: ts/%.ts
(cd ts && ./node_modules/.bin/tsc $(notdir $<) --outFile ../web/$(notdir $@))
(cd ts && ./node_modules/.bin/tsc lib/global.d.ts $(notdir $<) --outFile ../web/$(notdir $@))

1
ts/lib/global.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare function pycmd(cmd: string): any;

9
ts/package-lock.json generated
View File

@ -13,6 +13,15 @@
"@types/sizzle": "*"
}
},
"@types/jqueryui": {
"version": "1.12.9",
"resolved": "https://registry.npmjs.org/@types/jqueryui/-/jqueryui-1.12.9.tgz",
"integrity": "sha512-bHE7BiG+5Sviy/eA9Npz5HHF3hv40XjaEbpYtSJPaNwuyxhSJ0qWlE8C5DgNMfobVOZ2aSTrM1iGDCGmvlbxOg==",
"dev": true,
"requires": {
"@types/jquery": "*"
}
},
"@types/mathjax": {
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/@types/mathjax/-/mathjax-0.0.36.tgz",

View File

@ -12,6 +12,7 @@
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@types/jquery": "^3.3.31",
"@types/jqueryui": "^1.12.9",
"@types/mathjax": "0.0.36",
"typescript": "^3.7.3"
}

View File

@ -1,21 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"sourceMap": false,
"baseUrl": ".",
"paths": {
"*": [
"node_modules/*",
"src/types/*"
]
}
},
"include": [
"src/**/*"
]
}

2
web/.gitignore vendored
View File

@ -1 +1,3 @@
webview.js
deckbrowser.js
overview.js