mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Yet another typescript fixes
This commit is contained in:
parent
b927988017
commit
d9b424cbd1
3 changed files with 30 additions and 3 deletions
|
@ -23,8 +23,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "tsc && node ./dist/server.js",
|
||||
"dev": "tsc && NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 node ./dist/server.js",
|
||||
"build": "clear && tsc"
|
||||
"dev": "npm run build && NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 node ./dist/server.js",
|
||||
"build": "tsc && bash -c './scripts/postBuild.sh'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
||||
|
|
|
@ -69,7 +69,7 @@ if [ "$?" -ne "0" ]; then
|
|||
echo '{"Subjects":[],"version":"TESET","motd":"hai"}' >./qminingPublic/data.json
|
||||
fi
|
||||
|
||||
pushd utils
|
||||
pushd standaloneUtils
|
||||
rm -v ../data/dbs/users.db
|
||||
NS_SQL_DEBUG_LOG=true NS_LOGLEVEL=2 node dbSetup.js
|
||||
popd
|
||||
|
|
27
scripts/postBuild.sh
Executable file
27
scripts/postBuild.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
exit 0
|
||||
|
||||
echo "linking stuff to dist/"
|
||||
SRC='./src'
|
||||
DEST='./dist'
|
||||
|
||||
cd ${SRC}
|
||||
|
||||
for i in $(find); do
|
||||
~/.bin/hr.sh
|
||||
echo $i
|
||||
if [ ! -d "$i" ]; then
|
||||
fname=$(basename "${SRC}/${i}")
|
||||
dirname=$(dirname "${SRC}/${i}")
|
||||
withoutExt=$(echo "${fname}" | rev | cut -d'.' -f2- | rev)
|
||||
checkFile=$(echo "${DEST}/${i}")
|
||||
|
||||
echo $fname
|
||||
echo $dirname
|
||||
echo $withoutExt
|
||||
echo $checkFile
|
||||
else
|
||||
echo "DIR $i"
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue