-
Notifications
You must be signed in to change notification settings - Fork 475
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
support typescript compilation #469
Conversation
Other than convention, what is the advantage of the compilation target being |
@cjbarth there are three choices:
Choices 1 and 2 are similar, I can change dist to lib if you want. Choice 3 will pollute lib folder with extra files, which will mislead people, but it also a choice. What do you think about it? |
I'm interested in others opinions, but it seems that keeping The result being that, after compilation, the project looks the same as it does now, except there will be a |
because we have barely valid typescript
@cjbarth done I've used |
This all looks good to me, though I haven't pulled the code and tested it. Since this represents a change to the organization of the project, I'd like to get one more set of eyes on this before it is merged in. |
"test": "npm run lint && npm run tsc && mocha", | ||
"tsc": "tsc", | ||
"lint": "eslint --ext .ts src || true", | ||
"lint:fix": "eslint --ext .ts --fix src || true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that the purpose of || true
here is to convert a linting "failure" exit code to a "success" exit code. Effectively, it turns linting errors into warnings, which is fine for now. I confirmed the test suite passes, but there are many linting errors converted to warnings. I see that most errors might be automatically fixed with eslint --fix
.
Looks good to me. I like supporting the incremental strategy and introducing the linting. I also like that the PR didn't modify the test suite at all, confirming the change is compatible with our test suite. |
@gugu Thank you very much for following through on this. I look forward to https://www.npmjs.com/package/@types/passport-saml getting merged into this project now so we can remove those externally maintained definitions. |
The code is still written in JS, but is compiled with tsc to dist directory.
After this it is possible to switch gradually every js file