Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
Bump devDependencies
Bump dot package
Move viz.js to @aduh95/viz.js
  • Loading branch information
vogloblinsky committed Oct 9, 2020
1 parent 1782516 commit 60dbb2a
Show file tree
Hide file tree
Showing 43 changed files with 1,431 additions and 4,728 deletions.
14 changes: 0 additions & 14 deletions .editorconfig

This file was deleted.

15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CLI

<a name="2.1.0"></a>

## [2.1.0](https://github.com/compodoc/ngd/compare/2.0.0...2.1.0) (2020-10-09)

Bump dependencies
Bump devDependencies
Bump dot package
Move viz.js to @aduh95/viz.js

<a name="2.0.0"></a>

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

### Bug Fixes

* **dependencies:** remove dependency on gulp-util ([02a1158](https://github.com/compodoc/ngd/commit/02a1158)), closes [#54](https://github.com/compodoc/ngd/issues/54)
* **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)
- **dependencies:** remove dependency on gulp-util ([02a1158](https://github.com/compodoc/ngd/commit/02a1158)), closes [#54](https://github.com/compodoc/ngd/issues/54)
- **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)

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

Expand Down Expand Up @@ -95,7 +104,7 @@ Initial release

### Bug Fixes

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

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

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

```javascript
const compiler = new Compiler(files, {
tsconfigDirectory: cwd
tsconfigDirectory: cwd,
});
```

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

```javascript
const engine = new DotEngine({
output: program.output,
displayLegend: program.displayLegend,
outputFormats: program.outputFormats.split(',')
output: program.output,
displayLegend: program.displayLegend,
outputFormats: program.outputFormats.split(','),
});
```

Expand Down
18 changes: 10 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

## Dependencies between modules

* cli : core, compiler, transformer
* compiler : core
* transformer : core
* core : -
- cli : core, compiler, transformer
- compiler : core
- transformer : core
- core : -

## Order publish on npm

* core
* transformer
* compiler
* cli
- core
- transformer
- compiler
- cli

## Publish

Upgrade version in each package

```
cd src/modules/xxx
npm run compile:src
Expand Down
17 changes: 6 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@compodoc/ngd",
"version": "2.0.0",
"description": "A set of tools to generate a dependencies graph of an Angular application",
"scripts": {
"postinstall": "sh ./tools/install-all.sh",
"test": "sh ./tools/test-all.sh",
"build": "sh ./tools/build-all.sh"
},
"homepage": "https://github.com/compodoc/ngd",
"bugs": "https://github.com/compodoc/ngd/issues",
"author": "Wassim CHEGHAM",
"engines": {
"node": ">= 6.11.2"
},
"contributors": [
"vogloblinsky"
],
"repository": {
"type": "git",
"url": "https://github.com/compodoc/ngd.git"
},
"private": false,
"license": "MIT",
"dependencies": {
"typescript": "^2.0.0",
"@types/typescript": "^0.4.29",
"@types/node": "^6.0.39"
}
"name": "@compodoc/ngd",
"version": "2.0.0",
"description": "A set of tools to generate a dependencies graph of an Angular application",
"scripts": {
"postinstall": "sh ./tools/install-all.sh",
"test": "sh ./tools/test-all.sh",
"build": "sh ./tools/build-all.sh",
"link": "sh ./tools/link-all.sh"
},
"homepage": "https://github.com/compodoc/ngd",
"bugs": "https://github.com/compodoc/ngd/issues",
"author": "Wassim CHEGHAM",
"engines": {
"node": ">= 6.11.2"
},
"contributors": [
"vogloblinsky"
],
"repository": {
"type": "git",
"url": "https://github.com/compodoc/ngd.git"
},
"private": false,
"license": "MIT",
"dependencies": {
"typescript": "^4.0.3",
"@types/node": "^14.11.8"
}
}
6 changes: 6 additions & 0 deletions src/modules/cli/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporter": "spec",
"ui": "bdd",
"colors": true,
"timeout": 10000
}
22 changes: 11 additions & 11 deletions src/modules/cli/dist/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Application = void 0;
var fs = require("fs");
var path = require("path");
var ngd_transformer_1 = require("@compodoc/ngd-transformer");
Expand All @@ -16,7 +17,7 @@ var Application;
.option('-p, --tsconfig <config>', 'A tsconfig.json (default: ./tsconfig.json)', './tsconfig.json')
.option('-o, --open', 'Open the generated HTML diagram file', false)
.option('-g, --display-legend <display-legend>', 'Display the legend of graph default(true)', true)
.option('-s, --silent', 'In silent mode, log messages aren\'t logged in the console', true)
.option('-s, --silent', "In silent mode, log messages aren't logged in the console", false)
.option('-t, --output-formats <output-formats>', 'Output formats (default: html,svg,dot,json)', "html,svg,dot,json")
.option('-d, --output <folder>', 'Where to store the generated files (default: ./documentation)', "./documentation/")
.parse(process.argv);
Expand All @@ -29,8 +30,7 @@ var Application;
ngd_core_1.logger.setVerbose(program.silent);
var files = [];
if (program.file) {
if (!fs.existsSync(program.file) ||
!fs.existsSync(path.join(process.cwd(), program.file))) {
if (!fs.existsSync(program.file) || !fs.existsSync(path.join(process.cwd(), program.file))) {
ngd_core_1.logger.fatal("\"" + program.file + "\" file was not found");
process.exit(1);
}
Expand Down Expand Up @@ -92,7 +92,7 @@ var Application;
}
var compiler = new ngd_compiler_1.Compiler(files, {
tsconfigDirectory: cwd,
silent: program.silent
silent: program.silent,
});
var deps = compiler.getDependencies();
if (deps.length <= 0) {
Expand All @@ -103,18 +103,18 @@ var Application;
var engine = new ngd_transformer_1.DotEngine({
output: program.output,
displayLegend: program.displayLegend,
outputFormats: program.outputFormats.split(',')
outputFormats: program.outputFormats.split(','),
});
engine
.generateGraph(deps)
.then(function (file) {
/*
if (program.open === true) {
logger.info('openning file ', file);
let open = require("opener");
open(file);
}
*/
if (program.open === true) {
logger.info('openning file ', file);
let open = require("opener");
open(file);
}
*/
})
.catch(function (e) { return ngd_core_1.logger.error(e); })
.then(function (_) { return ngd_core_1.logger.info('done'); });
Expand Down
Loading

0 comments on commit 60dbb2a

Please sign in to comment.