Skip to content

Commit

Permalink
Added test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofr committed Nov 20, 2023
1 parent 9c78547 commit 93bc6d6
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/test/
7 changes: 7 additions & 0 deletions .github/workflows/verify-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
node_modules/
package-lock.json
16 changes: 16 additions & 0 deletions test/package.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
11 changes: 11 additions & 0 deletions test/src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World</title>
</head>
<body>
<h1 class="text-brand font-poppins">Hello World!</h1>
</body>
</html>
5 changes: 5 additions & 0 deletions test/src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@charset "UTF-8";

@tailwind base;
@tailwind components;
@tailwind utilities;
6 changes: 6 additions & 0 deletions test/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
'@gumbo-millennium/eslint-config/tailwind',
],
content: ['./src/**/*.html'],
};

0 comments on commit 93bc6d6

Please sign in to comment.