Skip to content

Merge request for #316 - #321

Merged
MrNaif2018 merged 7 commits into
bitcart:masterfrom
MaximeKoitsalu:master
Oct 2, 2021
Merged

MrNaif2018 merged 7 commits into
bitcart:masterfrom
MaximeKoitsalu:master

Conversation

@MaximeKoitsalu

Copy link
Copy Markdown

Migrate all styles to scss

@MrNaif2018 MrNaif2018 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you very much for your pull request! Please check the review comments.
Also while this passes the linting, it doesn't compile yet:

 ERROR  in ./layouts/default.vue?vue&type=style&index=0&lang=scss&                                                                                                   friendly-errors 16:34:02

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):                                                                                                   friendly-errors 16:34:02
SassError: Can't find stylesheet to import.
   β•·
31 β”‚ @import "./css/_transition";
   β”‚         ^^^^^^^^^^^^^^^^^^^
   β•΅
  layouts/default.vue 31:9  root stylesheet

This is because css folder contains two .styl files which need to be migrated too. Also when stylus is fully removed you can run
yarn remove stylus stylus-loader

Also sorry if the PR is not finished yet, I just try to reply with a timely review (: Tip: you can mark PR as draft or add it to the title if it is not yet finished. Thank you!

Comment thread components/CheckoutModal.vue Resolved
Comment thread components/CopyText.vue Resolved
Comment thread components/Header.vue Resolved
Comment thread components/Header.vue Resolved
Comment thread components/ProductListItem.vue Resolved

@MrNaif2018 MrNaif2018 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks. All that is left now is to change two last stylus files to sass and remove stylus and stylus-loader packages

@MaximeKoitsalu

Copy link
Copy Markdown
Author

I think I got it all now, thanks for quick feedback again πŸ˜„

@MrNaif2018 MrNaif2018 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you very much once again! This now works and looks the same as before.
One last thing: could you please format sass files with prettier? If you want to tackle another issue(s), let me know! Actually looks like our eslint linting in CI doesn't check sass files formatting at all. Setting it up is another good first issue (:

@MaximeKoitsalu

MaximeKoitsalu commented Oct 2, 2021 •

Copy link
Copy Markdown
Author

Sure thing, I can tackle that too! Edit: I updated the scss files with prettier formatting. Regarding setting up the CI to lint sass files, where or what config file should I look into? I saw the .circleci config.yml file but couldn't see anything about eslint linting in it. @MrNaif2018

@MrNaif2018

Copy link
Copy Markdown
Member

Thank you very much for your PR! Merging!

@MrNaif2018
MrNaif2018 merged commit 8214353 into bitcart:master Oct 2, 2021
@MrNaif2018

Copy link
Copy Markdown
Member

You're now in our contributors list! https://github.com/bitcartcc/bitcart#contributors-
If you want you can check other issues
About setting up prettier for sass, I will describe it in a separate issue in detail soon
.circleci/config.yml just calls yarn lint, which is located in package.json
eslint config is in .eslintrc.js

@MrNaif2018

Copy link
Copy Markdown
Member

@MaximeKoitsalu Actually I checked, and sass formatting should be set up not by linting from eslint, but by pre-commit. It will run prettier on all files, also our linting and our consistency checks, see #320

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.

2 participants