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: cleanups + use css + setup pre-commit hook #204

Merged
merged 7 commits into from
Mar 27, 2024

Conversation

timurbazhirov
Copy link
Member

No description provided.

Copy link

netlify bot commented Mar 27, 2024

Deploy Preview for mat3ra-materials-designer ready!

Name Link
🔨 Latest commit 6dc14e7
🔍 Latest deploy log https://app.netlify.com/sites/mat3ra-materials-designer/deploys/66047b8cdee969000850cb77
😎 Deploy Preview https://deploy-preview-204--mat3ra-materials-designer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@timurbazhirov timurbazhirov changed the title chore/cleanups+use css chore: cleanups + use css + setup pre-commit hook Mar 27, 2024
Copy link
Contributor

@VsevolodX VsevolodX left a comment

Choose a reason for hiding this comment

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

LGTM. MD works locally.

echo ">>>>>>>> Husky Pre-commit: Adding transpiled sources in dist"
echo ""
git add dist
echo ""
Copy link
Contributor

Choose a reason for hiding this comment

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

End of file newline

"testsOnly": "bash run-tests.sh -s=true",
"transpile": "tsc && npm run copy-css",
"copy-css": "cp src/stylesheets/* dist/stylesheets/",
"test": "echo 'Tests are in the tests subfolder. Use Node 20 (`nvm use 20`) and run `npm i` && `npm test` there'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a cd tests && nvm use 20 && npm i && npm test && cd - instead of a directive? Or is this too fragile?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, but with nvm there's too much logic in this command. Let's wait until we are on Node 20 for both app and tests

@timurbazhirov timurbazhirov merged commit f4d08c7 into dev Mar 27, 2024
4 of 5 checks passed
@timurbazhirov timurbazhirov deleted the chore/cleanups+use-css branch March 27, 2024 20:04
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