Skip to content

Commit 0c2fffd

Browse files
committed
add integration tests with vite
1 parent ed6ebe9 commit 0c2fffd

9 files changed

+596
-0
lines changed

integrations/vite/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/
2+
node_modules/
3+
!tailwind.config.js
4+
!index.html

integrations/vite/index.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

integrations/vite/index.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="stylesheet" href="./index.css">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
</body>
11+
</html>
12+

integrations/vite/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './index.css'

integrations/vite/package-lock.json

+274
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/vite/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "vite",
3+
"private": true,
4+
"version": "0.0.0",
5+
"main": "./src/index.js",
6+
"browser": "./src/index.js",
7+
"scripts": {
8+
"build":"vite build",
9+
"test": "jest"
10+
},
11+
"jest": {
12+
"displayName": "vite",
13+
"setupFilesAfterEnv": [
14+
"<rootDir>/../../jest/customMatchers.js"
15+
]
16+
},
17+
"devDependencies": {
18+
"vite": "^2.3.3"
19+
}
20+
}

integrations/vite/postcss.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
let path = require('path')
2+
3+
module.exports = {
4+
plugins: [require(path.resolve('..', '..'))],
5+
}

integrations/vite/tailwind.config.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
purge: ['./index.html'],
3+
mode: 'jit',
4+
darkMode: false, // or 'media' or 'class'
5+
theme: {
6+
extend: {},
7+
},
8+
variants: {
9+
extend: {},
10+
},
11+
corePlugins: {
12+
preflight: false,
13+
},
14+
plugins: [],
15+
}

0 commit comments

Comments
 (0)