create-some-app v1.1.5
create-some-app
π©βπ»ππ¨βπ» A configurable CLI-based scaffolder that creates some app!
π The project is in ALPHA (work in progress).
Installation & Usage
Choose one of these methods:
npm init some-appnpm init create-some-appnpx create-some-appnpm install -g create-some-app
...and then you'll be able to use the create-some-app command.
Using the CLI
create-some-appBy default, when running create-some-app 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-some-app 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-some-app --yes
create-some-app fullstack-gatsby-sanity -y3. --git or -g
When passed, git init will be run, initialising a git repo with all files unstaged.
create-some-app fullstack-next-sanity --yes --git
create-some-app fullstack-next-sanity -y -g4. --install or -i
When passed, npm install will be run, initialising all dependencies specified in package.json file for the chosen template/scaffold.
create-some-app fullstack-next-sanity --yes --git --install
create-some-app fullstack-next-sanity -y -g -i5. --setup or -s
When passed, npm run setup will be run. This command will:
- Install all dependencies, including those within
frontendandbackendfolders - Create
productionbranch - Set remote repo
- Add files
- Create the first commit and push to
production - Create
developbranch and push todevelop - Create the first tag and push it
π It must be used combined with
--gitflag.
create-some-app fullstack-next-sanity --git --install --setup
create-some-app fullstack-next-sanity -g -i -s6. --gatsbyDefaultEnvironment
create-some-app --gatsbyDefaultEnvironment productionπ This will be added to
.envExamplefiles, that should be renamed to.envand not committed/tracked bygit.
7. --nodeVersion
create-some-app --nodeVersion 12.18.0This is meant as a way to both document and require the node version used at the time of the install, so that contributors know which version they should use.
8. --ownersName
create-some-app --ownersName 'Owner Inc.'Used at LICENSE and package.json level, for copyright purposes.
9. --projectName
create-some-app --projectName 'Nice Project Name'This name will be injected in several places of the application, so it's important to get it right. It will be injected as/at:
- Repository's name
package.jsonfiles- README files
- Configuration files
- Github repo urls
- Travis build status urls
- Netlify urls
- Badges urls
If you pass La la la or LaLaLa, the project name will become la-la-la (because of the conversion to kebak-case), which is OK if that's what you want. If you use Lalala or lalala you'll get lalala. Keep it in mind when naming your project.
10. --projectDescription
create-some-app --projectDescription 'Such Wow Description'11. --repoOwner
create-some-app --repoOwner dreamyguyThis name will be injected in several places of the application, so it's important to get it right. It will be injected at
- Github repo urls
- Travis build status urls
- Badges urls
If you pass La la la or LaLaLa, the repo owner's name will become la-la-la (because of the conversion to kebak-case), which is OK if that's what you want. Keep it in mind when naming the repo owner.
12. --sanityAuthToken
create-some-app --sanityAuthToken lkasjflkjasldfjlkajsdkfjlkajsdfkljsalkjdfsomethingsomethingπ This will be added to
.envExamplefiles, that should be renamed to.envand not committed/tracked bygit.
13. --sanityProjectId
create-some-app --sanityProjectId 701kayak107π This will be added to
.envExamplefiles, that should be renamed to.envand not committed/tracked bygit.
14. --sanityDataset
create-some-app --sanityDataset productionThis will be added to the local Netlify's config, which overrides their remote UI settings.
π This will also be added to
.envExamplefiles, that should be renamed to.envand not committed/tracked bygit.
15. --siteUrl
create-some-app --siteUrl http://thisistheurl.ioUsing the full potential of the CLI, with all options, without even installing it first (using npx):
npx create-some-app 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 --setupWhat kind of apps are available?
π 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 create-some-app.
Extended DOCS
License
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you'll be creating employment for local families and restoring wildlife habitats.
Credits
create-some-app is heavily based on / inspired by the awesome work of:
- Dominik Kundel πΊπ² - @dkundel - create-project
- Nader Dabit πΊπ² - @dabit3 - create-new-cli
About
Create Some App was put together by Wallace SidhrΓ©e. π¨βπ»π³π΄