Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(): allow the CLI tool itself to use TypeScript. #291

Merged
merged 1 commit into from
Mar 16, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Mar 11, 2016

This does not work for the Broccoli (yet).


return Promise.reject(new SilentError(message));
return Promise.reject(new SilentError(
`The "ng ${this.name}" command requires a name argument to be specified. ` +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dropped the use of chalk.yellow here, was it intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an error, it's weird to use a yellow() text.

@filipesilva
Copy link
Contributor

Oh man this is nice! What's stopping you from just bringing in the brocolli ts files though?

@hansl
Copy link
Contributor Author

hansl commented Mar 15, 2016

The broccoli should only be js files because these are require()d by apps. We could use ts files for broccoli but we'll need publish the javascript files to NPM. For now I want to avoid making the publishing process more complex.

@hansl hansl force-pushed the typescript branch 2 times, most recently from 30de1c4 to c6de2aa Compare March 16, 2016 19:55
This does not work for the Broccoli (yet).
@@ -1,19 +1,15 @@
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you should add the typings at the first line;
/// <reference path="../../../typings/main.d.ts" />
also, run typings install in package.json in postinstall script.
If not, just ignore this.

@jkuri
Copy link
Contributor

jkuri commented Mar 16, 2016

Good work. LGTM.

@hansl hansl merged commit e122062 into angular:master Mar 16, 2016
@hansl hansl deleted the typescript branch March 16, 2016 20:45
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants