create-some-app
v1.1.5
Published
A configurable CLI-based scaffolder that creates some app
Downloads
1
Maintainers
Readme
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-app
npm init create-some-app
npx create-some-app
npm install -g create-some-app
...and then you'll be able to use the create-some-app
command.
Using the CLI
create-some-app
By 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-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-some-app --yes
create-some-app fullstack-gatsby-sanity -y
3. --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 -g
4. --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 -i
5. --setup
or -s
When passed, npm run setup
will be run. This command will:
- Install all dependencies, including those within
frontend
andbackend
folders - Create
production
branch - Set remote repo
- Add files
- Create the first commit and push to
production
- Create
develop
branch and push todevelop
- Create the first tag and push it
👉 It must be used combined with
--git
flag.
create-some-app fullstack-next-sanity --git --install --setup
create-some-app fullstack-next-sanity -g -i -s
6. --gatsbyDefaultEnvironment
create-some-app --gatsbyDefaultEnvironment production
👉 This will be added to
.envExample
files, that should be renamed to.env
and not committed/tracked bygit
.
7. --nodeVersion
create-some-app --nodeVersion 12.18.0
This 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.json
files- 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 dreamyguy
This 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
.envExample
files, that should be renamed to.env
and not committed/tracked bygit
.
13. --sanityProjectId
create-some-app --sanityProjectId 701kayak107
👉 This will be added to
.envExample
files, that should be renamed to.env
and not committed/tracked bygit
.
14. --sanityDataset
create-some-app --sanityDataset production
This will be added to the local Netlify's config, which overrides their remote UI settings.
👉 This will also be added to
.envExample
files, that should be renamed to.env
and not committed/tracked bygit
.
15. --siteUrl
create-some-app --siteUrl http://thisistheurl.io
Using 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 --setup
What 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. 👨💻🇳🇴