Файли
openidea/generators/html.toml
T
LU XIANGRUIтаwildcatDownstairs 5e2deed81e feat(new-project): add Expo, Electron and create-vue generators (#6351)
New Project gains three JavaScript generators that run the official packages through the chosen package manager: Vue (create-vue) with TypeScript, Vue Router, Pinia, Vitest and ESLint options; Expo (React Native) with blank, blank TypeScript and tabs templates; and Electron (Electron Forge) with Vite, Vite + TypeScript and webpack + TypeScript. create-vue gets a kebab-case folder renamed to the project name and a no-op flag when every option is off so it never prompts. Electron always installs, since Forge writes the dependencies by installing them. Static Website moves to the end of the group. Brand icons and en/zh strings added.

Closes #6338

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-27 15:21:11 +08:00

40 рядки
712 B
TOML

id = "html"
name = "Static Website"
group = "JavaScript"
icon = "project-html"
order = 12
description = "An HTML page with a stylesheet and a script."
[[files]]
path = "index.html"
content = '''
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{name}}</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Hello, World!</h1>
<script src="script.js"></script>
</body>
</html>
'''
[[files]]
path = "style.css"
content = '''
body {
font-family: system-ui, sans-serif;
margin: 2rem;
}
'''
[[files]]
path = "script.js"
content = '''
console.log("Hello, World!");
'''