Added tailwind to simple website project. .gitignore is finally required given node_modules disaster.
This commit is contained in:
parent
00227bb159
commit
19212d23f8
7 changed files with 1536 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
./dylanbaird.com/node_modules/*
|
||||
node_modules
|
||||
output.css
|
|
@ -1,8 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Building static assets for dylanbaird.com."
|
||||
cp -r ../dylanbaird.com .
|
||||
cd ./dylanbaird.com
|
||||
npx tailwindcss -i ./src/input.css -o ./src/output.css --minify
|
||||
rm ./src/input.css
|
||||
cd ../
|
||||
|
||||
echo "Building Docker container."
|
||||
sudo docker build -t boulangermontrealais/barrios:caddy .
|
||||
|
||||
echo "Pushing Docker container to registry."
|
||||
sudo docker push boulangermontrealais/barrios:caddy
|
||||
|
||||
echo "Cleaning up artifacts for dylanbaird.com."
|
||||
rm -rf dylanbaird.com
|
||||
|
||||
echo "Build and push completed successfully."
|
1493
dylanbaird.com/package-lock.json
generated
Normal file
1493
dylanbaird.com/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
5
dylanbaird.com/package.json
Normal file
5
dylanbaird.com/package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"tailwindcss": "^3.4.17"
|
||||
}
|
||||
}
|
|
@ -1 +1,13 @@
|
|||
<h1>dylan baird</h1>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="./output.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="text-3xl font-bold underline">
|
||||
dylan baird
|
||||
</h1>
|
||||
</body>
|
||||
</html>
|
3
dylanbaird.com/src/input.css
Normal file
3
dylanbaird.com/src/input.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
9
dylanbaird.com/tailwind.config.js
Normal file
9
dylanbaird.com/tailwind.config.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: ["./src/**/*.{html,js}"],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
|
Loading…
Reference in a new issue