From 93bc6d6173c5d46c670ad1578000d3cb1df67a06 Mon Sep 17 00:00:00 2001 From: Roelof Roos Date: Tue, 21 Nov 2023 00:31:26 +0100 Subject: [PATCH] Added test directory --- .eslintignore | 1 + .github/workflows/verify-files.yml | 7 +++++++ test/.gitignore | 3 +++ test/package.json | 16 ++++++++++++++++ test/src/index.html | 11 +++++++++++ test/src/style.css | 5 +++++ test/tailwind.config.js | 6 ++++++ 7 files changed, 49 insertions(+) create mode 100644 .eslintignore create mode 100644 test/.gitignore create mode 100644 test/package.json create mode 100644 test/src/index.html create mode 100644 test/src/style.css create mode 100644 test/tailwind.config.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..1933786 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/test/ diff --git a/.github/workflows/verify-files.yml b/.github/workflows/verify-files.yml index cdbcf8e..34063b5 100644 --- a/.github/workflows/verify-files.yml +++ b/.github/workflows/verify-files.yml @@ -24,3 +24,10 @@ jobs: - name: Run linter run: npm run lint + + - name: Test Tailwind + working-directory: test + run: | + npm install + npm run lint + npm run build diff --git a/test/.gitignore b/test/.gitignore new file mode 100644 index 0000000..1a99321 --- /dev/null +++ b/test/.gitignore @@ -0,0 +1,3 @@ +dist/ +node_modules/ +package-lock.json diff --git a/test/package.json b/test/package.json new file mode 100644 index 0000000..ff69c18 --- /dev/null +++ b/test/package.json @@ -0,0 +1,16 @@ +{ + "name": "@gumbo-millennium/config-test", + "private": true, + "scripts": { + "lint": "eslint --fix .", + "build": "npx tailwindcss -i ./src/style.css -o ./dist/output.css" + }, + "devDependencies": { + "@gumbo-millennium/eslint-config": "file:../" + }, + "eslintConfig": { + "extends": [ + "@gumbo-millennium/eslint-config" + ] + } +} diff --git a/test/src/index.html b/test/src/index.html new file mode 100644 index 0000000..ef23a01 --- /dev/null +++ b/test/src/index.html @@ -0,0 +1,11 @@ + + + + + + Hello World + + +

Hello World!

+ + diff --git a/test/src/style.css b/test/src/style.css new file mode 100644 index 0000000..669478f --- /dev/null +++ b/test/src/style.css @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/test/tailwind.config.js b/test/tailwind.config.js new file mode 100644 index 0000000..9093f11 --- /dev/null +++ b/test/tailwind.config.js @@ -0,0 +1,6 @@ +module.exports = { + presets: [ + '@gumbo-millennium/eslint-config/tailwind', + ], + content: ['./src/**/*.html'], +};