bennypowers / lit-css

Build Plugins for CSS tagged-template-literals
MIT License
47 stars 7 forks source link

any support for Parcel ? S ample package.json configuration would be appreciated #44

Open mediabuff opened 1 year ago

bennypowers commented 1 year ago

No plans but I can review a pr

mediabuff commented 1 year ago

I don't think I am very savy in this area to implement an addon. That's the reason I came to lit-css :-)

mediabuff commented 1 year ago

Seems to be not a complex endeavour. I a novice in this area. That's why i ran away from webpack to parcel. But kind of stuck now - no lit css plugins !

https://parceljs.org/plugin-system/authoring-plugins/

Another example: https://github.com/Anteris-Dev/parcel-transformer-lit-css/blob/master/src/LitCssTransformer.ts

bennypowers commented 1 year ago

don't sell yourself short! the functions to transform the input files are all in the @pwrs/lit-css package - see one of the implementations like rollup-plugin-lit-css for an example. You can start by copying rollup-plugin-lit-css, and renaming that dir and everything inside to match, then do the same in the test dir. Update the test files and plugin file to use the parcel api, then run the tests to see what broke