Elderjs / elderjs

Elder.js is an opinionated static site generator and web framework for Svelte built with SEO in mind.
https://elderguide.com/tech/elderjs/
MIT License
2.11k stars 53 forks source link

Developer environment - no documentation #263

Open rickbsgu opened 1 year ago

rickbsgu commented 1 year ago

There are no instructions/documentation on how to set up a developer environment, specifically for plugins, but for elderjs in general.

The immediate goal is to work on a plugin - which, when I try to link it so it's on my local file system, results in a bunch of ESM errors.

I've created a couple of discord msgs in the channel, starting with this one, but haven't gotten any responses, at all.

Currently stuck without some instructions.

rickbsgu commented 1 year ago

After going down a few rabbit holes, I got a development environment to work. Here's what I found:

If you want to work on a current plugin:

If you want to work on elderjs:

For both projects, be very careful about the git branch. The active branch may be set to an experimental branch that someone has been working on, and inadvertently checked it in without resetting the current branch. I found the master branches to be unreliable. Also, I found in the plugin/packages/markdown branch, the elderjs project had been specified as a local file in the package.json file. Watch that.

That's how I got it to work. Somebody (anybody) can correct me or fill in some more information - that would be great.