Skip to content

Commit cd991e1

Browse files
authored
Modernize (ironically) with Vite, Tailwind 3, and Alpine (#21)
1 parent a4febb0 commit cd991e1

File tree

21 files changed

+18839
-249
lines changed

21 files changed

+18839
-249
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
Statamic Starter Kit: Doogie Browser
44
</h1>
55

6-
![Statamic 3.2+](https://img.shields.io/badge/Statamic-3.2+-FF269E?style=for-the-badge&link=https://statamic.com)
7-
86
> View on the [Statamic Marketplace](https://statamic.com/starter-kits/statamic/doogie-browser)!
97
<!-- /statamic:hide -->
108
@@ -16,35 +14,34 @@
1614
- Old school Doogie Howser/IBM word processor design
1715
- Automatic downsampling of all images for that cutting-edge VGA feel
1816
- "Typography" using [IBM VGA8](https://int10h.org/oldschool-pc-fonts/fontlist/#ibmvgamcga)
19-
- Responsive
17+
- Responsive (even that wasn't a thing in the DOS days)
2018
- Built with [TailwindCSS](https://tailwindcss.com)
21-
- [Vue.js](https://github.com/vuejs/vue) for keyboard navigation
22-
- [PurgeCSS](https://purgecss.com/) for that tiny `4kb` css file size
2319
- :100: Lighthouse score
2420

2521

2622
## Quick Start
2723

28-
### Install as a New Site
29-
You can spin up a new install of Statamic along with this Starter Kit all in one command by using the [Statamic CLI Tool](https://github.com/statamic/cli)
24+
### 1. Create a new site
25+
26+
You can create a new site using the [Statamic CLI](https://github.com/statamic/cli):
3027

3128
```
32-
statamic new mysite statamic/starter-kit-doogie-browser
29+
statamic new your-site statamic/starter-kit-doogie-browser
3330
```
3431

35-
Follow the prompts and you'll be up and running shortly.
36-
37-
### Install into an existing site
38-
You can alternatively install Starter Kits into an existing Statamic 3.2+ site by running the following command while inside that install's root directory:
32+
Or you can install manually into a fresh [Statamic installation](https://statamic.dev/installation) by running:
3933

4034
```
41-
php please starter-kit:install statamic/starter-kit-doogie-browser
35+
php please starter-kit:install statamic/starter-kit-doogie-browser --clear-site
4236
```
4337

38+
### 2. Make a new user
4439

45-
### Customizing (optional)
40+
The above installers should prompt you to make a user, but you can also run `php please make:user`. You'll want it to be a `super` so you have access to everything.
4641

47-
The [TailwindCSS](https://tailwindcss.com/) included in this kit is compiled with [PurgeCSS](https://purgecss.com/) to reduce filesize on any unused classes and selectors. If you want to modify anything you'll need to recompile it.
42+
### 3. Recompile the CSS and JS (optional)
43+
44+
This starter kit comes with precompiled CSS and JS. If you want to modify anything, just recompile it.
4845

4946
```
5047
npm i && npm run dev
@@ -53,9 +50,13 @@ npm i && npm run dev
5350
To compile for production again:
5451

5552
```
56-
npm run production
53+
npm run build
5754
```
5855

56+
### 4. Do your thing!
57+
58+
If you're using [Laravel Herd](https://herd.laravel.com/) (or similar), your site should be available at `http://your-site.test`. You can access the control panel at `http://your-site.test/cp` and login with your new user. Open up the source code, follow along with the [Statamic docs](https://statamic.dev), and enjoy!
59+
5960
## Contributing
6061

6162
Contributions are always welcome, no matter how large or small. Before contributing, please read the [code of conduct](https://github.com/statamic/cms/wiki/Code-of-Conduct).

content/trees/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
{
22
"private": true,
3+
"type": "module",
34
"scripts": {
4-
"dev": "npm run development",
5-
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6-
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
7-
"watch-poll": "npm run watch -- --watch-poll",
8-
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
9-
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
5+
"dev": "vite",
6+
"build": "vite build"
117
},
128
"devDependencies": {
13-
"autoprefixer": "^9.7.4",
14-
"cross-env": "^5.1",
15-
"laravel-mix": "^5.0",
16-
"laravel-mix-purgecss": "^5.0.0",
17-
"postcss-import": "^12.0.1",
18-
"postcss-nested": "^4.1.2",
19-
"postcss-preset-env": "^6.7.0",
20-
"tailwindcss": "^1.1.2",
21-
"vue-template-compiler": "^2.6.11"
22-
},
23-
"dependencies": {
24-
"vue": "^2.6.11",
25-
"vue-keypress": "^1.1.0"
9+
"@vitejs/plugin-vue": "^5.1.4",
10+
"autoprefixer": "^10.4.19",
11+
"laravel-vite-plugin": "^1.0.2",
12+
"postcss": "^8.4.38",
13+
"tailwindcss": "^3.4.3",
14+
"vite": "^5.2.8"
2615
}
2716
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
22
size: 317647
3-
last_modified: 1579281552
3+
last_modified: 1729225326
44
width: 1344
55
height: 896
6+
mime_type: image/jpeg
7+
duration: null
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 87881
3-
last_modified: 1579214338
2+
size: 82743
3+
last_modified: 1729225326
44
width: 940
55
height: 611
6+
mime_type: image/jpeg
7+
duration: null
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 76240
3-
last_modified: 1579206544
2+
size: 66884
3+
last_modified: 1729225326
44
width: 1500
55
height: 750
6+
mime_type: image/jpeg
7+
duration: null

0 commit comments

Comments
 (0)