Updated declaration files
This commit is contained in:
parent
1d4a428284
commit
97d0443cf5
8 changed files with 24 additions and 54 deletions
|
@ -24,12 +24,12 @@ cd "$BASEDIR/../"
|
||||||
#Note: For the client we have to use the given file
|
#Note: For the client we have to use the given file
|
||||||
|
|
||||||
#Web
|
#Web
|
||||||
execute_tsc -p web/tsconfig/tsdeclaration.json
|
npm run dtsgen -- --config web/tsconfig/dtsconfig.json -v
|
||||||
replace_tribble web/declarations/exports.d.ts
|
replace_tribble web/declarations/exports.d.ts
|
||||||
echo "Generated web declarations"
|
echo "Generated web declarations"
|
||||||
|
|
||||||
#Shared
|
#Shared
|
||||||
execute_tsc -p shared/tsconfig/tsdeclaration.json
|
npm run dtsgen -- --config shared/tsconfig/dtsconfig.json -v
|
||||||
replace_tribble shared/declarations/exports.d.ts
|
replace_tribble shared/declarations/exports.d.ts
|
||||||
echo "Generated shared declarations"
|
echo "Generated shared declarations"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ if [ -e ${LOADER_FILE} ]; then
|
||||||
echo "Failed to remove loader file!\nThis could be critical later!"
|
echo "Failed to remove loader file!\nThis could be critical later!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
result=$(execute_tsc -p tsconfig/tsdeclaration_loader.json)
|
npm run dtsgen -- --config $(pwd)/tsconfig/dtsconfig_loader.json -v
|
||||||
if [ ! -e ${LOADER_FILE} ]; then
|
if [ ! -e ${LOADER_FILE} ]; then
|
||||||
echo "Failed to generate definitions"
|
echo "Failed to generate definitions"
|
||||||
echo "$result"
|
echo "$result"
|
||||||
|
|
9
shared/tsconfig/dtsconfig.json
Normal file
9
shared/tsconfig/dtsconfig.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"source_files": [
|
||||||
|
"../js/**/*.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"../js/workers/**/*.ts"
|
||||||
|
],
|
||||||
|
"target_file": "../declarations/exports.d.ts"
|
||||||
|
}
|
6
shared/tsconfig/dtsconfig_loader.json
Normal file
6
shared/tsconfig/dtsconfig_loader.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"source_files": [
|
||||||
|
"../js/load.ts"
|
||||||
|
],
|
||||||
|
"target_file": "../declarations/exports_loader.d.ts"
|
||||||
|
}
|
|
@ -1,19 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"listFiles": true,
|
|
||||||
"module": "system",
|
|
||||||
"target": "es6",
|
|
||||||
"declaration": true,
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
"allowJs": false,
|
|
||||||
"checkJs": false,
|
|
||||||
|
|
||||||
"outFile": "../declarations/exports"
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"../js/**/*.ts"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"../js/workers/**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"listFiles": true,
|
|
||||||
"module": "system",
|
|
||||||
"target": "es6",
|
|
||||||
"declaration": true,
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
"allowJs": false,
|
|
||||||
"checkJs": false,
|
|
||||||
|
|
||||||
"outFile": "../declarations/exports_loader"
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"../js/load.ts"
|
|
||||||
]
|
|
||||||
}
|
|
6
web/tsconfig/dtsconfig.json
Normal file
6
web/tsconfig/dtsconfig.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"source_files": [
|
||||||
|
"../js/**/*.ts"
|
||||||
|
],
|
||||||
|
"target_file": "../declarations/exports.d.ts"
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"listFiles": true,
|
|
||||||
"module": "system",
|
|
||||||
"target": "es6",
|
|
||||||
"declaration": true,
|
|
||||||
"emitDeclarationOnly": true,
|
|
||||||
"allowJs": false,
|
|
||||||
"checkJs": false,
|
|
||||||
|
|
||||||
"outFile": "../declarations/exports"
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"../js/**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue