-
Notifications
You must be signed in to change notification settings - Fork 199
Conversation
Is it possible to setup more node version and probably Windows builds too? Looks a bit strange to test only against Node 8 while Node 10 is latest LTS. |
Hi @lupine86, thanks for sending this in! Normally we track suggested changes in issues before accepting PRs; is there a particular reason you want this in? |
Also worth to add: there are new npm tasks that should generate report from Mocha. However #489 will migrate almost all test away from Mocha, and only test for few utils and deprecated formatters will left as mocha tests. I do not think that it worth it to have report just for them. |
Add #656 to track community discussion. |
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 put some comments here and in #656
* Validate order of rules in README.md (fixes microsoft#816) * Fix rules order in README.md * create-rule task also updates README (fixed microsoft#816) * Update CONTRIBUTING.md with detais about README.md actions (fixes microsoft#648)
* Replace Release Notes with info about CHANGELOG.md and Releases * Replace Release Notes with links to CHANGELOG.md and Releases * Updated Releases (markdown) * Revert "Updated Releases (markdown)" This reverts commit b9214fd89cc3cd2238a4f43c3c4bf7ac3c2cc7e9. * Add instruction to replace @next placeholder * Move Wiki files to docs folder (fixes microsoft#808) * Apply Prettier formatter to docs * Update link to Releases doc * Replace Markdown table format with HTML table * Add links from removed Releases page to README.md
…icrosoft#809) * Revamped configs into 'core', 'latest', and (legacy) 'recommended' Those three config files now exist as `.json` under `/configs`; they're copied to `dist/build/configs`. `recommended.json` becomes `tslint.json` as well. * Normalized trailing commas; added back .gitignore fields * Moved void-zero to latest.json * Moved to exporting root-level configs * Switched to auto-generating latest.json * Aligned naming with TSLint's recommended -> latest * Update ExtendedMetadata.ts :qa! rebasing :wq :qa!
…mponents (microsoft#824) * added suite of tests to cover function components * traverse found arrow functions, function declarations and expressions * add helper functions to extract type information * wireup logic to traverse arrow functions and function components * reorganized tests to help with understanding coverage * check shorthand types for React function components * update comment
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.
Thanks for sending this in! A few things to touch up, but it looks like it's on its way.
@@ -89,7 +91,8 @@ | |||
"lint-staged": "^8.0.4", | |||
"mkdirp": "^0.5.1", | |||
"mocha": "5.2.0", | |||
"npm-run-all": "^4.1.5", | |||
"mocha-junit-reporter": "^1.18.0", | |||
"npm-run-all": "^4.1.3", |
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.
Looks like a merge hiccup: npm-run-all
in this repo is now up to 4.1.5, not 4.1.3.
package.json
Outdated
@@ -62,9 +62,11 @@ | |||
"lint:tests": "tslint -p tsconfig.json -t stylish -c src/tests/tslint.json -e src/tests/references.ts \"src/tests/**/*.ts\"", | |||
"prettier": "prettier --write \"**/*.{js,ts,tsx,json,md}\"", | |||
"start": "npm-run-all clean copy:json watch:src", | |||
"test:mocha": "mocha \"dist/src/tests/**/*.js\" --timeout 5000", | |||
"test:mocha": "mocha \"dist/src/tests/**/*.js\" --timeout 5000 --reporter mocha-junit-reporter", |
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 think you'll want to take another look at the changes to these tasks. Seems like test:mocha
changes should be reverted, as test-junit
reports with the junit reporter?
azure-pipelines.yml
Outdated
# Node.js | ||
# Build a general Node.js project with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript |
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.
Nit: header isn't needed; let's remove it.
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.
Bump @apawast
@lupine86 One more suggestion: you sent a PR from your
I'm basing this suggestion off the reported 210 commit difference in your branch on this PR, since it looks like something went wrong in Git land. Apologies if you already knew this! |
@JoshuaKGoldberg I've addressed your feedback so far. Please let me know if there's anything else, if not I'll make a new PR and branch. I ran into some issues when I was trying to squash the commits and it had unexpected effects and says I made 210 commits even though they're not mine. The only thing that's different right now is the |
Yup, looks good! Once the |
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.
Other than package merge shenanigans, this looks like the only remaining item.
azure-pipelines.yml
Outdated
# Node.js | ||
# Build a general Node.js project with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript |
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.
Bump @apawast
Super, thanks for making progress on this! Closing this PR in favor of #838. |
PR checklist
Overview of change:
Add support for CI using Azure Pipelines
Is there anything you'd like reviewers to focus on?
I have created a new organization and project on Azure Devops to support the tslint-microsoft-contrib project here: https://dev.azure.com/tslint-microsoft-contrib/
I invited Joshua Goldberg and Hamlet D'Arcy and made them collection level admins.