Giter Site home page Giter Site logo

Comments (13)

KyleAMathews avatar KyleAMathews commented on June 14, 2024

Starters are a key part of where I see Gatsby going.

Great starters are key because:

  1. They vastly speed up the initial time-to-value.
  2. Give non-programmers a way to play.
  3. Long-term they help disseminate best-practices.

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

@fson suggested on Slack that instead of maintaining a central yaml file, just standardize around a "gatsby-starter" tag in package.json. 👍 from me for that.

from gatsby.

kevinsimper avatar kevinsimper commented on June 14, 2024

@KyleAMathews

package.json

That would only work if the starter is published to npm but the starter is hosted on github?

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

No the indexer could read the package.json from github just fine.

from gatsby.

kevinsimper avatar kevinsimper commented on June 14, 2024

But then you still need to provide a central place for telling about the github repo with that package.json

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

Right, starters will be manually added here via PRs.

from gatsby.

gesposito avatar gesposito commented on June 14, 2024

It's actually possible to scan the whole npm registry looking for specific tags inside the packages.
I have a toy project (not a Node.js developer... yet?) that does that. It would need a server for running the "live" version of it, otherwise it would need to be triggered on demand.
It's a bit of work but it would discover any starter published on npm.

Not sure about Github's API.

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

There might (hopefully) be a day where there's too many Gatsby starters to easily manually curate but I'd guess we're a long ways off from that :) So for now, creating a registry maintained here seems like a reasonable approach. So until then, adding Github repos to the registry which then get scanned for metadata (most likely added to the package.json) and added to the Gatsby website seems like the right approach.

from gatsby.

kevinsimper avatar kevinsimper commented on June 14, 2024

@gesposito https://www.npmjs.com/browse/keyword/http :) it pretty simple, but gatsby starters is git repos and not npm modules

@KyleAMathews 👍

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

Oh, I did forget about #20. If/when that lands, then the "base" sites would almost certainly be installed via NPM. E.g. you'd install the gatsby-blog-base package which would provide the base _template + index files and you'd just need to add markdown files for posts. But those (whatever they're called) would always be treated differently than starters. Starters are meant to "start" off a site. They're malleable etc. "Base" sites are more like Wordpress themes where they set the structure, etc. of your site so you just need to add content.

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

Some CLI inspiration https://github.com/drjekyllthemes/drjekyll

from gatsby.

stale avatar stale commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from gatsby.

KyleAMathews avatar KyleAMathews commented on June 14, 2024

closing this issue as active discussion has moved to #3003

from gatsby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.