remove unused codes and update

This commit is contained in:
2026-05-10 09:44:30 +03:30
parent a138034c06
commit 048e292bdd
107 changed files with 317 additions and 17930 deletions
+21
View File
@@ -0,0 +1,21 @@
const fs = require('fs');
const path = require('path');
const root = process.cwd();
const packageJsonPath = path.join(root, 'package.json');
const ngswConfigPath = path.join(root, 'ngsw-config.json');
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
const ngswConfig = JSON.parse(fs.readFileSync(ngswConfigPath, 'utf8'));
const now = new Date();
const buildDate = process.env.TIS_BUILD_DATE || now.toISOString();
const appVersion = process.env.TIS_APP_VERSION || packageJson.version || '0.0.0';
ngswConfig.appData = {
...(ngswConfig.appData || {}),
appVersion,
buildDate,
};
fs.writeFileSync(ngswConfigPath, `${JSON.stringify(ngswConfig, null, 2)}\n`);