Skip to content

Conversation

TiddoLangerak
Copy link

I also adopted the code styling from the main project and moved everything to the BlessCSS repo.

@BlessCSS/owners - Could you take a look at this and provide feedback where needed?

@mtscout6
Copy link
Member

This looks fantastic! The only missing link here are unit tests, your demo is serving as a manual test, though automated unit/integration tests would really help for maintainability.

@aabenoja
Copy link
Member

We do have an active issue to reimplement the imports in the parser, and I like what you're doing here to generate them. Maybe not right now, but I would like to see this logic moved over and we can just use a bless option to trigger imports.

if (index === blessed.data.length - 1) {
name = fileName;
const imports = generateImports(fileName, blessed.data.length - 1) ;
chunk = `${imports}\n${chunk}`;
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this affect sourcemaps?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, you're right, completely missed that. I'll get it fixed.

@TiddoLangerak
Copy link
Author

I agree that it might be better to move the logic over to the main project. I didn't realize that imports where completely missing still from the main project, they were present in 3.x and I just assumed that only this API method didn't generate them. I'll try to see if I can create a PR for this for the main project this weekend.

@aabenoja
Copy link
Member

It was on our todo list, we just never had the time when working on the css-band-aid fork.

@karlhorky
Copy link
Contributor

Would be cool if we could add the functionality from #4 as well.

I can take a shot at this if you would like some help.

@thomaswmanion
Copy link

Is this getting merged ever?

@SergTanchenko
Copy link

@mtscout6 do you plan to update bless version from 3.0.3 to 4.0.4? :)

@mtscout6
Copy link
Member

There are other members of the org that can do this. I don't personally have the time right now. @BlessCSS/owners @BlessCSS/contributors

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.

6 participants