Skip to content

Commit

Permalink
Move TS outdir to dist/ (TypeStrong#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey authored Dec 27, 2016
1 parent 8ed8989 commit 0214ebe
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 85 deletions.
Empty file removed .baseDir.d.ts
Empty file.
1 change: 0 additions & 1 deletion .baseDir.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
/node_modules/
/typescript/
/coverage/
/lib/
/dist/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion bin/typedoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node

var td = require('../lib/cli.js');
var td = require('../dist/lib/cli.js');
new td.CliApplication();
2 changes: 1 addition & 1 deletion gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
6 changes: 0 additions & 6 deletions index.d.ts

This file was deleted.

15 changes: 0 additions & 15 deletions index.js

This file was deleted.

1 change: 0 additions & 1 deletion index.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion test/converter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var TypeDoc = require("../index.js");
var TypeDoc = require("../");
var FS = require('fs');
var Path = require('path');
var Assert = require("assert");
Expand Down
4 changes: 2 additions & 2 deletions test/converter/export-default/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
}
],
"type": {
"type": "instrinct",
"name": "number"
"type": "unknown",
"name": "5"
},
"defaultValue": "5"
}
Expand Down
4 changes: 2 additions & 2 deletions test/converter/export/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
}
],
"type": {
"type": "instrinct",
"name": "number"
"type": "unknown",
"name": "5"
},
"defaultValue": "5"
},
Expand Down
27 changes: 7 additions & 20 deletions test/converter/react/specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -150,7 +137,7 @@
}
},
{
"id": 36,
"id": 35,
"name": "refs",
"kind": 1024,
"kindString": "Property",
Expand All @@ -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",
Expand Down Expand Up @@ -579,7 +566,7 @@
34,
6,
32,
36,
35,
33
]
},
Expand Down
2 changes: 1 addition & 1 deletion test/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion test/renderer.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
9 changes: 1 addition & 8 deletions test/renderer/specs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ <h2 id="installation">Installation</h2>
<pre><code class="lang-bash">$ npm install typedoc --global
$ typedoc
</code></pre>
<h2 id="preview">Preview</h2>
<p>If you want to know what a documentation created with TypeDoc looks like, head over
to the homepage of the project. We&#39;ve setup examples demonstrating the two default
themes shipped with the package:</p>
<p><a href="http://typedoc.io/themes/default">http://typedoc.io/themes/default</a><br>
<a href="http://typedoc.io/themes/minimal">http://typedoc.io/themes/minimal</a></p>
<p>The default themes can be found here: <a href="https://github.com/TypeStrong/typedoc-default-themes">https://github.com/TypeStrong/typedoc-default-themes</a></p>
<h2 id="usage">Usage</h2>
<h3 id="shell">Shell</h3>
<p>TypeDoc accepts most of the command line arguments that the TypeScript compiler accepts. One major
Expand Down Expand Up @@ -184,7 +177,7 @@ <h2 id="contributing">Contributing</h2>
an issue or create a pull requests:<br>
<a href="https://github.com/TypeStrong/typedoc">https://github.com/TypeStrong/typedoc</a></p>
<h2 id="license">License</h2>
<p>Copyright (c) 2015 <a href="http://www.TypeDoc.de">Sebastian Lenz</a>.<br>
<p>Copyright (c) 2015 <a href="http://typedoc.org">Sebastian Lenz</a>.<br>
Licensed under the Apache License 2.0.</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test/typedoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var TypeDoc = require("../index.js");
var TypeDoc = require("../");
var Path = require("path");
var Assert = require("assert");

Expand Down
38 changes: 17 additions & 21 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"declaration": true,
"sourceMap": true,
"inlineSources": true, // required for debugging for npm installs
"outDir": "./",
"rootDir": "./src",
"experimentalDecorators": true
},
"include": [
"src/**/*.ts"
],
"exclude": [
],
"atom": {
"rewriteTsconfig": true
}
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"declaration": true,
"sourceMap": true,
"inlineSources": true, // Required for debugging NPM published package.
"outDir": "dist/",
"rootDir": "src/",
"experimentalDecorators": true
},
"include": [
"src/**/*.ts"
],
"exclude": []
}

0 comments on commit 0214ebe

Please sign in to comment.