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

Lint vs gulp #471

Merged
merged 12 commits into from
Feb 27, 2020
Merged

Lint vs gulp #471

merged 12 commits into from
Feb 27, 2020

Conversation

ole1986
Copy link
Contributor

@ole1986 ole1986 commented Feb 26, 2020

I assume the reason of #455, #454 and #447 #448 is also to reduce such tools on developer side and automate it using Github action (or similar) during PR merge.

To be honest I did not know the reason of gulp and havent used it (except the hygiene check).
I always had the impression that this was kinda overdressed.

So what does this PR contain?

  • Removed gulp
  • Still use husky tslint during git commit
  • Slightly amended the tslint.json
  • tslint --fix the whole src/ directory while fixing the issue to become successful

Whats next?

  • maybe run typescript-formatter locally on every commit?
  • Recover code code coverage only through GitHub Action?

@DonJayamanne please let me know what you think about it.

@DonJayamanne
Copy link
Owner

I hated what u did with gulp as well.

@DonJayamanne
Copy link
Owner

maybe run typescript-formatter locally on every commit?

I'd prefer to use eslint and prettier.

Recover code code coverage only through GitHub Action?

use jest for coverage.

FYI. Please feel free to checkout the projects under https://github.com/DonJayamanne/gitHistoryVSCode/projects/2 and assign some to your self.

Once we have eslint, prettier and the like locally, we can move them to GitHub actions, separate phase/project https://github.com/DonJayamanne/gitHistoryVSCode/projects/4

Summarizing:

  • eslint instead of tslint (start locally, then github actions)
  • prettier instead of tsformat (start locally, then github actions)
  • ts-jesst instead of istanbul/nyc/mocha (start locally, then github actions)

By start locally, i mean have scripts in package.json setup so we can use it locally, then when happy that things are ok, separate PR to get into github actions.

@ole1986 ole1986 changed the base branch from master to replace-webserver-with-postmessage February 27, 2020 07:18
@ole1986
Copy link
Contributor Author

ole1986 commented Feb 27, 2020

I am not quite sure about jest. Since the only supported seem to be mocha (microsoft/vscode#67619 (comment))

At least i corrected the parser.test.ts in unit testing for fileStat

@ole1986
Copy link
Contributor Author

ole1986 commented Feb 27, 2020

Also, some tests may be unnecessary due to the use of vscode git extension. (E.g. RefsParser)

@DonJayamanne
Copy link
Owner

DonJayamanne commented Feb 27, 2020

Since the only supported seem to be

It is possible, that's an old comment, also I've used it
https://code.visualstudio.com/api/working-with-extensions/testing-extension#the-test-runner-script

Let's leave that for another PR

@ole1986 ole1986 merged commit 1ff802d into replace-webserver-with-postmessage Feb 27, 2020
This was linked to issues Feb 28, 2020
ole1986 pushed a commit that referenced this pull request Feb 29, 2020
* removing gulp while running tslint --fix while committing
* use object instead of any for IPostMessage
* replaced tslint ans tsfmt with eslint and prettier
* added some exceptional rules in eslintrc
* eslint --fix incl. prettier on src/
* Resolved unit test issues by properly using tabs as expected
* slightly corrected launch.json
* Use git extension api to fetch refs and remove RefParser
* removed old codecoverage from .travis.yml
* set the webpack maxAssetSize and maxEntrypointSize to 700kb
* no sourcemap for production
* use nodejs v10 in .travis
ole1986 pushed a commit that referenced this pull request Feb 29, 2020
* removing gulp while running tslint --fix while committing
* use object instead of any for IPostMessage
* replaced tslint ans tsfmt with eslint and prettier
* added some exceptional rules in eslintrc
* eslint --fix incl. prettier on src/
* Resolved unit test issues by properly using tabs as expected
* slightly corrected launch.json
* Use git extension api to fetch refs and remove RefParser
* removed old codecoverage from .travis.yml
* set the webpack maxAssetSize and maxEntrypointSize to 700kb
* no sourcemap for production
* use nodejs v10 in .travis
ole1986 pushed a commit that referenced this pull request Feb 29, 2020
* removing gulp while running tslint --fix while committing
* use object instead of any for IPostMessage
* replaced tslint ans tsfmt with eslint and prettier
* added some exceptional rules in eslintrc
* eslint --fix incl. prettier on src/
* Resolved unit test issues by properly using tabs as expected
* slightly corrected launch.json
* Use git extension api to fetch refs and remove RefParser
* removed old codecoverage from .travis.yml
* set the webpack maxAssetSize and maxEntrypointSize to 700kb
* no sourcemap for production
* use nodejs v10 in .travis
ole1986 pushed a commit that referenced this pull request Mar 2, 2020
* Initial start of postMessage implementation
* No need for localResourceRoots as the extensionPath is already included
* Recovered authorFilter search
* Fixed branches dropdown not updating selection
* Implemented MessageBus using Promise with unique requestId
* fixed paging
* Fixed fsPath in Uri is unavailable during postMessage
* replaced FsUri with native Uri
* Fixed #472
* Update package-lock.json
* Lint vs gulp (#471)
* recovered detached head in branch dropdown #167
* use node-fetch to grab github avatars
* fetch avatars only once when opening
* Fixed file status images not shown
* fix ts error using any type in githubUsers
* Update dependencies while fixing related issues (#473)
* Updated CHANGELOG.md
* configure webpack to disable polyfill on node
* corrected resourcePath due to the bundled extension.js
* cleanup dist directory at webpack start
* Fixed #400 #289 by counting the commits using rev-list (#475)
@ole1986 ole1986 deleted the lint-vs-gulp branch March 6, 2020 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to use eslint Update to use prettier as a formatter
2 participants