Browse Source

Init

master
Kalyax 2 years ago
commit
0b76dd2c57
  1. 26
      .gitignore
  2. 13
      index.html
  3. 2
      main.js
  4. 18
      package.json
  5. 6
      postcss.config.cjs
  6. 3
      src/style.css
  7. 11
      tailwind.config.cjs

26
.gitignore

@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
package-lock.json

13
index.html

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- link rel="icon" type="image/svg+xml" href="/vite.svg" /-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Domotique</title>
</head>
<body>
<h1 class="bg-red-500 text-3xl font-bold underline">AH!</h1>
<script type="module" src="/main.js"></script>
</body>
</html>

2
main.js

@ -0,0 +1,2 @@
import './src/style.css';
//import axios from 'axios';

18
package.json

@ -0,0 +1,18 @@
{
"name": "projet_domotique_client",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"autoprefixer": "^10.4.13",
"axios": "^1.1.3",
"postcss": "^8.4.18",
"tailwindcss": "^3.2.2",
"vite": "^3.2.0"
}
}

6
postcss.config.cjs

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

3
src/style.css

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

11
tailwind.config.cjs

@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
Loading…
Cancel
Save