Skip to content

Commit 9165171

Browse files
authored
Merge pull request #77 from buehler/develop
Release
2 parents 5e4fa1b + 596e150 commit 9165171

Some content is hidden

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

57 files changed

+933
-217
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ matrix:
77

88
environment:
99
matrix:
10-
- nodejs_version: "9"
11-
- nodejs_version: "8"
10+
- nodejs_version: "10"
1211

1312
install:
1413
- ps: Install-Product node $env:nodejs_version
@@ -18,5 +17,6 @@ test_script:
1817
- npm test
1918
- npm install -g codecov
2019
- codecov
20+
- npm run build
2121

2222
build: off

.travis.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ language: node_js
33
stages:
44
- name: test
55
if: tag IS blank
6+
- name: build
7+
if: tag IS blank
68
- name: deploy
79
if: branch = master AND type != pull_request
810

11+
cache:
12+
directories:
13+
- node_modules
14+
915
matrix:
1016
fast_finish: true
1117

@@ -15,24 +21,23 @@ notifications:
1521
jobs:
1622
include:
1723
- stage: test
18-
node_js: '9'
19-
after_success:
20-
- npm i -g codecov
21-
- codecov
22-
- stage: test
23-
node_js: '8'
24+
node_js: '10'
2425
after_success:
2526
- npm i -g codecov
2627
- codecov
28+
- stage: build
29+
node_js: '10'
30+
script:
31+
- npm run build
2732
- stage: deploy
28-
node_js: '9'
33+
node_js: '10'
2934
script: npm run typedoc
3035
deploy:
3136
provider: pages
3237
skip_cleanup: true
3338
github_token: $GH_TOKEN
3439
local_dir: ./docs
3540
- stage: deploy
36-
node_js: '9'
41+
node_js: '10'
3742
before_script: npm run build
3843
script: npm run semantic-release

config/tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"declaration": true,
1010
"sourceMap": false,
1111
"importHelpers": true,
12-
"strictNullChecks": true,
12+
"strict": true,
1313
"experimentalDecorators": true,
1414
"emitDecoratorMetadata": true,
1515
"noUnusedLocals": true,

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@
3535
},
3636
"homepage": "https://github.com/TypeScript-Heroes/node-typescript-parser#readme",
3737
"devDependencies": {
38-
"@smartive/tslint-config": "^3.0.1",
39-
"@types/jest": "^22.2.2",
38+
"@smartive/tslint-config": "^4.0.0",
39+
"@types/jest": "^23.1.4",
4040
"@types/lodash-es": "^4.17.0",
4141
"@types/mock-fs": "^3.6.30",
42-
"@types/node": "^9.6.2",
42+
"@types/node": "^10.5.1",
4343
"del-cli": "^1.1.0",
44-
"jest": "^22.4.3",
45-
"mock-fs": "^4.4.2",
46-
"semantic-release": "^15.1.5",
47-
"ts-jest": "^22.4.2",
48-
"tslint": "^5.9.1",
49-
"tsutils": "^2.26.0",
44+
"jest": "^23.3.0",
45+
"mock-fs": "^4.5.0",
46+
"semantic-release": "^15.6.3",
47+
"ts-jest": "^23.0.0",
48+
"tslint": "^5.10.0",
49+
"tsutils": "^2.27.2",
5050
"typedoc": "^0.11.1"
5151
},
5252
"dependencies": {
53-
"lodash": "^4.17.5",
54-
"lodash-es": "^4.17.8",
55-
"tslib": "^1.9.0",
56-
"typescript": "^2.8.1"
53+
"lodash": "^4.17.10",
54+
"lodash-es": "^4.17.10",
55+
"tslib": "^1.9.3",
56+
"typescript": "^2.9.2"
5757
}
5858
}

src/DeclarationIndex.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ export class DeclarationIndex {
490490
): void {
491491
exportedLib.declarations
492492
.forEach((o) => {
493+
if (!tsExport.specifiers) {
494+
return;
495+
}
493496
const ex = tsExport.specifiers.find(s => s.specifier === o.name);
494497
if (!ex) {
495498
return;

src/Node.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/**
22
* Base class for all nodes / declarations / imports / etc. in the extension.
33
* Contains basic information about the node.
4-
*
4+
*
55
* @export
66
* @interface Node
77
*/
88
export interface Node {
99
/**
1010
* The starting character of the node in the document.
11-
*
11+
*
1212
* @type {number}
1313
* @memberof Node
1414
*/
1515
start?: number;
1616

1717
/**
1818
* The ending character of the node in the document.
19-
*
19+
*
2020
* @type {number}
2121
* @memberof Node
2222
*/

src/SymbolSpecifier.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Clonable } from './clonable/Clonable';
33
/**
44
* Class for symbols that are contained in a named import or export or anywhere. Basically an aliased object.
55
* (i.e. import {SYMBOL} from '...').
6-
*
6+
*
77
* @export
88
* @class SymbolSpecifier
99
* @implements {Clonable}
@@ -13,9 +13,9 @@ export class SymbolSpecifier implements Clonable<SymbolSpecifier> {
1313

1414
/**
1515
* Clones the current resolve specifier and returns a new instance with the same properties.
16-
*
16+
*
1717
* @returns {SymbolSpecifier}
18-
*
18+
*
1919
* @memberof SymbolSpecifier
2020
*/
2121
public clone(): SymbolSpecifier {

src/TypescriptParser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ export class TypescriptParser {
141141
return file;
142142
}
143143

144-
145144
/**
146145
* Recursive function that runs through the AST of a source and parses the nodes.
147146
* Creates the class / function / etc declarations and instanciates a new module / namespace

src/clonable/Clonable.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/**
22
* Interface for clonable objects. The clone() method creates a deep clone of the object.
3-
*
3+
*
44
* @export
55
* @template T
66
* @interface Clonable
77
*/
88
export interface Clonable<T> {
99
/**
1010
* Create a deep clone of this object.
11-
*
11+
*
1212
* @returns {T}
13-
*
13+
*
1414
* @memberof Clonable
1515
*/
1616
clone(): T;

src/code-generators/TypescriptCodeGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type Generators = { [name: string]: (generatable: Generatable, options: T
3939
* Hash with all possible (yet implemented) generators.
4040
*/
4141
export const GENERATORS: Generators = {
42-
[SymbolSpecifier.name]: generateSymbolSpecifier,
42+
[SymbolSpecifier.name]: generateSymbolSpecifier as any,
4343
[MethodDeclaration.name]: generateMethodDeclaration,
4444
[ParameterDeclaration.name]: generateParameterDeclaration,
4545
[PropertyDeclaration.name]: generatePropertyDeclaration,

0 commit comments

Comments
 (0)