Update web manifest and robots.txt for project rebranding
Signed-off-by: Snider <snider@lt.hn>
This commit is contained in:
parent
e0cf77c64a
commit
09aa39c42c
3 changed files with 3 additions and 52 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "angular-starter",
|
||||
"short_name": "angular-starter",
|
||||
"name": "Core Framework",
|
||||
"short_name": "Core",
|
||||
"display": "standalone",
|
||||
"scope": "./",
|
||||
"start_url": "./",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
User-agent: *
|
||||
Disallow:
|
||||
Sitemap: https://angular.ganatan.com/sitemap.xml
|
||||
Sitemap: /sitemap.xml
|
||||
|
|
|
|||
|
|
@ -1,49 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
function getDirectoryStructure(dirPath, level = 0) {
|
||||
const files = fs.readdirSync(dirPath);
|
||||
|
||||
let structure = '';
|
||||
|
||||
files.forEach(file => {
|
||||
const fullPath = path.join(dirPath, file);
|
||||
const isDirectory = fs.lstatSync(fullPath).isDirectory();
|
||||
|
||||
structure += `${' '.repeat(level)}|-- ${file}\n`;
|
||||
|
||||
if (isDirectory) {
|
||||
structure += getDirectoryStructure(fullPath, level + 1);
|
||||
}
|
||||
});
|
||||
|
||||
return structure;
|
||||
}
|
||||
|
||||
function generateStructureForFolders(folders) {
|
||||
let fullStructure = '';
|
||||
|
||||
folders.forEach(folder => {
|
||||
const folderPath = path.join(__dirname, '..', '..', folder);
|
||||
if (fs.existsSync(folderPath)) {
|
||||
fullStructure += `\nStructure of ${folder}:\n`;
|
||||
fullStructure += getDirectoryStructure(folderPath);
|
||||
} else {
|
||||
fullStructure += `\n${folder} directory does not exist.\n`;
|
||||
}
|
||||
});
|
||||
|
||||
return fullStructure;
|
||||
}
|
||||
|
||||
const foldersToInspect = ['src', 'tools'];
|
||||
const projectStructure = generateStructureForFolders(foldersToInspect);
|
||||
|
||||
console.log(projectStructure);
|
||||
|
||||
module.exports = {
|
||||
getDirectoryStructure,
|
||||
generateStructureForFolders,
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue