13 Commits

Author SHA1 Message Date
Alan Agius
b8336b2c94 refactor(@angular/cli): use ES6 imports instead of require
Main benefit is to use type definitions.
2021-02-02 07:46:32 +01:00
Dominic Elm
33ee97625e fix(@angular/cli): remove unnecessary promise around "open" 2021-02-01 10:29:54 +01:00
George Kalpakas
1beb582050 fix(@angular/cli): fix the URL for doc search
In #16846, the URL for docs search was updated to point to the
corresponding vX.angular.io website (with an appropriate query for the
search). However, on the archive versions of the website (i.e. versions
older than the current stable), non-docs pages (including the home page)
are redirected to `/docs` (losing the query params).

This commit fixes the URL to include `/docs`, so that it is not
redirected (and preserve the query params that will trigger the search).
2020-02-07 08:28:56 -08:00
Santosh Yadav
688db35589 fix(@angular/cli): change the url for doc search
Fixes #16840
2020-02-06 09:09:11 -08:00
cexbrayat
3e95474d1f feat(@angular/cli): ng doc uses angular core version by default
Follow-up to #14788 that allowed `ng doc --version 6`.
This commit enhances the doc command to use the current Angular version of the project by default, if no version is provided explicitely.

Fixes #12365
2019-06-27 09:18:32 -07:00
cexbrayat
371bd6194a fix(@angular/cli): validate version in doc command
As the JSON Schema validation is minimum in the CLI, we have to also validate in code.
This PR:
- updates the JSON Schema to use `number` and `enum` instead of `integer` and `const` that are not supported.
- adds validation in the doc command implementation
- adds error reporting if the version is not valid
- fixes a typo in an error message in the parser
2019-06-24 17:30:44 -07:00
Lakhyari
58599e125e feat(@angular/cli): ng doc accepts a version flag
With this commit, we can now specify a `version`
for the `ng doc` command

    ng doc --version 6
    ng doc -v 6

and this will open `v6.angular.io` instead of `angular.io`.
The default domain is still used
if no version is specified.

Refs #12365
2019-06-17 11:02:56 -07:00
Andriy Pyvovarchuk
50cce668cc refactor: replace deprecated package opn with open 2019-04-01 10:53:12 -07:00
WilliamKoza
ec94f42108 fix(@angular/cli): wrap opn in a new Promise because opn is already resolve is already resolve. 2019-02-08 16:10:59 -08:00
William KOZA
416b05061f fix(@angular/cli): Add an error message when we call ng doc without keyword. Currently, we open a page with the keyword undefined. (#13604) 2019-02-07 08:24:29 -08:00
Hans Larsen
30b0cbda0d refactor(@angular/cli): automated JSON schema interface generation 2018-09-13 16:44:17 -07:00
Hans
de7ec84872 feat(@angular/cli): add --helpJson (or --help-json) too all commands
And other refactors.

The interface for the JSON is available in command.ts (the CommandDescription).
2018-09-06 07:37:48 -07:00
Hans
c75318b432 fix(@angular/cli): fix ci for new command formats 2018-08-13 20:58:47 -07:00