typescript-webpack-starter icon indicating copy to clipboard operation
typescript-webpack-starter copied to clipboard

Add schematics bootstrap code (Angular, React, Vue, etc)

Open splincode opened this issue 7 years ago • 1 comments

Angular has so-called schematics bootstrap code

$ create-ts-lib my-typescript-lib --collection=angular-starter
$ create-ts-lib my-typescript-lib --collection=react-starter
$ create-ts-lib my-typescript-lib --collection=vue-starter

splincode avatar Apr 06 '18 07:04 splincode

@splincode Thanks for this suggestion! I really like the idea of having something like presets giving us more flexibility on the creation of the final project.

I will take a look at angular schematics, I am intrigued by their tree implementation. I will draft a prototype that allows to use the cli this way for example:

create-ts-lib create -p default | minimal -n app

Where Default and Minimal presets could be a composition of tools in these categories:

  1. Application Type (TS, ES6..), 2. Bundler(Webpack, Rollup), 3. Test Framework(Jest...), 4. Automatic Versionning (?) , 5. CI/CD (Travis, CircleCI)

default

  • 1.Typescript, 2.Webpack, 3.Karma+Jasmine, 4.Semantic Release, 5.CircleCI

minimal

  • 1.Typescript, 2.Webpack, 3.Jest, 4.None, 5.None

What do you think ?

emyann avatar Aug 22 '18 16:08 emyann