Suggestions for improving maintainability
See original GitHub issueHello.
I want to implement best practices in tooling that inspired by Storybook and Vite repositories.
The goal is to make it easier for maintainers to participate in the project.
Related: #11
Checklist
Zero changes to the storybook-builder-vite
package code
ESLint and Prettier https://github.com/eirslett/storybook-builder-vite/pull/193
- Move the Prettier configuration from
package.json
to.prettierrc
. - Synchronize
.editorconfig
with the Prettier standard. - Add ESLint with Prettier config.
- Add the TypeScript plugin to ESlint.
- Run Prettier before ESLint
Testing
- Add Jest for unit testing.
- Add Cypress for E2E testing.
- Running tests on a pull request and publish events.
Documentation https://github.com/eirslett/storybook-builder-vite/pull/200
- Create a guide for developers in
CONTRIBUTING.md
. - Add scripts for running examples.
Docker https://github.com/eirslett/storybook-builder-vite/pull/202
- Create
docker-compose.yml
with CI and Storybook services. - Add scripts for Docker compose services.
Minor changes to the package code: syntax and typing
Run lint
https://github.com/eirslett/storybook-builder-vite/pull/196
- Run
lint
on all codebase. - Fix code inspection warnings from a JetBrains IDE for the
packages/storybook-builder-vite
directory. - Create
.git-blame-ignore-revs
file.
TypeScript https://github.com/eirslett/storybook-builder-vite/pull/195
- Use TypeScript (with right
tsconfig.json
for comfort debugging). - Convert all codebase from
*.js
to*.ts
. - Typization.
Minor changes in examples package.json
and Github Actions
-
Workspaces: use NPM or Pnpm, because Yarn is not working out of the box like it should be.
Details: https://github.com/eirslett/storybook-builder-vite/issues/188#issuecomment-1005851871
May I create a one pull request with all suggested features?
Best wishes, Sergey.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
13 Ways to Improve Maintainability - Coveros
13 Ways to Improve Maintainability ยท Follow a clean and consistent coding standard ยท Use human readable and sensible names ยท Be clear...
Read more >How to improve the maintainability of critical assets
Four ways to improve maintainability by improving data collection, organizational capabilities, proactive maintenance and using a CMMS.
Read more >The Compact Guide to Web Maintainability: 200 Tips and ...
The 9 Pillars of Maintainability ยท Be Clear About Maintenance ยท Plan ยท Do It Yourself ยท Keep It Simple ยท Adhere to...
Read more >Developing maintainable software
Design for maintainability from the outset; Iterative development and regular reviews help to improve quality - see the section below; Readable code is...
Read more >Methods for Improving the Maintainability of Application ...
Improving software's maintainability not only reduces ... 3 Research questions: How to improve maintainability? ... 5.1.4 Ideas for improving audits .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@joshwooding basically, I canโt run examples using Yarn.
Reproduction of the Yarn workspace related issue
Letโs try running the Vue example in a clean environment:
System
Output
Errors
Server-side
Client-side
Maybe itโs an OS related issue?!
Letโs go, try the same in a isolated environment.
Docker
Dockerfile
docker-compose.yml
Errors
Not changed at all:
Server-side
Client-side
So, after this experiments, I suggest to change the package manager.
@Codex- thank you for suggestion, I will check out the Playwright solution.