29 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
Pierre Noël
e436a34d46
fix knex, pg, mysql versions (#9511) 2021-02-24 21:59:18 +01:00
DMehaffy
438921ecf2
Fix for failing SQLite3 issue on windows (#9142)
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-01-20 17:25:04 +01:00
HichamELBSI
53231b5833 Merge branch 'master' into feature/relational-fields 2020-12-16 10:17:47 +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
07e7cfc0bd Make lint stricter and fix the errors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +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
Rémi de Juvigny
d13c868fce Add template property to our analytics
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-09-08 09:56:14 +02:00
Rémi de Juvigny
81d587e11e Prevent template from overwriting uuid
Signed-off-by: Rémi de Juvigny <remi@hey.com>
2020-08-31 12:32:21 +02:00
Aurélien GEORGET
baa034e1c0
Add noRun property in global scope (#7030)
Signed-off-by: Aurélien Georget <aurelsicoko@gmail.com>
2020-07-16 11:07:39 +02:00
Aurélien GEORGET
245d54c08c
Stringify boolean to detect Yarn or npm (#6795)
Signed-off-by: Aurélien Georget <aurelsicoko@gmail.com>
2020-06-24 16:12:34 +02:00
Aurélien Georget
06f9561f86 Check package manager
Signed-off-by: Aurélien Georget <aurelsicoko@gmail.com>
2020-04-17 12:42:02 +02:00
Alexandre BODIN
98ad4ac199
Update db-questions.js 2020-01-07 14:23:15 +01:00
Jim LAURIE
3d21af7678 fix: alert when dot in database name
MongoDB can't have a dot in it's name. So here I add a validation for the database name.

fix #2268
2019-12-28 00:01:54 +01:00
Alexandre Bodin
2bf3533c85 Merge branch 'master' into develop 2019-12-06 12:34:26 +01:00
Aurélien Georget
773b89bc79 Add parameter to identify Docker projects 2019-11-29 18:10:32 +01:00
Alexandre Bodin
1fcc8d00fa Merge branch 'master' into develop 2019-10-29 23:04:57 +01:00
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
66b2d4f5c3 Init 2019-10-23 17:02:23 +02: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
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
67ca0a42a7 Add more validation and better database emptyness tests 2019-07-08 15:39:08 +02:00
Alexandre Bodin
a61845b3c0 Update wordings 2019-07-03 11:20:14 +02:00
Alexandre Bodin
723628fec0 Some cleanup 2019-06-20 18:28:18 +02:00
Alexandre Bodin
3295c6824b Create create-strap-app pacakge 2019-06-20 18:28:17 +02:00