Consider switching from Ruby to Node.js #1213
Replies: 15 comments
-
It is clear that
My gut feel is that if that should come to pass, we should explore porting Slate to NodeJS entirely in version |
Beta Was this translation helpful? Give feedback.
-
Would that step basically entail just archiving this repo, and then continuing development on shins, or did you have something else in mind? |
Beta Was this translation helpful? Give feedback.
-
I'd be in favor of switching, although not sure how much bandwidth I'd have to contribute towards a conversion, although I guess May want to wait a lil bit to see if there is strong consensus among Slate users? I can pin this conversation for more visibility. I'd expect most who really want Ruby to still be on some old fork of Slate anyway, so new incompatible updates aren't of much consequence to them. I'd also be curious to what extent the markdown parser would be compatible with the one we already have — ideally a user with no Slate customizations could copy over their |
Beta Was this translation helpful? Give feedback.
-
Oh, and to add to the markdown parser comment — maintaining |
Beta Was this translation helpful? Give feedback.
-
@MasterOdin because Slate has the visibility, what I was thinking of is more along the lines of merging shins in to a @lord One question I guess is would we stay with custom JavaScript code which is very specifically written to produce as- |
Beta Was this translation helpful? Give feedback.
-
I mean, it currently supports the newest versions of rouge, so I think for now it's probably in a fine state for what Slate needs. It's really just middleman-sprockets that's totally dead.
For me, the answer to this I think is how much would things change in regards to styling and such if it was to move to a whole new platform, and also how much custom code would be required to replicate what middleman is providing (though I think it's somewhat less a question of middleman providing and the supporting infrastructure like rouge and redcarpet that are more important?). It does seem like Gatsby and next.js are aimed at a much different use-case than a single page API docs (and they bring in react) and then hexo just bills itself as a blog platform, which given my experience with trying to hack jekyll into being a static site, I'd want to avoid. |
Beta Was this translation helpful? Give feedback.
-
Just a note that the |
Beta Was this translation helpful? Give feedback.
-
Playing around with this more, I do wonder if in such a move, would the better move to be to just be like gatsby et al and have it be that for most users who are not interested in "peaking under the hood" as it were at the internals to just have it |
Beta Was this translation helpful? Give feedback.
-
I can see a |
Beta Was this translation helpful? Give feedback.
-
A few random thoughts:
Those commands are pretty sleek, though, and could be a serious improvement over what we have now. Perhaps we could get the benefits of both with |
Beta Was this translation helpful? Give feedback.
-
Yeah, there would probably be a need to allow people to continue running slate in a similar manner as now, as well as probably a "default configuration" via CLI. This could then be expanded to support plugins and such similar to gatsby, jekyll, etc. I am curious how many people are actually jumping into and really customizing the slate "internals" versus just modifying stuff in sources. |
Beta Was this translation helpful? Give feedback.
-
I'm confused, does --I would assume you would just need to make a mechanism to choose the template vs having just one. perhaps: I've been looking at switching from this from our custom version of slate. Once i get time to walk over shins more I may have a different perspective though! It would be interesting to get feedback from you guys who use the current version more why the layout.ejs file is not a direct replacement to layouts/. |
Beta Was this translation helpful? Give feedback.
-
@supsup My understanding of @lord's comment is on editing the files under https://github.com/slatedocs/slate/tree/master/lib, not just the layout or stylesheets or javascripts directories. Those would probably remain separate from this proposed cli runner. My imaginary super simple cli is that running |
Beta Was this translation helpful? Give feedback.
-
would it not just be refactoring those libs to be in javascript, and then attaching the functions to Or is that y'alls point? Sorry just not fully following -- I am not saying I am right. |
Beta Was this translation helpful? Give feedback.
-
Please see the discussion around the Slate v3 Technology Preview. |
Beta Was this translation helpful? Give feedback.
-
middleman-sprockets is basically dead, while also bringing in the equally dead sass gem. While we could drop sprockets (and then middleman will just use the sassc gem), it breaks the JS files from working. It looks like the suggested way nowadays is to set-up an external pipeline that would then use webpack to do this step. The downside is that it would make NodeJS / NPM a key dependency to build slate. Upside is that we use things that are actively maintained and supported and forward facing (and get off sass completely).
@lord, @MikeRalphson thoughts?
Beta Was this translation helpful? Give feedback.
All reactions