Initialize a new TypeScript project.
This is an opinionated project initialization tool which assumes the following:
src/contains TypeScript source files.
scss/contains style source files.
public/contains static web source files.
lib/contains CLI or library build output.
lib/index.jsis the CLI or library entry point.
dist/contains web application build output.
css/contains style build output.
import "library/css/index.css";), and is not automatically consumed by importing a component from the library!
This utility only creates and modifies files. After running the utility, your project is independent of this utility. There is no "eject" mechanism because it isn't necessary.
This utility is intended to create a very lean project similar to what a knowledgeable developer might create by hand. Configurations are small and simple with the minimum information to work reliably in most environments. Dependencies are kept to a minimum, and few (if any) non-development dependencies are included.
See the examples directory for samples of the utility's output.
Create a new project directory, change into it, and use npm (or yarn) to initialize your
mkdir MyProject cd MyProject npm init
Run this utility.
You will be asked what kind of project you are starting. Use the arrow and return keys to select the project type.
? Choose a project type › - Use arrow-keys. Return to submit. ❯ Web Application Component Library Utility Library Command Line Tool Azure Function
You will also be asked if you want to create starter files. Choose "no" if your project already contains source files, otherwise you may overwrite your code. The default value is "no".
? Create starter project source files (may overwrite existing source files) › (y/N)
This utility will then create and/or overwrite configuration files and update your