Skip to content

Commit 60dbb2a

Browse files
committed
Bump dependencies
Bump devDependencies Bump dot package Move viz.js to @aduh95/viz.js
1 parent 1782516 commit 60dbb2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1431
-4728
lines changed

.editorconfig

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# CLI
22

3+
<a name="2.1.0"></a>
4+
5+
## [2.1.0](https://github.com/compodoc/ngd/compare/2.0.0...2.1.0) (2020-10-09)
6+
7+
Bump dependencies
8+
Bump devDependencies
9+
Bump dot package
10+
Move viz.js to @aduh95/viz.js
11+
312
<a name="2.0.0"></a>
413

514
## [2.0.0](https://github.com/compodoc/ngd/compare/2.0.0-alpha.5...2.0.0) (2018-02-25)
@@ -34,8 +43,8 @@ Initial release
3443

3544
### Bug Fixes
3645

37-
* **dependencies:** remove dependency on gulp-util ([02a1158](https://github.com/compodoc/ngd/commit/02a1158)), closes [#54](https://github.com/compodoc/ngd/issues/54)
38-
* **chore:** allow the logger to be fully silent ([5440f06](https://github.com/compodoc/ngd/commit/5440f06)), closes [#52](https://github.com/compodoc/ngd/issues/52)
46+
- **dependencies:** remove dependency on gulp-util ([02a1158](https://github.com/compodoc/ngd/commit/02a1158)), closes [#54](https://github.com/compodoc/ngd/issues/54)
47+
- **chore:** allow the logger to be fully silent ([5440f06](https://github.com/compodoc/ngd/commit/5440f06)), closes [#52](https://github.com/compodoc/ngd/issues/52)
3948

4049
<a name="2.0.0-alpha.3"></a>
4150

@@ -95,7 +104,7 @@ Initial release
95104

96105
### Bug Fixes
97106

98-
* **transformer:** TypeError: Viz is not a function ([cd824d9](https://github.com/compodoc/ngd/commit/cd824d9)), closes [#48](https://github.com/compodoc/ngd/issues/48)
107+
- **transformer:** TypeError: Viz is not a function ([cd824d9](https://github.com/compodoc/ngd/commit/cd824d9)), closes [#48](https://github.com/compodoc/ngd/issues/48)
99108

100109
<a name="2.0.0-alpha.1"></a>
101110

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Options:
7070
-V, --version Output the version number
7171
-f, --file [file] Entry *.ts file
7272
-p, --tsconfig [config] A tsconfig.json
73-
-l, --files [list] A list of *.ts files
73+
-o, --open Open the generated HTML diagram file
7474
-g, --display-legend Display the legend in the generated graph (default: true)
7575
-s, --silent In silent mode, log messages aren't logged in the console
7676
-t, --output-formats [formats] Output formats (default: html,svg,dot,json)
@@ -113,7 +113,7 @@ import { Compiler } from '@compodoc/ngd-compiler';
113113

114114
```javascript
115115
const compiler = new Compiler(files, {
116-
tsconfigDirectory: cwd
116+
tsconfigDirectory: cwd,
117117
});
118118
```
119119

@@ -127,9 +127,9 @@ const deps = compiler.getDependencies();
127127

128128
```javascript
129129
const engine = new DotEngine({
130-
output: program.output,
131-
displayLegend: program.displayLegend,
132-
outputFormats: program.outputFormats.split(',')
130+
output: program.output,
131+
displayLegend: program.displayLegend,
132+
outputFormats: program.outputFormats.split(','),
133133
});
134134
```
135135

docs/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
## Dependencies between modules
44

5-
* cli : core, compiler, transformer
6-
* compiler : core
7-
* transformer : core
8-
* core : -
5+
- cli : core, compiler, transformer
6+
- compiler : core
7+
- transformer : core
8+
- core : -
99

1010
## Order publish on npm
1111

12-
* core
13-
* transformer
14-
* compiler
15-
* cli
12+
- core
13+
- transformer
14+
- compiler
15+
- cli
1616

1717
## Publish
1818

19+
Upgrade version in each package
20+
1921
```
2022
cd src/modules/xxx
2123
npm run compile:src

package-lock.json

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"name": "@compodoc/ngd",
3-
"version": "2.0.0",
4-
"description": "A set of tools to generate a dependencies graph of an Angular application",
5-
"scripts": {
6-
"postinstall": "sh ./tools/install-all.sh",
7-
"test": "sh ./tools/test-all.sh",
8-
"build": "sh ./tools/build-all.sh"
9-
},
10-
"homepage": "https://github.com/compodoc/ngd",
11-
"bugs": "https://github.com/compodoc/ngd/issues",
12-
"author": "Wassim CHEGHAM",
13-
"engines": {
14-
"node": ">= 6.11.2"
15-
},
16-
"contributors": [
17-
"vogloblinsky"
18-
],
19-
"repository": {
20-
"type": "git",
21-
"url": "https://github.com/compodoc/ngd.git"
22-
},
23-
"private": false,
24-
"license": "MIT",
25-
"dependencies": {
26-
"typescript": "^2.0.0",
27-
"@types/typescript": "^0.4.29",
28-
"@types/node": "^6.0.39"
29-
}
2+
"name": "@compodoc/ngd",
3+
"version": "2.0.0",
4+
"description": "A set of tools to generate a dependencies graph of an Angular application",
5+
"scripts": {
6+
"postinstall": "sh ./tools/install-all.sh",
7+
"test": "sh ./tools/test-all.sh",
8+
"build": "sh ./tools/build-all.sh",
9+
"link": "sh ./tools/link-all.sh"
10+
},
11+
"homepage": "https://github.com/compodoc/ngd",
12+
"bugs": "https://github.com/compodoc/ngd/issues",
13+
"author": "Wassim CHEGHAM",
14+
"engines": {
15+
"node": ">= 6.11.2"
16+
},
17+
"contributors": [
18+
"vogloblinsky"
19+
],
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/compodoc/ngd.git"
23+
},
24+
"private": false,
25+
"license": "MIT",
26+
"dependencies": {
27+
"typescript": "^4.0.3",
28+
"@types/node": "^14.11.8"
29+
}
3030
}

src/modules/cli/.mocharc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"reporter": "spec",
3+
"ui": "bdd",
4+
"colors": true,
5+
"timeout": 10000
6+
}

src/modules/cli/dist/cli.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.Application = void 0;
34
var fs = require("fs");
45
var path = require("path");
56
var ngd_transformer_1 = require("@compodoc/ngd-transformer");
@@ -16,7 +17,7 @@ var Application;
1617
.option('-p, --tsconfig <config>', 'A tsconfig.json (default: ./tsconfig.json)', './tsconfig.json')
1718
.option('-o, --open', 'Open the generated HTML diagram file', false)
1819
.option('-g, --display-legend <display-legend>', 'Display the legend of graph default(true)', true)
19-
.option('-s, --silent', 'In silent mode, log messages aren\'t logged in the console', true)
20+
.option('-s, --silent', "In silent mode, log messages aren't logged in the console", false)
2021
.option('-t, --output-formats <output-formats>', 'Output formats (default: html,svg,dot,json)', "html,svg,dot,json")
2122
.option('-d, --output <folder>', 'Where to store the generated files (default: ./documentation)', "./documentation/")
2223
.parse(process.argv);
@@ -29,8 +30,7 @@ var Application;
2930
ngd_core_1.logger.setVerbose(program.silent);
3031
var files = [];
3132
if (program.file) {
32-
if (!fs.existsSync(program.file) ||
33-
!fs.existsSync(path.join(process.cwd(), program.file))) {
33+
if (!fs.existsSync(program.file) || !fs.existsSync(path.join(process.cwd(), program.file))) {
3434
ngd_core_1.logger.fatal("\"" + program.file + "\" file was not found");
3535
process.exit(1);
3636
}
@@ -92,7 +92,7 @@ var Application;
9292
}
9393
var compiler = new ngd_compiler_1.Compiler(files, {
9494
tsconfigDirectory: cwd,
95-
silent: program.silent
95+
silent: program.silent,
9696
});
9797
var deps = compiler.getDependencies();
9898
if (deps.length <= 0) {
@@ -103,18 +103,18 @@ var Application;
103103
var engine = new ngd_transformer_1.DotEngine({
104104
output: program.output,
105105
displayLegend: program.displayLegend,
106-
outputFormats: program.outputFormats.split(',')
106+
outputFormats: program.outputFormats.split(','),
107107
});
108108
engine
109109
.generateGraph(deps)
110110
.then(function (file) {
111111
/*
112-
if (program.open === true) {
113-
logger.info('openning file ', file);
114-
let open = require("opener");
115-
open(file);
116-
}
117-
*/
112+
if (program.open === true) {
113+
logger.info('openning file ', file);
114+
let open = require("opener");
115+
open(file);
116+
}
117+
*/
118118
})
119119
.catch(function (e) { return ngd_core_1.logger.error(e); })
120120
.then(function (_) { return ngd_core_1.logger.info('done'); });

0 commit comments

Comments
 (0)