Skip to content

Commit 4b2568c

Browse files
committed
chore: Complete TYpescript setup
1 parent a694302 commit 4b2568c

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

Diff for: postcss.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
const tailwindcss = require("tailwindcss");
2+
const autoprefixer = require("autoprefixer");
3+
14
module.exports = {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
5+
plugins: [tailwindcss("./tailwind.config.cjs"), autoprefixer],
6+
};

Diff for: src/App.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.App {
22
text-align: center;
3+
display: flex;
4+
flex-direction: column;
5+
align-items: center;
6+
justify-content: center;
37
}
48

59
.App-logo {
@@ -14,7 +18,6 @@
1418
}
1519

1620
.App-header {
17-
background-color: #282c34;
1821
min-height: 100vh;
1922
display: flex;
2023
flex-direction: column;

Diff for: src/App.tsx

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
import * as React from "react";
2-
import logo from "./logo.svg";
32
import "./App.css";
43

54
function App() {
65
return (
76
<div className="App">
87
<header className="App-header">
9-
<img src={logo} className="App-logo" alt="logo" />
10-
<p>
8+
<p className="text-blue-600">
119
Edit <code>src/App.js</code> and save to reload.
1210
</p>
13-
<a
14-
className="App-link"
15-
href="https://reactjs.org"
16-
target="_blank"
17-
rel="noopener noreferrer"
18-
>
19-
Learn React
20-
</a>
2111
</header>
2212
</div>
2313
);

Diff for: src/logo.svg

-1
This file was deleted.

Diff for: tailwind.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ["./src/**/*.{js,jsx}", "./public/index.html"],
3+
content: ["./src/**/*.{ts,tsx}", "./public/index.html"],
44
theme: {
55
extend: {},
66
},

0 commit comments

Comments
 (0)