init-ts-project
Initialize a new TypeScript project.
Last updated 2 days ago by chrisackerman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install init-ts-project 
SYNC missed versions from official npm registry.

init-ts-project

Initialize a new TypeScript project.

This is an opinionated project initialization tool which assumes the following:

  • TypeScript will be used for source code.
  • SCSS (SASS) will be used for styles.
  • React will be used for web application development.
  • Babel will be used to compile TypeScript (and/or JavaScript).
  • Webpack will be used to compile web application bundles.
    • Normalize.css will be used in your web application.
  • Jest will be used for testing.
    • Fake timers will be used.
    • Mocks will be cleared between tests.
  • Enzyme will be used for web application testing.
  • 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.js is the CLI or library entry point.
  • dist/ contains web application build output.
    • This directory is deployable.
  • css/ contains style build output.
    • React component library CSS must be imported explicitly (e.g. 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.

Getting Started

Create a new project directory, change into it, and use npm (or yarn) to initialize your package.json file.

mkdir MyProject
cd MyProject
npm init

Run this utility.

npx init-ts-project

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 package.json file.

Current Tags

  • 1.5.11                                ...           latest (2 days ago)

51 Versions

  • 1.5.11                                ...           2 days ago
  • 1.5.10                                ...           4 days ago
  • 1.5.9                                ...           5 days ago
  • 1.5.8                                ...           12 days ago
  • 1.5.7                                ...           17 days ago
  • 1.5.6                                ...           19 days ago
  • 1.5.5                                ...           19 days ago
  • 1.5.4                                ...           20 days ago
  • 1.5.3                                ...           20 days ago
  • 1.5.2                                ...           20 days ago
  • 1.5.1                                ...           20 days ago
  • 1.5.0                                ...           20 days ago
  • 1.4.5                                ...           20 days ago
  • 1.4.4                                ...           a month ago
  • 1.4.3                                ...           a month ago
  • 1.4.2                                ...           a month ago
  • 1.4.1                                ...           a month ago
  • 1.4.0                                ...           a month ago
  • 1.3.2                                ...           2 months ago
  • 1.3.1                                ...           3 months ago
  • 1.3.0                                ...           3 months ago
  • 1.2.2                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.4                                ...           4 months ago
  • 1.1.3                                ...           4 months ago
  • 1.1.2                                ...           4 months ago
  • 1.1.1                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.23                                ...           4 months ago
  • 1.0.22                                ...           4 months ago
  • 1.0.21                                ...           5 months ago
  • 1.0.20                                ...           5 months ago
  • 1.0.19                                ...           5 months ago
  • 1.0.18                                ...           5 months ago
  • 1.0.17                                ...           5 months ago
  • 1.0.16                                ...           5 months ago
  • 1.0.15                                ...           5 months ago
  • 1.0.14                                ...           5 months ago
  • 1.0.13                                ...           5 months ago
  • 1.0.12                                ...           5 months ago
  • 1.0.11                                ...           5 months ago
  • 1.0.10                                ...           5 months ago
  • 1.0.9                                ...           5 months ago
  • 1.0.8                                ...           5 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 17
This Month 64
Last Day 0
Last Week 33
Last Month 227
Dependencies (18)
Dev Dependencies (24)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |