2024-06-21 17:48:43 +00:00
|
|
|
import * as plugins from './mod.plugins.js';
|
|
|
|
import { Project } from '../classes.project.js';
|
|
|
|
|
2024-10-26 23:51:17 +00:00
|
|
|
export let run = async (writeArg: boolean = true): Promise<any> => {
|
2024-06-21 17:48:43 +00:00
|
|
|
const project = await Project.fromCwd();
|
|
|
|
|
|
|
|
// cleanup
|
|
|
|
const formatCleanup = await import('./format.cleanup.js');
|
|
|
|
await formatCleanup.run(project);
|
|
|
|
|
|
|
|
// npmextra
|
|
|
|
const formatNpmextra = await import('./format.npmextra.js');
|
|
|
|
await formatNpmextra.run(project);
|
|
|
|
|
|
|
|
// license
|
|
|
|
const formatLicense = await import('./format.license.js');
|
|
|
|
await formatLicense.run(project);
|
|
|
|
|
|
|
|
// format package.json
|
|
|
|
const formatPackageJson = await import('./format.packagejson.js');
|
|
|
|
await formatPackageJson.run(project);
|
|
|
|
|
|
|
|
// format .gitlab-ci.yml
|
|
|
|
const formatTemplates = await import('./format.templates.js');
|
|
|
|
await formatTemplates.run(project);
|
|
|
|
|
|
|
|
// format .gitignore
|
|
|
|
const formatGitignore = await import('./format.gitignore.js');
|
|
|
|
await formatGitignore.run(project);
|
|
|
|
|
|
|
|
// format TypeScript
|
|
|
|
const formatPrettier = await import('./format.prettier.js');
|
|
|
|
await formatPrettier.run(project);
|
2024-10-26 23:51:17 +00:00
|
|
|
const formatTsConfig = await import('./format.tsconfig.js');
|
|
|
|
await formatTsConfig.run(project);
|
2024-06-21 17:48:43 +00:00
|
|
|
|
|
|
|
// format readme.md
|
|
|
|
const formatReadme = await import('./format.readme.js');
|
2024-06-23 11:26:51 +00:00
|
|
|
await formatReadme.run();
|
2024-06-21 17:48:43 +00:00
|
|
|
};
|