代码拉取完成,页面将自动刷新
#!/bin/bash
# FOR TESTING PURPOSES ONLY, NOT RELATED TO DOCKER IMAGE BUILD
# Can be used for projects without tsconfig.json file
# This script generates tsconfig.json file, it looks for all files with extension .ts and adds them to the file section.
# Old tsconfig.json file, if exists is saved with .ol.timestamp extension
FILE_NAME="tsconfig.json"
if [ -f $FILE_NAME ];
then
timestamp=$(date +%s)
mv $FILE_NAME "$FILE_NAME.old.$timestamp"
fi
echo "{
\"compilerOptions\": {
\"module\": \"commonjs\",
\"target\": \"es5\",
\"outDir\": \".bin\"
},
\"files\": [" >> $FILE_NAME
for file in $(find . -name *.ts)
do
echo "\"$file\"", >> $FILE_NAME
done
sed -i.bk "$ s/.$//" $FILE_NAME
echo "]}" >> $FILE_NAME
rm -rf $FILE_NAME.bk
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。