create-sprout v1.1.3
Netlife Sprout 🌱
🌱 A CLI-based scaffolder that outputs tailored project starters.
Netlife Sprout is a tool created by folks at Netlife.com, so that they could start new projects more effectively, with best practices, reuse and planet first in mind.
👉 The project is in ALPHA (work in progress).
Installation & Usage
Choose one of these methods:
npm init sproutnpx create-sproutnpm install -g create-sprout
...and then you'll be able to use the create-sprout command.
Using the CLI
create-sproutBy default, when running create-sprout without any option or flag, you'll be presented with prompts, so you can tailor the application to your needs without being familiar with available options or flags.
But for those interested in automation or simply in saving time, there are some pre-defined CLI commandos at your disposal:
1. The first config option is the template/project type
Currently fullstack-gatsby-sanity or fullstack-next-sanity.
create-sprout fullstack-next-sanity2. --yes or -y
When passed, prompts will be skipped. Useful when passing both choices and chosen flags, making the prompt unnecessary.
👉 Without defining the first config option (template choice), it will default to
Fullstack Gatsby Sanity.
create-sprout --yes
create-sprout fullstack-gatsby-sanity -y3. --git or -g
When passed, git init will be run, initialising a git repo with all files unstaged. Default is false.
create-sprout fullstack-next-sanity --yes --git
create-sprout fullstack-next-sanity -y -g4. --install or -i
When passed, npm install will be run, initialising all dependencies specified in the chosen / tailored package.json file.
create-sprout fullstack-next-sanity --yes --git --install
create-sprout fullstack-next-sanity -y -g -i5. --gatsbyDefaultEnvironment
create-sprout --gatsbyDefaultEnvironment production6. --nodeVersion
create-sprout --nodeVersion 12.18.07. --ownersName
create-sprout --ownersName 'Owner Inc.'8. --projectName
create-sprout --projectName 'Nice Project Name'9. --projectDescription
create-sprout --projectDescription 'Such Wow Description'10. --repoOwner
create-sprout --repoOwner dreamyguy11. --sanityAuthToken
create-sprout --sanityAuthToken lkasjflkjasldfjlkajsdkfjlkajsdfkljsalkjdfsomethingsomething12. --sanityProjectId
create-sprout --sanityProjectId 701kayak10713. --sanityDataset
create-sprout --sanityDataset production14. --siteUrl
create-sprout --siteUrl http://thisistheurl.ioUsing the full potential of the CLI, with all options, without even installing it first (using npx):
npx create-sprout fullstack-gatsby-sanity --gatsbyDefaultEnvironment envelope --nodeVersion 12.18.0 --ownersName 'Owner Inc.' --projectName 'Naming Names in the Name' --projectDescription 'Such Wow Description' --repoOwner 'Dreamyguy' --sanityAuthToken lkasjflkjasldfjlkajsdkfjlkajsdfkljsalkjdfsomethingsomething --sanityDataset produccione --sanityProjectId 701kayak107 --siteUrl http://thisistheurl.io --yes --git --installWhat kind of apps are available?
Currently only two: Fullstack Gatsby Sanity and Fullstack Next Sanity. None of them are fully functional at the moment. The project is in ALPHA (work in progress).
Watch this space for highly configurable starters with React, Sanity, Gatsby, NextJs, Bit integration, extensive testing and many other goodies, all bundlet as options within created-sprout.
Extended DOCS
License
Credits
Everyone involved in this project deserve a mention and a big thanks. If you got involved and are not listed, feel free to add your own name. Sorted alphabetically:
- Aleksander Andersen - @lordaust
- Haakon Borch - @haakonmb
- Kevin Bodi - @KevinBodi
- Kristi Faye-Lund - @kfayelun
- Lars Tollefsen - @LarsTollefsen
- Leo Toneff - @bragle
- Milosz Hygen - @miloszhygen
- Sjur Bjørndalsæter - @kodehode
- Wallace Sidhrée - @dreamyguy
Sources
Certain parts of Netlife Sprout are based on, inspired by and/or borrowed from some great open-source projects. There were great researches done as well:
- CLI:
- Heavily based on Create Some App, by Wallace Sidhrée.
- Inspired by Pegmata, by Milosz Hygen.
- Styles & components:
- Initial setup by Kristi Faye-Lund, Leo Toneff & Lars Tollefsen.
- Documentation:
- Initial research by Haakon Borch & Lars Tollefsen.
- Error logging:
- Initial research by Sjur Bjørndalsæter.
- Gatsby:
- Initial setup by Wallace Sidhrée.
- Sanity:
- Initial setup by Kevin Bodi.
- Testing rig:
- Heavily based on Figmatron 2000, by Wallace Sidhrée.