ts-babel-generator

1.4.1 • Public • Published

Typescript Babel Project Generator

ts-babel-generator generates a typescript with babel project based on https://github.com/Microsoft/TypeScript-Babel-Starter

NPM version Known Vulnerabilities npm NPM downloads issues license Gitter

Why

I got tired of either having to clone the sample repo provided or run through the steps myself everytime I wanted to set up a project.

Install

To install ts-babel-generator as a global command, you can use:

$ npm install -g ts-babel-generator

Usage

To use ts-babel-generator, you can call the command with the name of the project you want to create like so:

$ ts-babel-generator helloworld

This will create a project called 'helloworld' in the current directory that you are in.

Flags

To customize the output project, you can use a combination of the flags below:

ts-babel-generator [options]

-o, --output        Specify the directory to save the the project (current working directory)
-w, --webpack       Indicates whether webpack should be used for this project. (false)
-g, --git           Indicates that this project is going to be using git and adds a .gitignore file to it. (true)
-c, --changelog     Indicates whether a basic CHANGELOG file should be created or not. (true)
-r, --rollup        Indicates whether rollup should be used for this project. (false)
-s, --silent        Indicates whether output should be hidden or not.

Examples

Creating a webpack project:

$ ts-babel-generator hellowebpack -w

Creating a rollup project:

$ ts-babel-generator hellorollup -r

Test

To run the tests available, use:

$ npm run test

Note: The tests take a while to complete as there are generous timeouts to ensure that files have been created and packages have been installed.

License

MIT

Package Sidebar

Install

npm i ts-babel-generator

Weekly Downloads

2

Version

1.4.1

License

MIT

Unpacked Size

19.5 kB

Total Files

7

Last publish

Collaborators

  • robert.corponoi