diff --git a/.baseDir.d.ts b/.baseDir.d.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/.baseDir.js.map b/.baseDir.js.map deleted file mode 100644 index c52053b69..000000000 --- a/.baseDir.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":".baseDir.js","sourceRoot":"","sources":["src/.baseDir.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/.gitignore b/.gitignore index d988feac1..50b8f1c3f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,4 @@ /node_modules/ /typescript/ /coverage/ -/lib/ +/dist/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..0782987d4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "typescript.tsdk": "./node_modules/typescript/lib" +} \ No newline at end of file diff --git a/bin/typedoc b/bin/typedoc index 8fa3ad95c..a16b2a94d 100755 --- a/bin/typedoc +++ b/bin/typedoc @@ -1,4 +1,4 @@ #!/usr/bin/env node -var td = require('../lib/cli.js'); +var td = require('../dist/lib/cli.js'); new td.CliApplication(); diff --git a/gruntfile.js b/gruntfile.js index 08fd115e2..cf57adad7 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -90,7 +90,7 @@ module.exports = function(grunt) grunt.registerTask('build-specs', function() { var FS = require('fs-extra'); var Path = require('path'); - var TypeDoc = require('./index.js'); + var TypeDoc = require('./'); var base = Path.join(__dirname, 'test', 'converter'); var app = new TypeDoc.Application({ diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index b52186c7f..000000000 --- a/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { Application } from "./lib/application"; -export { CliApplication } from "./lib/cli"; -export { EventDispatcher, Event } from "./lib/utils/events"; -export { resetReflectionID } from "./lib/models/reflections/abstract"; -export { normalizePath } from "./lib/utils/fs"; -export { ProjectReflection } from "./lib/models/reflections/project"; diff --git a/index.js b/index.js deleted file mode 100644 index c00a36297..000000000 --- a/index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -var application_1 = require("./lib/application"); -exports.Application = application_1.Application; -var cli_1 = require("./lib/cli"); -exports.CliApplication = cli_1.CliApplication; -var events_1 = require("./lib/utils/events"); -exports.EventDispatcher = events_1.EventDispatcher; -exports.Event = events_1.Event; -var abstract_1 = require("./lib/models/reflections/abstract"); -exports.resetReflectionID = abstract_1.resetReflectionID; -var fs_1 = require("./lib/utils/fs"); -exports.normalizePath = fs_1.normalizePath; -var project_1 = require("./lib/models/reflections/project"); -exports.ProjectReflection = project_1.ProjectReflection; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/index.js.map b/index.js.map deleted file mode 100644 index c3df7d613..000000000 --- a/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,iDAA8C;AAAtC,oCAAA,WAAW,CAAA;AACnB,iCAAyC;AAAjC,+BAAA,cAAc,CAAA;AAEtB,6CAA0D;AAAlD,mCAAA,eAAe,CAAA;AAAE,yBAAA,KAAK,CAAA;AAC9B,8DAAoE;AAA5D,uCAAA,iBAAiB,CAAA;AACzB,qCAA6C;AAArC,6BAAA,aAAa,CAAA;AACrB,4DAAmE;AAA3D,sCAAA,iBAAiB,CAAA","sourcesContent":["export {Application} from \"./lib/application\";\r\nexport {CliApplication} from \"./lib/cli\";\r\n\r\nexport {EventDispatcher, Event} from \"./lib/utils/events\";\r\nexport {resetReflectionID} from \"./lib/models/reflections/abstract\";\r\nexport {normalizePath} from \"./lib/utils/fs\";\r\nexport {ProjectReflection} from \"./lib/models/reflections/project\";\r\n"]} \ No newline at end of file diff --git a/package.json b/package.json index 21583953a..b434a0d63 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "description": "Create api documentations for typescript projects.", "version": "0.5.1", "homepage": "http://typedoc.org", - "main": "index.js", - "typings": "index.d.ts", + "main": "dist/index.js", + "typings": "dist/index.d.ts", "bin": { "typedoc": "bin/typedoc" }, diff --git a/test/converter.js b/test/converter.js index a53a3a9f9..807f0f922 100644 --- a/test/converter.js +++ b/test/converter.js @@ -1,4 +1,4 @@ -var TypeDoc = require("../index.js"); +var TypeDoc = require("../"); var FS = require('fs'); var Path = require('path'); var Assert = require("assert"); diff --git a/test/converter/export-default/specs.json b/test/converter/export-default/specs.json index d93c2ac0d..c7ad19643 100644 --- a/test/converter/export-default/specs.json +++ b/test/converter/export-default/specs.json @@ -30,8 +30,8 @@ } ], "type": { - "type": "instrinct", - "name": "number" + "type": "unknown", + "name": "5" }, "defaultValue": "5" } diff --git a/test/converter/export/specs.json b/test/converter/export/specs.json index 1b350a355..a2302ccf2 100644 --- a/test/converter/export/specs.json +++ b/test/converter/export/specs.json @@ -30,8 +30,8 @@ } ], "type": { - "type": "instrinct", - "name": "number" + "type": "unknown", + "name": "5" }, "defaultValue": "5" }, diff --git a/test/converter/react/specs.json b/test/converter/react/specs.json index ff3c08899..0ead78add 100644 --- a/test/converter/react/specs.json +++ b/test/converter/react/specs.json @@ -85,21 +85,8 @@ } ], "type": { - "type": "reflection", - "declaration": { - "id": 35, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "react.d.ts", - "line": 142, - "character": 16 - } - ] - } + "type": "reference", + "name": "__type" }, "inheritedFrom": { "type": "reference", @@ -150,7 +137,7 @@ } }, { - "id": 36, + "id": 35, "name": "refs", "kind": 1024, "kindString": "Property", @@ -165,21 +152,21 @@ "type": { "type": "reflection", "declaration": { - "id": 37, + "id": 36, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 38, + "id": 37, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 39, + "id": 38, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -579,7 +566,7 @@ 34, 6, 32, - 36, + 35, 33 ] }, diff --git a/test/events.js b/test/events.js index 9ce88ffd0..0db99d6ee 100644 --- a/test/events.js +++ b/test/events.js @@ -9,7 +9,7 @@ var Assert = require("assert"); var _ = require("lodash"); -var EventsNS = require("../lib/utils/events"); +var EventsNS = require("../dist/lib/utils/events"); var Events = EventsNS.EventDispatcher; var Event = EventsNS.Event; diff --git a/test/renderer.js b/test/renderer.js index 049fc549d..3d555d51f 100644 --- a/test/renderer.js +++ b/test/renderer.js @@ -1,4 +1,4 @@ -var TypeDoc = require("../index.js"); +var TypeDoc = require("../"); var FS = require("fs-extra"); var Path = require("path"); var Assert = require("assert"); diff --git a/test/renderer/specs/index.html b/test/renderer/specs/index.html index 67dafad06..fac1feb57 100644 --- a/test/renderer/specs/index.html +++ b/test/renderer/specs/index.html @@ -80,13 +80,6 @@
$ npm install typedoc --global
$ typedoc
- If you want to know what a documentation created with TypeDoc looks like, head over - to the homepage of the project. We've setup examples demonstrating the two default - themes shipped with the package:
-http://typedoc.io/themes/default
- http://typedoc.io/themes/minimal
The default themes can be found here: https://github.com/TypeStrong/typedoc-default-themes
TypeDoc accepts most of the command line arguments that the TypeScript compiler accepts. One major @@ -184,7 +177,7 @@
Copyright (c) 2015 Sebastian Lenz.
+
Copyright (c) 2015 Sebastian Lenz.
Licensed under the Apache License 2.0.