Skip to content

🌱 A CLI-based scaffolder that outputs tailored project starters

License

Notifications You must be signed in to change notification settings

netliferesearch/create-sprout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlife Sprout 🌱

🌱 A CLI-based scaffolder that outputs tailored project starters.

Node Version MIT Licence

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:

  1. npm init sprout
  2. npx create-sprout
  3. npm install -g create-sprout

...and then you'll be able to use the create-sprout command.

Using the CLI

create-sprout

By 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-sanity

2. --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 -y

3. --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 -g

4. --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 -i

5. --gatsbyDefaultEnvironment

create-sprout --gatsbyDefaultEnvironment production

6. --nodeVersion

create-sprout --nodeVersion 12.18.0

7. --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 dreamyguy

11. --sanityAuthToken

create-sprout --sanityAuthToken lkasjflkjasldfjlkajsdkfjlkajsdfkljsalkjdfsomethingsomething

12. --sanityProjectId

create-sprout --sanityProjectId 701kayak107

13. --sanityDataset

create-sprout --sanityDataset production

14. --siteUrl

create-sprout --siteUrl http://thisistheurl.io

Using 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 --install

What 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

MIT

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:

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:

About

🌱 A CLI-based scaffolder that outputs tailored project starters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •