Эх сурвалжийг харах

Move to a Node package for TailwindCSS

To better use Tailwind CSS in this project, I've moved the project to
being a node package.
ApisNecros 1 жил өмнө
parent
commit
097e67f0d6

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+package-lock.json
+node_modules/
+
+static/css/*.css

+ 22 - 0
package.json

@@ -0,0 +1,22 @@
+{
+  "name": "js-starfish",
+  "version": "0.9.0",
+  "description": "",
+  "main": "index.html",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "build-css": "npx postcss ./src/css/main.css -o ./static/css/styles.css"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git@git.vzqk50.com:ApisNecros/js-starfish.git"
+  },
+  "author": "Apis Necros",
+  "license": "MIT",
+  "devDependencies": {
+    "autoprefixer": "^10.4.14",
+    "postcss": "^8.4.22",
+    "postcss-cli": "^10.1.0",
+    "tailwindcss": "^3.3.1"
+  }
+}

+ 6 - 0
postcss.config.js

@@ -0,0 +1,6 @@
+module.exports = {
+    plugins: {
+        tailwindcss: {},
+        autoprefixer: {},
+    }
+}

+ 3 - 0
src/css/main.css

@@ -0,0 +1,3 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;

+ 0 - 0
static/css/.gitkeep


+ 9 - 0
tailwind.config.js

@@ -0,0 +1,9 @@
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+  content: ["./**/*.html"],
+  theme: {
+    extend: {},
+  },
+  plugins: [],
+}
+