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.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +205 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +702 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +46 -0
  7. package/templates/empty/README.md +3 -0
  8. package/templates/empty/_gitignore +6 -0
  9. package/templates/empty/_template.json +6 -0
  10. package/templates/node-ts/README.md +21 -0
  11. package/templates/node-ts/_gitignore +7 -0
  12. package/templates/node-ts/_template.json +16 -0
  13. package/templates/node-ts/package.json +19 -0
  14. package/templates/node-ts/src/index.ts +1 -0
  15. package/templates/node-ts/tsconfig.json +17 -0
  16. package/templates/node-ts/tsup.config.ts +9 -0
  17. package/templates/python-uv/README.md +22 -0
  18. package/templates/python-uv/_gitignore +30 -0
  19. package/templates/python-uv/_template.json +14 -0
  20. package/templates/python-uv/pyproject.toml +20 -0
  21. package/templates/python-uv/src/project_name/__init__.py +10 -0
  22. package/templates/python-uv/src/project_name/__main__.py +4 -0
  23. package/templates/react-ts/_gitignore +6 -0
  24. package/templates/react-ts/_template.json +13 -0
  25. package/templates/react-ts/index.html +13 -0
  26. package/templates/react-ts/package.json +23 -0
  27. package/templates/react-ts/src/App.css +14 -0
  28. package/templates/react-ts/src/App.tsx +12 -0
  29. package/templates/react-ts/src/index.css +11 -0
  30. package/templates/react-ts/src/main.tsx +10 -0
  31. package/templates/react-ts/tsconfig.json +20 -0
  32. package/templates/react-ts/vite.config.ts +6 -0
  33. package/templates/template.config.json +34 -0
  34. package/templates/vue-ts/_gitignore +6 -0
  35. package/templates/vue-ts/_template.json +13 -0
  36. package/templates/vue-ts/index.html +13 -0
  37. package/templates/vue-ts/package.json +20 -0
  38. package/templates/vue-ts/src/App.vue +37 -0
  39. package/templates/vue-ts/src/main.ts +5 -0
  40. package/templates/vue-ts/src/style.css +11 -0
  41. package/templates/vue-ts/src/vite-env.d.ts +7 -0
  42. package/templates/vue-ts/tsconfig.json +20 -0
  43. 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,5 @@
1
+ import { createApp } from 'vue'
2
+ import App from './App.vue'
3
+ import './style.css'
4
+
5
+ createApp(App).mount('#app')
@@ -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,7 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+
4
+ export default defineConfig({
5
+ plugins: [vue()],
6
+ })