Переглянути джерело

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 рік тому
батько
коміт
097e67f0d6
6 змінених файлів з 44 додано та 0 видалено
  1. 4 0
      .gitignore
  2. 22 0
      package.json
  3. 6 0
      postcss.config.js
  4. 3 0
      src/css/main.css
  5. 0 0
      static/css/.gitkeep
  6. 9 0
      tailwind.config.js

+ 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: [],
+}
+