create-idp 0.1.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/LICENSE +21 -0
- package/README.md +205 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +702 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
- package/templates/empty/README.md +3 -0
- package/templates/empty/_gitignore +6 -0
- package/templates/empty/_template.json +6 -0
- package/templates/node-ts/README.md +21 -0
- package/templates/node-ts/_gitignore +7 -0
- package/templates/node-ts/_template.json +16 -0
- package/templates/node-ts/package.json +19 -0
- package/templates/node-ts/src/index.ts +1 -0
- package/templates/node-ts/tsconfig.json +17 -0
- package/templates/node-ts/tsup.config.ts +9 -0
- package/templates/python-uv/README.md +22 -0
- package/templates/python-uv/_gitignore +30 -0
- package/templates/python-uv/_template.json +14 -0
- package/templates/python-uv/pyproject.toml +20 -0
- package/templates/python-uv/src/project_name/__init__.py +10 -0
- package/templates/python-uv/src/project_name/__main__.py +4 -0
- package/templates/react-ts/_gitignore +6 -0
- package/templates/react-ts/_template.json +13 -0
- package/templates/react-ts/index.html +13 -0
- package/templates/react-ts/package.json +23 -0
- package/templates/react-ts/src/App.css +14 -0
- package/templates/react-ts/src/App.tsx +12 -0
- package/templates/react-ts/src/index.css +11 -0
- package/templates/react-ts/src/main.tsx +10 -0
- package/templates/react-ts/tsconfig.json +20 -0
- package/templates/react-ts/vite.config.ts +6 -0
- package/templates/template.config.json +34 -0
- package/templates/vue-ts/_gitignore +6 -0
- package/templates/vue-ts/_template.json +13 -0
- package/templates/vue-ts/index.html +13 -0
- package/templates/vue-ts/package.json +20 -0
- package/templates/vue-ts/src/App.vue +37 -0
- package/templates/vue-ts/src/main.ts +5 -0
- package/templates/vue-ts/src/style.css +11 -0
- package/templates/vue-ts/src/vite-env.d.ts +7 -0
- package/templates/vue-ts/tsconfig.json +20 -0
- package/templates/vue-ts/vite.config.ts +6 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
const count = ref(0)
|
|
5
|
+
const projectName = '{{projectName}}'
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div class="app">
|
|
10
|
+
<h1>{{ projectName }}</h1>
|
|
11
|
+
<p>编辑 <code>src/App.vue</code> 开始开发</p>
|
|
12
|
+
<button @click="count++">count: {{ count }}</button>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style scoped>
|
|
17
|
+
.app {
|
|
18
|
+
text-align: center;
|
|
19
|
+
padding: 2rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
h1 {
|
|
23
|
+
color: #333;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
code {
|
|
27
|
+
background: #f4f4f4;
|
|
28
|
+
padding: 0.2rem 0.4rem;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
button {
|
|
33
|
+
padding: 0.5rem 1rem;
|
|
34
|
+
font-size: 1rem;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
* {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"jsx": "preserve",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true
|
|
18
|
+
},
|
|
19
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
|
|
20
|
+
}
|