4 Commits

Author SHA1 Message Date
Fabien Del Carmen
631ac69686
Add CLI support for branch in direct GitHub URL (#10273)
* Add CLI support for branch in direct GitHub URL

* Change getRepoInfo to return branch

* Change variable name, add eslint 'one-var' rule

* Fix eslint 'one-var' error

* Move fetch GitHub logic in its own file

* Update code to avoid destructuring reassignment

* Update and add some JSDoc
2021-05-19 19:02:41 +02:00
Rémi de Juvigny
b0f3024b07
Improved create-strapi-app's templates (#8627)
* Allow template configs as functions

Signed-off-by: Rémi de Juvigny <remi@hey.com>

* Allow template shorthands

Signed-off-by: Rémi de Juvigny <remi@hey.com>

* Restore strapi-generate-new import

Signed-off-by: Rémi de Juvigny <remi@hey.com>

* New shorthand system and updated docs

Signed-off-by: Rémi de Juvigny <remi@hey.com>

* Improved docs

Signed-off-by: Rémi de Juvigny <remi@hey.com>

* Remove duplicate merge-template file

Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-12-04 11:22:20 +01:00
Rémi de Juvigny
6bc8662ff6
Handle template download error (#8179)
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-10-05 09:41:59 +02:00
Alexandre Bodin
035ae1045f Use os tmp dir and simplify some code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-02 15:20:50 +02:00