refactor: Integrate TailwindCSS build process

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-10 03:32:12 +08:00
1 parent fe31f9ffe2
commit 76f30933ad
9 files changed
+47 -3275

No files matched your search

+3 -3
View File
@@ -10,8 +10,7 @@ source "https://rubygems.org"
gem "jekyll", "~> 4.3.2" gem "jekyll", "~> 4.3.2"
# This is the default theme for new Jekyll sites. You may change this to anything you like. # This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5" gem "minima", "~> 2.5"
gem 'webrick' gem "webrick", "~> 1.7"
gem 'jekyll-postcss-v2'
# Temporarily disable Jekyll admin and required plugins causing Netlify build to fail # Temporarily disable Jekyll admin and required plugins causing Netlify build to fail
# gem 'jekyll-admin', group: :jekyll_plugins # gem 'jekyll-admin', group: :jekyll_plugins
@@ -27,7 +26,8 @@ group :jekyll_plugins do
gem "jekyll-sass-converter", "~> 3.0.0" gem "jekyll-sass-converter", "~> 3.0.0"
gem "jekyll-watch", "~> 2.2.1" gem "jekyll-watch", "~> 2.2.1"
gem "jekyll-seo-tag", "~> 2.8.0" gem "jekyll-seo-tag", "~> 2.8.0"
gem 'octopress-paginate' gem "jekyll-postcss-v2"
gem "octopress-paginate"
end end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
-1
View File
@@ -30,7 +30,6 @@ twitter_username: jekyllrb
github_username: jekyll github_username: jekyll
# Build settings # Build settings
theme: minima
plugins: plugins:
- jekyll-feed - jekyll-feed
- octopress-paginate - octopress-paginate
+2 -2
View File
@@ -6,8 +6,8 @@
<meta content="#000000" name="theme-color"/> <meta content="#000000" name="theme-color"/>
<link href="" rel="shortcut icon"/> <link href="" rel="shortcut icon"/>
<link href="" rel="apple-touch-icon" sizes="76x76"/> <link href="" rel="apple-touch-icon" sizes="76x76"/>
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/styles.css' | relative_url }}"> {% comment %}<link rel="stylesheet" href="{{ '/assets/styles.css' | relative_url }}">{% endcomment %}
<title>Resharespace</title> <title>Resharespace</title>
<script src='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js'></script> <script src='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css' rel='stylesheet'/> <link href='https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css' rel='stylesheet'/>
+6 -1
View File
@@ -1,4 +1,9 @@
---
---
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@config "../../../tailwind.config.js";
-3260
View File
File diff suppressed because it is too large. Load diff
+28
View File
@@ -13,6 +13,7 @@
"cssnano": "^5.1.8", "cssnano": "^5.1.8",
"live-server": "^1.2.1", "live-server": "^1.2.1",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"postcss-scss": "^4.0.9",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.9", "prettier-plugin-tailwindcss": "^0.6.9",
"tailwindcss": "^3.4.15" "tailwindcss": "^3.4.15"
@@ -3579,6 +3580,33 @@
"postcss": "^8.1.0" "postcss": "^8.1.0"
} }
}, },
"node_modules/postcss-scss": {
"version": "4.0.9",
"resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz",
"integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==",
"dev": true,
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss-scss"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"license": "MIT",
"engines": {
"node": ">=12.0"
},
"peerDependencies": {
"postcss": "^8.4.29"
}
},
"node_modules/postcss-selector-parser": { "node_modules/postcss-selector-parser": {
"version": "6.1.2", "version": "6.1.2",
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
+1
View File
@@ -4,6 +4,7 @@
"cssnano": "^5.1.8", "cssnano": "^5.1.8",
"live-server": "^1.2.1", "live-server": "^1.2.1",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"postcss-scss": "^4.0.9",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.9", "prettier-plugin-tailwindcss": "^0.6.9",
"tailwindcss": "^3.4.15" "tailwindcss": "^3.4.15"
+6 -2
View File
@@ -1,9 +1,13 @@
module.exports = { module.exports = {
plugins: [ plugins: [
require('postcss-import')({
path: ["assets/css"],
addModulesDirectories: ["assets/css"]
}),
require('tailwindcss'), require('tailwindcss'),
require('autoprefixer'), require('autoprefixer'),
...(process.env.JEKYLL_ENV == 'production' ...(process.env.JEKYLL_ENV == "production"
? [require('cssnano')({ preset: 'default' })] ? [require('cssnano')({ preset: 'default' })]
: []) : [])
] ]
} };
+1 -6
View File
@@ -1,10 +1,5 @@
module.exports = { module.exports = {
content: [ content: ['./**/*.{html,md}'],
'./_includes/**/*.html',
'./_layouts/**/*.html',
'./_posts/*.md',
'./*.html'
],
future: { future: {
// removeDeprecatedGapUtilities: true, // removeDeprecatedGapUtilities: true,
// purgeLayersByDefault: true, // purgeLayersByDefault: true,