kyt-cli is a tool for creating new kyt projects. It installs starter-kyts and all the tools you need to begin development.
npm install -g kyt-cli
setup command sets up your project with all the application files that you'll need to use kyt:
- Creates a new kyt.config.js
- Install necessary npm packages
- Creates a .gitignore and .editorconfig
- Creates linter configurations - .eslintrc.json and .stylelintrc.json files
- Adds kyt commands to npm scripts
If kyt finds any files with duplicate names, it will back up your file before replacing it.
kyt-cli setup will take you through the process of setting up a new kyt project with a set of interactive questions. If you wish to automate this process you can use these optional flags:
-dThe name of the new project directory. If not specified kyt will install the project in your current working directory.
-rThe Github url for a starter-kyt. If not specified you will be prompted to select a starter-kyt from the supported list.
-kFor local development purposes, you can override the version of kyt to be installed by passing in a new version number or a file path eg.
-pThe package manager to use, either
yarn. If not specified, defaults to
yarnif it's installed globally, otherwise
npmwill be used.
kyt will provide you with a list of supported starter-kyts to install. The supported starter-kyts are:
list command lists the supported and recommended starter-kyts.
- A description of best use cases
- Installation instructions
This default starter-kyt is a good base for building advanced, universal React apps.
Setup a new project
I have my own url when prompted to set up a starter-kyt
Setup an existing project
kyt-cli setup in your project directory.
I don't want a starter-kyt when prompted to setup.
See a list of supported starter-kyts