Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Initial feedback on plugin authoring #113

Open
@kaeedo

Description

Hi, I'm the guy that pinged you over on mastodon :)

First, some unrelated feedback on perla:

After running dotnet perla new MyProject it gives a selection of templates: Awesome!
Then it shows hints about quick access commands:

Perla: This template has quick access commands:
Perla: perla new -t solid
Perla: Next time you can run perla new -id perla.templates.solid.js

Also cool,

Finally it says successful. I think it would be nice if it could also show a hint about how to start the newly created template. Something like:

Perla: To see your new website, run perla serve and open your browser

or similar.


Now for the plugin feedback. I understand everything is still very early in development, and you've been spending your time on more important things. That being said, from the initial look at the markdown plugin it seems that the primary purpose of perla plugins is to allow loading file types not natively supported by esbuild. Is this a correct assumption, or were you also envisioning other plugins that transform/extract data from existing files as they travel through the pipeline? Or is this better suited for esbuild plugins (which would require node again -.- )

Context: I want to write a plugin to allow usage of TailwindCSS via their standalone executable. This would require looking at existing files, and then creating a new/replace an existing css file in the output.

As far as the debugging experience goes, maybe I haven't poked around enough with it, but it would be nice to have access to the perla context of "input" directory and "output" directory, and being able to access the vfs to see what files exist there.

Lastly, add some kind of hint that perla-esbuild-plugin is a required plugin when setting the plugins array option

Thanks a bunch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    1.xIssues made for v1 preview versionsfeedback

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions