28 Commits

Author SHA1 Message Date
Mark Kaylor
5505efd304 Create CLI for Strapi starter project
Create starter CLI

Add spaces option

Extract project basename

Add starter shortcut

Refactor git init commit

Replace concurrently with npm-run-all

Move fetch repo function to dedicated file

Allow shortcut to accept external org repo

Fix package config & readme

Fix versions

Add task prefixes

Update readme

[Starter CLI] error handling (#9600)

* Display error message + help for missing arguments

* Add cleaner error messages

* Bump commander from v6.1.0 to v7.1.0

* Capture and log errors from commander

* Simplify cli argument errors

* Provide more human readable error messages

* Replace throw with console log

* Add logger

Add starter tracking

Add wrapper for tracking keys

Update root config

Keep template in scope root

fix strapi config

Fix open frontend

Remove open-cli

Update for rename frontend->starter

update description

Update tracking

Fix tests

fix e2e tests

Make sure packageJsonStrapi does not override unwanted keys & make it optional to avoid errors

simplify metadata strapi

Allow stater or frontend folder for smooth migration of existing starters

Udpate dep

Handle error
2021-03-25 14:06:01 +01:00
Leroy Witteveen
353b4ac5e3
Fixed typo "mentionned" -> "mentioned" @ project creation error (#9133) 2021-01-18 14:17:17 +01: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
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
Rémi de Juvigny
24d42f385f Apply review feedback
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-09-04 16:07:55 +02:00
Rémi de Juvigny
11c9ea17eb Add --template option to create-strapi-app
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-08-28 10:23:03 +02:00
Alexandre Bodin
ceb11379fc Add passportjs and refactor login
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:23:50 +02:00
Alexandre Bodin
da910b0b39 Fix create new project cli option for mongo not handled correctly
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

Fix typos

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

Add tests for env helpers

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

Typo

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-29 11:06:44 +02:00
Alexandre Bodin
3745c7f0d0 Update project generator
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-29 11:06:36 +02:00
Aurélien Georget
bc9ba3d2a7 Add events to improve installation process
Signed-off-by: Aurélien Georget <aurelsicoko@gmail.com>
2020-04-17 12:42:02 +02:00
KULDIP PIPALIYA
cfc8873873 lodash kebab case function used to generate a proper package name 2020-01-07 23:10:00 +05:30
KULDIP PIPALIYA
cad9057911 package.json name property must in lowercase 2020-01-02 00:16:48 +05:30
Alexandre Bodin
d73e842d2f Improve the error message on install dependencies error in create strapi-app 2019-10-29 09:00:17 +01:00
Alexandre Bodin
c0683cad2f Remove eslint from project generation to gain speed and keep node compat 2019-10-15 17:18:20 +02:00
Alexandre Bodin
0367a55751 Improve sentry error analytics and startup message 2019-10-15 17:18:20 +02:00
Alexandre Bodin
85cd288526 Capture more detailed events 2019-10-15 17:18:19 +02:00
Alexandre Bodin
b43fba4a79 Console log error before capture in sentry to get the detailed logs 2019-10-08 10:14:43 +02:00
Alexandre Bodin
7c84795d8a Use stderr instead of message 2019-09-26 15:35:55 +02:00
Alexandre Bodin
571e7f3579 Factorize sentry capture code 2019-09-26 14:03:22 +02:00
Alexandre Bodin
67e60369df Add sentry to strapi-generate-new 2019-09-26 12:33:36 +02:00
Alexandre Bodin
a62f73fe5f Merge branch 'develop' into feature/groups 2019-07-18 19:37:09 +02:00
Alexandre Bodin
574b24b5b4 Use generateNew directly and disable dep install 2019-07-18 16:33:18 +02:00
Alexandre Bodin
1eecb4bbf6 Fix gitignore not created on strapi-new 2019-07-15 17:00:49 +02:00
Alexandre Bodin
90149dae59 Update wordings 2019-07-08 16:13:36 +02:00
Alexandre Bodin
a61845b3c0 Update wordings 2019-07-03 11:20:14 +02:00
Alexandre Bodin
c3eaa63fb0 Add --use-npm argument to cli 2019-07-02 17:38:06 +02:00
Alexandre Bodin
d705f7210d Use ora to add a nice loader 2019-06-20 18:28:18 +02:00
Alexandre Bodin
723628fec0 Some cleanup 2019-06-20 18:28:18 +02:00