You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installer has not been tested on Windows yet, but it should work. Let me know if you run into issues.
9
+
## About TailPress
10
+
11
+
> **Note:** This repository contains the code of the TailPress installer. If you want to build a theme using TailPress, go to the [TailPress repository](https://github.com/tailpress/tailpress).
12
+
13
+
[TailPress](https://tailpress.io) is your go-to starting point for your next [Tailwind CSS](https://tailwindcss.com) powered [WordPress](https://wordpress.org) theme.
14
+
15
+
To get started, have a look at the [documentation](https://tailpress.io/docs).
6
16
7
17
## Install WordPress
8
18
@@ -14,13 +24,11 @@ Note that this will setup WordPress, but you still need a local development envi
14
24
15
25
- Update version number in `bin/tailpress`.
16
26
17
-
## Thanks
18
-
19
-
This package is inspired by the [Laravel Installer](https://github.com/laravel/installer).
20
-
21
27
## Contributors
22
-
*[Jeffrey van Rossum](https://github.com/jeffreyvr)
$name = $input->getOption('name') ?? (newSymfonyStyle($input, $output))->ask('What is the name of your theme?', $folder);
50
+
$authorName = $input->getOption('author-name') ?? (newSymfonyStyle($input, $output))->ask('What is the theme author name?', 'Jeffrey van Rossum');
51
+
$authorEmail = $input->getOption('author-email') ?? (newSymfonyStyle($input, $output))->ask('What is the theme author email?', 'jeffrey@vanrossum.dev');
52
+
$localDevUrl = $input->getOption('local-dev-url') ?? (newSymfonyStyle($input, $output))->ask('What is the local development url of your site?', 'http://localhost:8000');
53
+
54
+
$installWordPress = ($input->getOption('wordpress') || (newSymfonyStyle($input, $output))->confirm('Would you like to install WordPress as well?', false));
55
+
56
+
if($installWordPress) {
57
+
$dbName = $input->getOption('dbname') ?? (newSymfonyStyle($input, $output))->ask('What is the name of your database?', str_replace('-', '_', $folder));
58
+
$dbUser = $input->getOption('dbuser') ?? (newSymfonyStyle($input, $output))->ask('What is the user of your database?', 'root');
59
+
$dbPass = $input->getOption('dbpass') ?? (newSymfonyStyle($input, $output))->ask('What is the password of your database?', 'root');
60
+
$dbHost = $input->getOption('dbhost') ?? (newSymfonyStyle($input, $output))->ask('What is the host of your database?', 'localhost');
61
+
}
62
+
52
63
$slug = $this->determineSlug($folder);
53
64
$prefix = $this->determineSlug($folder, true);
54
65
@@ -64,42 +75,40 @@ protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments