Razzle: Add new templates to create-razzle-app, typescript, client-only

Created on 26 Apr 2020  路  5Comments  路  Source: jaredpalmer/razzle

馃殌 Feature request

Current Behavior

When creating new razzle project for example with typescript there is much manual work to be done.

Desired Behavior

Running npx create-razzle-app my-app --template typescript should setup everything.

Suggested Solution

Add templates.

Who does this impact? Who is this for?

All users.

Describe alternatives you've considered

Copy paste from examples.

Additional context

None.

Most helpful comment

you can use create-razzle-app to create a new project from examples folder:

npx create-razzle-app --example with-typescript my-razzle-typescript-app

and also I'm going to update all of the examples README.md files to have a line about this ...

All 5 comments

you can use create-razzle-app to create a new project from examples folder:

npx create-razzle-app --example with-typescript my-razzle-typescript-app

and also I'm going to update all of the examples README.md files to have a line about this ...

but I think it would be cool to add support for Github repo URLs with CLI tool

something like create-react-app

Ooo didn't know about this, cool 馃憤Thanks!

Nima I have a plan to get on adding that. Just working out what to add and how. I would use npm programmatically to get tar.gz archive urls, download them, use zip -stream and tar-stream to unzip to a temporary directory and copy to new dir and run commands. Then for github use the way we use for official examples just both updated to use request, zip-stream and tar-stream. For git urls use a git module to clone to temp dir...

There is a pull for loading examples from more sources. Closing this one

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ewolfe picture ewolfe  路  4Comments

gabimor picture gabimor  路  3Comments

piersolenski picture piersolenski  路  4Comments

sebmor picture sebmor  路  4Comments

mhuggins picture mhuggins  路  3Comments