Skip to content

Meta: Move readme parser out of the build - #7676

Merged
fregante merged 3 commits into
mainfrom
move-parser-out-of-build
Aug 13, 2024
Merged

fregante merged 3 commits into
mainfrom
move-parser-out-of-build

Conversation

@fregante

Copy link
Copy Markdown
Member

Pros:

  • we no longer have to deal with the readme parser/importer in the build itself

Cons:

  • the options page won't show a new feature until Vitest is run (local DX issue only, CI catches this)

@fregante fregante added the meta Related to Refined GitHub itself label Aug 13, 2024
Comment thread package.json
"watch:typescript": "tsc --noEmit --watch --preserveWatchOutput",
"watch:webpack": "npm run x:webpack -- --mode=development --watch",
"x:webpack": "cross-env NODE_OPTIONS=\"--import tsx --no-warnings=ExperimentalWarning\" webpack"
"watch:webpack": "webpack --mode=development --watch"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Finally

Comment thread source/feature-data.ts

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the core of the PR. Now there's a single entry point with all the data related to the features.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This used to be a .txt, but since we're importing it, it's easier to just create a JSON file instead

@fregante fregante changed the title Move readme parser out of the build Meta: Move readme parser out of the build Aug 13, 2024
@fregante
fregante merged commit 51b867b into main Aug 13, 2024
@fregante
fregante deleted the move-parser-out-of-build branch August 13, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

1 participant