mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
refactor: update dependencies
This commit is contained in:
@@ -163,7 +163,7 @@ export interface Rules {
|
||||
*/
|
||||
export function consoleInfo(...arguments_: string[]): void {
|
||||
for (const argument of arguments_) {
|
||||
/* tslint:disable-next-line:no-console */
|
||||
// eslint-disable-next-line no-console
|
||||
console.info(`\n${chalk.cyan(argument)}`);
|
||||
}
|
||||
}
|
||||
@@ -176,10 +176,10 @@ export function consoleInfo(...arguments_: string[]): void {
|
||||
export function consoleWarn(...arguments_: string[]): void {
|
||||
for (const argument of arguments_) {
|
||||
const lines = argument.split('\n');
|
||||
/* tslint:disable-next-line:no-console */
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(`\n${chalk.red.bold(lines[0])}`);
|
||||
for (const line of lines.slice(1)) {
|
||||
/* tslint:disable-next-line:no-console */
|
||||
// eslint-disable-next-line no-console
|
||||
console.info(line);
|
||||
}
|
||||
}
|
||||
@@ -192,7 +192,7 @@ export function consoleWarn(...arguments_: string[]): void {
|
||||
*/
|
||||
export function consoleLog(...arguments_: string[]): void {
|
||||
for (const argument of arguments_) {
|
||||
/* tslint:disable-next-line:no-console */
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`\n${chalk.green.bold(argument)}`);
|
||||
}
|
||||
}
|
||||
@@ -547,7 +547,6 @@ export function checkCopyrightYears(projectPath: PathLike, checkPathFragment: Pa
|
||||
fileSystemObject,
|
||||
);
|
||||
|
||||
// tslint:disable-next-line:max-line-length
|
||||
const execBuffer = execSync(
|
||||
`git --git-dir=${projectPath}/.git --work-tree=${projectPath} log --oneline --format='%cI' -- ${fileSystemObjectPath}`,
|
||||
);
|
||||
@@ -586,7 +585,6 @@ export function checkCopyrightYears(projectPath: PathLike, checkPathFragment: Pa
|
||||
const expectedMatchLength = 3;
|
||||
|
||||
if (Array.isArray(match) && match.length === expectedMatchLength) {
|
||||
// tslint:disable-next-line:no-magic-numbers
|
||||
copyrightYearsString = match[1] ?? match[2];
|
||||
}
|
||||
}
|
||||
@@ -615,7 +613,6 @@ export function checkCopyrightYears(projectPath: PathLike, checkPathFragment: Pa
|
||||
}
|
||||
|
||||
if (copyrightYearNeedsUpdate) {
|
||||
// tslint:disable-next-line:max-line-length
|
||||
consoleWarn(
|
||||
`File '${path.join(
|
||||
checkPathFragment.toString(),
|
||||
@@ -707,7 +704,6 @@ export function getRules(configuration: Configuration): Rules {
|
||||
|
||||
// expected scripts
|
||||
const scripts: {[k: string]: string} = {
|
||||
/* tslint:disable-next-line:max-line-length */
|
||||
'changelog':
|
||||
"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
|
||||
'check-configuration': 'openstapps-configuration',
|
||||
@@ -722,7 +718,6 @@ export function getRules(configuration: Configuration): Rules {
|
||||
|
||||
// expected values in CI config
|
||||
const ciConfig = {
|
||||
/* tslint:disable:object-literal-sort-keys */
|
||||
'image': 'registry.gitlab.com/openstapps/projectmanagement/node',
|
||||
'before_script': 'npm ci',
|
||||
'build': {
|
||||
@@ -761,7 +756,6 @@ export function getRules(configuration: Configuration): Rules {
|
||||
script: ['npm run documentation', 'mv docs public'],
|
||||
stage: 'deploy',
|
||||
},
|
||||
/* tslint:enable */
|
||||
};
|
||||
|
||||
for (const ignoreCiEntry of configuration.ignoreCiEntries) {
|
||||
@@ -795,7 +789,6 @@ export function getRules(configuration: Configuration): Rules {
|
||||
|
||||
if (configuration.standardDocumentation) {
|
||||
devDependencies.push('typedoc');
|
||||
/* tslint:disable-next-line:max-line-length */
|
||||
scripts.documentation =
|
||||
'typedoc --includeDeclarations --mode modules --out docs --readme README.md --listInvalidSymbolLinks --entryPointStrategy expand src';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user