Alex Eagle
a90063a827
chore(typing): restore some defn's now that dgeni is fixed
...
Closes #2446
Closes #2805
2015-07-01 12:53:10 +01:00
Alex Eagle
7a4a3c850f
fix(typings): Minor issues preventing angular2.d.ts from working in TS 1.4.
...
This removes some, but not all, of the manual work needed to patch up our
.d.ts for pushing to DefinitelyTyped. Remaining manual steps are:
- some types still missing
- declaration of decorators
- remove destructuring args
See #2686 .
2015-06-25 14:13:05 -07:00
Daria Jung
24646e7eb8
feat(typings): add typing specs
...
add test in gulpfile which will compile a basic TS file with generated
angular2.d.ts to ensure generated d.ts is valid syntactic TS
Adds support for enums in .d.ts generation pipeline.
Removes renaming reexports in http module.
2015-06-23 18:22:47 -07:00
Jacob Eggers
dee0e008f5
chore(doc-gen): refactor versionInfo logic to new `git` dgeni-package
...
Closes #2444
2015-06-21 02:15:42 +01:00
Peter Bacon Darwin
b8ef20e353
chore(doc-gen): ignore `@param` tags
...
At the moment we are not parsing param tags. This commit ignores them
completely.
TODO: hook up param descriptions with the actual param data in the doc.
Closes #2633
2015-06-19 12:10:01 -07:00
Peter Bacon Darwin
22f4cd26ae
chore(doc-gen): remove redundant processors from angular.io generation
2015-06-19 19:08:34 +01:00
Jeff Cross
5b5ffe75d0
docs(Http): add docs for Http lib
...
Fixes #2442
2015-06-16 15:42:18 -07:00
Jeff Cross
ea27704ea9
fix(docs): order class members in order of declaration
...
Previously, class members were ordered alphabetically.
This change leaves it up to the class author to
determine the order in which they would like
properties and methods to appear in class
documentation, without having to create methods like
`zUnimportantMethod`.
Fixes #2569
2015-06-16 15:21:54 -07:00
Peter Bacon Darwin
0c282e826a
chore(doc-gen): ensure github links have the correct text
2015-06-15 21:59:52 +01:00
Jacob Eggers
8112b0baa7
chore(doc-gen): fix versionInfo population
2015-06-15 21:51:45 +01:00
Peter Bacon Darwin
14d28d7473
chore(doc-gen): fix id and alias generation for exports and members
...
This helps to ensure that links to exports are not confused with links
to members, which was causing some missing link issues.
Helps #2475
2015-06-15 00:11:59 +01:00
Peter Bacon Darwin
992293a196
chore(doc-gen): include `enum` in the export doc types
...
Fixes errors about missing "path templates" such as:
```
warn: No path template provided - doc "ViewType" (enum) - from file "angular2/src/render/api.ts"
warn: No output path template provided - doc "ViewType" (enum) - from file "angular2/src/render/api.ts"
```
2015-06-15 00:11:59 +01:00
Martin Probst
a6e7123995
feat: adjust formatting for clang-format v1.0.19.
2015-06-12 09:51:57 -07:00
Jeff Cross
05d02fa90b
fix(docs): ensure no duplicates in alias names of docs
...
Having multiple identical names in a doc's aliases would cause Ambiguous Link warnings
for each reference to one of the aliases.
Related to #2452
2015-06-11 17:52:13 -07:00
Rob Wormald
796fc66771
chore(build): rename .es6 files to .js
...
Change es6 source files in npm distribution to use .js extensions.
Closes #2447
2015-06-11 17:22:19 -07:00
Peter Bacon Darwin
659adf83dc
chore(doc-gen): move typeParams and heritage rendering to template
...
Partially solves #2452
2015-06-11 19:15:17 +01:00
Peter Bacon Darwin
efab03274f
chore(doc-gen): autogenerate Angular version in angular.d.ts file
2015-06-10 12:42:24 +01:00
Peter Bacon Darwin
f2e2ce15cd
chore(doc-gen): add `type-alias` export doc type
...
See #2446
2015-06-10 12:14:10 +01:00
Peter Bacon Darwin
65cbcb2f73
chore(doc-gen): ensure `log` is injected into `getExportDocType`
...
See #2446
2015-06-09 23:07:35 +01:00
Alex Eagle
7141c15e65
fix(docs): Working generated angular2.d.ts
...
This requires some hacks, documented in
https://docs.google.com/document/d/1nNebWTiLzz5ePcit_bjZPtaiSIFU4EsQKUlX7LX0c0A/edit
Changes:
- include subtyping info in angular2.d.ts by adding 'extends supertype'
- export missing symbols needed transitively by angular2/angular2
- because of decorator/annotation mismatch, we can't export these to applications.
So I've added a separate angular2.api.ts file to re-export specifically to .d.ts
generation.
- Hack to remove aliases introduced by 'import * as alias' syntax
- Hack to deal with Error still an interface
note that we require users to install the transitive dependencies - this is how TSD works.
2015-06-05 15:33:23 -07:00
Alex Eagle
f303f0c17a
chore(docs): remove private members from angular2.d.ts
2015-06-02 17:15:49 -07:00
Peter Bacon Darwin
1fae8d6377
chore(doc-gen): add template for const docTypes
2015-06-02 15:30:03 -07:00
Naomi Black
b746e0c9f0
docs(docgen): tell dgeni to use ts files and fix some bad links
2015-06-02 15:30:03 -07:00
Alex Eagle
e67b7e87b2
chore(docs): Improve whitespace and semicolons in angular2.d.ts
2015-06-02 15:29:07 -07:00
Rado Kirov
0a0b84a07d
fix(docs): generate d.ts file only for angular2/angular2.
2015-06-02 15:14:45 -07:00
Peter Bacon Darwin
a504fa835e
chore(doc-gen): improve github links to point to the correct tagged URL
...
Closes #1994
2015-06-02 10:56:23 +01:00
Peter Bacon Darwin
f6eeb9aa66
chore(doc-gen): dgenerate the type definition file for angular2
...
Closes #2017
Closes #1966
2015-05-20 12:23:59 +01:00
Peter Bacon Darwin
cd7aef2139
chore(doc-gen): fix up tests to work on linux
2015-05-19 14:38:11 +01:00
Peter Bacon Darwin
50c6efa187
chore(doc-gen): fix paths for links to modules and exports
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
302c5d5005
chore(doc-gen): paths now start with a slash
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
b6b9ede425
chore(doc-gen): include interfaces in the possible exports from a module
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
118f0520a2
chore(doc-gen): get CompilerHost to return the SourceFiles with the correct fileName
...
Now that we are not changing the working directory, we needed to update how
getSourceFiles works to ensure that it worked relative to the baseDir.
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
ba80bd43ad
chore(doc-gen): fix text mock code
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
ed6298c33f
chore(doc-gen): speed up class member sorting
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
db5486a347
chore(doc-gen): use actual TypeScript SymbolFlags enum rather than magic number
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
b9b58f7ed9
chore(doc-gen): speed up class member sorting
2015-05-19 14:38:10 +01:00
Peter Bacon Darwin
33f5aafd6c
chore(doc-gen): formatting
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
4b34ef9036
chore(doc-gen): remove unused `signature`
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
8c409e9251
chore(doc-gen): improve error handling for missing declaration params
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
398e70ad39
chore(doc-gen): allow class member sorting to be configured
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
9407c12923
chore(doc-gen): clarify and improve matching of exports to ignore
...
Previously this was a bit cryptic as we just had a `hideSpecialExports` flag.
Now it ignores exports that match an array of regexes, with the default case
being those exports called `___esModule`.
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
a4693ef679
squash-me: remove unnecessary (and very naughty) `chdir()` call
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
9d5f760597
chore(doc-gen): chore(doc-gen): add TypeScript parsing
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
8bebcfb844
chore(doc-gen): relax link matching
2015-05-19 14:38:09 +01:00
Peter Bacon Darwin
8a0eb08745
chore(doc-gen): relax link matching
2015-05-19 14:38:08 +01:00
Peter Bacon Darwin
1dce4699de
chore(doc-gen): relax link matching
2015-05-19 14:38:08 +01:00
Peter Bacon Darwin
7bff919782
chore(doc-gen): add TypeScript parsing
2015-05-19 14:38:08 +01:00
Peter Bacon Darwin
c6dc78183d
chore(doc-gen): relax link matching
2015-05-19 14:38:08 +01:00
Peter Bacon Darwin
9a72f19b97
chore(doc-gen): add TypeScript parsing
2015-05-19 14:38:08 +01:00
Peter Bacon Darwin
25a952755e
chore(doc-gen): remove Traceur bits
2015-05-19 14:38:08 +01:00