Skip to content

Commit 899526c

Browse files
authored
Merge pull request #90 from open-template-hub/develop
Update dependencies
2 parents 675a81e + 9cfa4a0 commit 899526c

File tree

11 files changed

+166
-153
lines changed

11 files changed

+166
-153
lines changed

.run/build.run.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="build" type="js.build_tools.npm" nameIsGenerated="true">
33
<package-json value="$PROJECT_DIR$/package.json" />
4-
<command value="build" />
5-
<node-interpreter value="/usr/local/bin/node" />
4+
<command value="run" />
5+
<scripts>
6+
<script value="build" />
7+
</scripts>
8+
<node-interpreter value="project" />
69
<package-manager value="npm" />
710
<envs />
811
<method v="2" />

.run/install.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<configuration default="false" name="install" type="js.build_tools.npm" nameIsGenerated="true">
33
<package-json value="$PROJECT_DIR$/package.json" />
44
<command value="install" />
5-
<node-interpreter value="/usr/local/bin/node" />
5+
<node-interpreter value="project" />
66
<package-manager value="npm" />
77
<envs />
88
<method v="2" />

.run/outdated.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<scripts>
66
<script value="outdated" />
77
</scripts>
8-
<node-interpreter value="/usr/local/bin/node" />
8+
<node-interpreter value="project" />
99
<package-manager value="npm" />
1010
<envs />
1111
<method v="2" />

.run/start.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<scripts>
66
<script value="start" />
77
</scripts>
8-
<node-interpreter value="/usr/local/bin/node" />
8+
<node-interpreter value="project" />
99
<package-manager value="npm" />
1010
<envs />
1111
<method v="2" />

.run/update.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<configuration default="false" name="update" type="js.build_tools.npm" nameIsGenerated="true">
33
<package-json value="$PROJECT_DIR$/package.json" />
44
<command value="update" />
5-
<node-interpreter value="/usr/local/bin/node" />
5+
<node-interpreter value="project" />
66
<package-manager value="npm" />
77
<envs />
88
<method v="2" />

NPM-README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</p>
66

77
<h1 align="center">
8-
Open Template Hub - Server Generator v4
8+
Open Template Hub - Server Generator v5
99
</h1>
1010

1111
[![GitHubRepo](https://img.shields.io/badge/GitHub-Repository-24292e.svg?style=for-the-badge&logo=github)](https://github.com/open-template-hub/server-generator)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</p>
66

77
<h1 align="center">
8-
Open Template Hub - Server Generator v4
8+
Open Template Hub - Server Generator v5
99
</h1>
1010

1111
[![Version](https://img.shields.io/npm/v/@open-template-hub/server-generator?color=CB3837&style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@open-template-hub/server-generator)

dependency-checker.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const lines = outdatedCmd.stdout.toString().split( '\n' );
55

66
const columnIndexes = [ 0, 0, 0, 0 ];
77

8+
let indexOfDependedBy = -1;
9+
810
console.log(
911
'<p align="center">\n' +
1012
' <a href="https://opentemplatehub.com">\n' +
@@ -14,7 +16,7 @@ console.log(
1416
'\n' +
1517
'\n' +
1618
'<h1 align="center">\n' +
17-
'Open Template Hub - Server Generator v4\n' +
19+
'Open Template Hub - Server Generator v5\n' +
1820
' <br/>\n' +
1921
'(outdated packages)\n' +
2022
'</h1>\n' +
@@ -26,42 +28,52 @@ for ( const line of lines ) {
2628
if ( line.length === 0 ) {
2729
continue;
2830
}
29-
31+
3032
if ( lines.indexOf( line ) === 0 ) {
3133
columnIndexes[ 0 ] = line.indexOf( 'Current' );
3234
columnIndexes[ 1 ] = line.indexOf( 'Wanted' ) + 3;
3335
columnIndexes[ 2 ] = line.indexOf( 'Latest' ) + 6;
3436
columnIndexes[ 3 ] = line.indexOf( 'Location' ) + 9;
3537
}
36-
38+
3739
let modifiedLine = '';
38-
40+
3941
if ( columnIndexes [ 0 ] >= 0 ) {
4042
const stringParts = line.split( /(\s+)/ );
41-
43+
4244
modifiedLine += '| ';
43-
44-
for ( let part of stringParts ) {
45+
46+
for ( let i = 0; i < stringParts.length; ++i ) {
47+
const part = stringParts[ i ];
48+
49+
if ( lines.indexOf( line ) === 0 && i < stringParts.length - 1 && stringParts[ i + 1 ] === 'Depended' ) {
50+
indexOfDependedBy = i;
51+
}
52+
53+
if ( indexOfDependedBy !== -1 && i >= indexOfDependedBy ) {
54+
continue;
55+
}
56+
4557
if ( part.match( /\s+/ ) ) {
4658
modifiedLine += ' | ';
4759
} else {
4860
modifiedLine += part;
4961
}
5062
}
51-
63+
5264
modifiedLine += ' |';
53-
65+
5466
console.log( modifiedLine );
5567
} else {
5668
console.log( modifiedLine );
5769
}
58-
70+
5971
if ( lines.indexOf( line ) === 0 ) {
6072
console.log( '| --- | --- | --- | --- | --- |' );
6173
}
6274
}
6375

6476
console.log(
6577
'\n' +
66-
'<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'
78+
'<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 © 2023</b></td></tr></table>\n'
6779
);

docs/OUTDATED.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66

77

88
<h1 align="center">
9-
Open Template Hub - Server Generator v4
9+
Open Template Hub - Server Generator v5
1010
<br/>
1111
(outdated packages)
1212
</h1>
1313

1414
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.
1515

16+
| Package | Current | Wanted | Latest | Location |
17+
| --- | --- | --- | --- | --- |
18+
| @types/inquirer | 8.2.5 | 8.2.5 | 9.0.3 | node_modules/@types/inquirer |
19+
| inquirer | 8.2.5 | 8.2.5 | 9.1.4 | node_modules/inquirer |
1620

17-
<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>
21+
<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 © 2023</b></td></tr></table>
1822

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"@types/ncp": "^2.0.5",
1818
"@types/rimraf": "^3.0.2",
1919
"colors": "1.4.0",
20-
"inquirer": "^8.2.4",
20+
"inquirer": "~8.2.5",
2121
"ncp": "^2.0.0",
2222
"rimraf": "^3.0.2",
2323
"shelljs": "^0.8.5",
2424
"yargs": "^17.5.1"
2525
},
2626
"devDependencies": {
27-
"@types/inquirer": "^8.2.1",
28-
"@types/node": "^17.0.41",
27+
"@types/inquirer": "^8.2.5",
28+
"@types/node": "^18.0.4",
2929
"@types/shelljs": "^0.8.11",
3030
"@types/yargs": "^17.0.10",
3131
"ts-node": "^10.8.1",

0 commit comments

Comments
 (0)