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
<p class="text-gray-800 text-2xl md:text-3xl font-light mb-8"><?php_e( 'Sorry, the page you are looking for could not be found.', 'tailpress' ); ?></p>
TailPress is a minimal boilerplate theme for WordPress using [Tailwind CSS](https://tailwindcss.com/).
9
11
10
12
## Getting started
11
13
12
-
### Using the installer
14
+
You can use the TailPress [installer](#installer), or you can simply [clone](#clone-repository) this repository.
13
15
14
-
You can get started using the installer (using composer):
16
+
### Installer
15
17
16
-
```bash
17
-
composer global require jeffreyvanrossum/tailpress-installer
18
+
To use installer, you need to install it globally via Composer:
18
19
19
-
tailpress new example-theme
20
-
```
20
+
`composer global require jeffreyvanrossum/tailpress-installer`
21
+
22
+
Afterwards, you can run:
23
+
24
+
`tailpress new example-theme`
21
25
22
26
*If the tailpress command is not found, make sure to place Composer's global vendor bin in your `$PATH` ([see](#command-tailpress-not-found)).*
23
27
24
28
Flags you can pass when using the installer:
25
29
- Set a theme name `--name="Example Theme"`
26
-
- Choose your compiler, mix or esbuild: `--compiler="esbuild"`
27
30
- Initialize a git repository `--git`
28
31
- Set the git branch name `--branch="main"`
29
32
@@ -34,28 +37,26 @@ Once your theme is ready, don't forget to cd into the directory.
34
37
35
38
You will be asked if you would like to have WordPress installed as well. Keep in mind that you still need a local development environment for PHP and MySQL.
36
39
37
-
### Regular method
40
+
### Clone repository
38
41
39
42
* Clone repo `git clone https://github.com/jeffreyvr/tailpress.git && cd tailpress`
40
43
* Run `rm -rf .git` to remove git (or `rmdir .git` for Windows)
41
44
* Run `npm install`
42
45
* Run `npm run watch` to start developing
43
46
44
-
### General
47
+
##Resources and compiling
45
48
46
49
You will find the editable CSS and Javascript files within the `/resources` folder.
47
50
48
51
Before you use your theme in production, make sure you run `npm run production`.
49
52
50
-
## NPM Scripts
51
-
52
53
There are several NPM scripts available. You'll find the full list in the `package.json` file under "scripts". A script is executed through the terminal by running `npm run script-name`.
0 commit comments