create-vite-vanilla-js-with-tailwind 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +29 -0
- package/package.json +28 -0
- package/template/index.html +13 -0
- package/template/jsconfig.json +7 -0
- package/template/package-lock.json +1661 -0
- package/template/package.json +18 -0
- package/template/public/icons/basketball-icon.svg +3 -0
- package/template/public/images/basketball-icon.svg +3 -0
- package/template/public/vite.svg +1 -0
- package/template/src/api/base.api.js +1 -0
- package/template/src/assets/favicons/basketball-icon.svg +3 -0
- package/template/src/assets/fonts/Montserrat-Bold.woff2 +0 -0
- package/template/src/assets/icons/basketball-icon.svg +3 -0
- package/template/src/assets/images/basketball-icon.svg +3 -0
- package/template/src/components/Button.css +3 -0
- package/template/src/constants/htmlElements.js +1 -0
- package/template/src/main.js +5 -0
- package/template/src/modules/Tabs.js +3 -0
- package/template/src/services/getUser.js +9 -0
- package/template/src/styles/fonts.css +4 -0
- package/template/src/styles/index.js +1 -0
- package/template/src/styles/normalize.css +210 -0
- package/template/src/styles/style.css +3 -0
- package/template/src/utils/render.js +3 -0
- package/template/vite.config.js +17 -0
package/bin/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from 'fs'
|
|
4
|
+
import path from 'path'
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
6
|
+
import { execSync } from 'child_process'
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
9
|
+
const __dirname = path.dirname(__filename)
|
|
10
|
+
|
|
11
|
+
const projectName = process.argv[2] || 'my-app'
|
|
12
|
+
const targetDir = path.resolve(process.cwd(), projectName)
|
|
13
|
+
const templateDir = path.resolve(__dirname, '../template')
|
|
14
|
+
|
|
15
|
+
if (fs.existsSync(targetDir)) {
|
|
16
|
+
console.error(`❌ Папка "${projectName}" уже существует`)
|
|
17
|
+
process.exit(1)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
console.log(`📁 Создаю проект "${projectName}"...`)
|
|
21
|
+
fs.cpSync(templateDir, targetDir, { recursive: true })
|
|
22
|
+
|
|
23
|
+
console.log('📦 Копирование завершено')
|
|
24
|
+
console.log('⚡ Устанавливаю зависимости...')
|
|
25
|
+
execSync('npm install', { cwd: targetDir, stdio: 'inherit' })
|
|
26
|
+
|
|
27
|
+
console.log('✅ Проект создан!')
|
|
28
|
+
console.log(`👉 cd ${projectName}`)
|
|
29
|
+
console.log('👉 npm run dev')
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-vite-vanilla-js-with-tailwind",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "",
|
|
6
|
+
"homepage": "https://github.com/tals789/my-start-template-vite-vanilla-js-tailwind#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/tals789/my-start-template-vite-vanilla-js-tailwind/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/tals789/my-start-template-vite-vanilla-js-tailwind.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"author": "Semyon Talantsev (Me)",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "vite.config.js",
|
|
18
|
+
"bin": {
|
|
19
|
+
"create-vite-vanilla-js-tailwind": "bin/index.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin",
|
|
23
|
+
"template"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<script type="module" src="/src/main.js"></script>
|
|
8
|
+
<title>my-start-template-vite-vanilla-js-tailwind</title>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|