-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from open-template-hub/develop
Release/update docs
- Loading branch information
Showing
7 changed files
with
90 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
const { spawnSync } = require( 'child_process' ); | ||
const outdatedCmd = spawnSync( 'npm', [ 'outdated' ] ); | ||
|
||
const lines = outdatedCmd.stdout.toString().split( '\n' ); | ||
|
||
const columnIndexes = [ 0, 0, 0, 0 ]; | ||
|
||
console.log( | ||
'<p align="center">\n' + | ||
' <a href="https://opentemplatehub.com">\n' + | ||
' <img src="https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/server/auth-server-logo.png" alt="Logo" width=200>\n' + | ||
' </a>\n' + | ||
'</p>\n' + | ||
'\n' + | ||
'\n' + | ||
'<h1 align="center">\n' + | ||
'Open Template Hub - Auth Server Template v2\n' + | ||
' <br/>\n' + | ||
'(outdated packages)\n' + | ||
'</h1>\n' + | ||
'\n' + | ||
'Following packages are not updated in the develop branch yet. So, if you want to update outdated packages on your own risk, update the package.json and install dependencies.\n' | ||
); | ||
|
||
for ( const line of lines ) { | ||
if ( line.length === 0 ) { | ||
continue; | ||
} | ||
|
||
if ( lines.indexOf( line ) === 0 ) { | ||
columnIndexes[ 0 ] = line.indexOf( 'Current' ); | ||
columnIndexes[ 1 ] = line.indexOf( 'Wanted' ) + 3; | ||
columnIndexes[ 2 ] = line.indexOf( 'Latest' ) + 6; | ||
columnIndexes[ 3 ] = line.indexOf( 'Location' ) + 9; | ||
} | ||
|
||
let modifiedLine = line; | ||
|
||
if ( columnIndexes [ 0 ] >= 0 ) { | ||
for ( const columnIndex of columnIndexes ) { | ||
modifiedLine = modifiedLine.substring( 0, columnIndex ) + ' | ' + modifiedLine.substring( columnIndex, modifiedLine.length ); | ||
} | ||
console.log( '| ' + modifiedLine + ' |' ); | ||
} else { | ||
console.log( modifiedLine ); | ||
} | ||
|
||
if ( lines.indexOf( line ) === 0 ) { | ||
console.log( '| --- | --- | --- | --- | --- |' ); | ||
} | ||
} | ||
|
||
console.log( | ||
'\n' + | ||
'<table align="right"><tr><td><a href="https://opentemplatehub.com"><img src="https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/brand-logo.png" width="50px" alt="oth"/></a></td><td><b>Open Template Hub © 2021</b></td></tr></table>\n' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<p align="center"> | ||
<a href="https://opentemplatehub.com"> | ||
<img src="https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/server/auth-server-logo.png" alt="Logo" width=200> | ||
</a> | ||
</p> | ||
|
||
<h1 align="center"> | ||
Open Template Hub - Auth Server Template v2 | ||
<br/> | ||
(outdated packages) | ||
</h1> | ||
|
||
Following packages are not updated in the develop branch yet. So, if you want to update outdated packages on your own risk, update the package.json and install dependencies. | ||
|
||
| Package | Current | Wanted | Latest | Location | | ||
| --- | --- | --- | --- | --- | | ||
|
||
<table align="right"><tr><td><a href="https://opentemplatehub.com"><img src="https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/brand-logo.png" width="50px" alt="oth"/></a></td><td><b>Open Template Hub © 2021</b></td></tr></table> | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters