Skip to content

Commit 37a3385

Browse files
committed
feat: starter built
1 parent bf891d5 commit 37a3385

File tree

19 files changed

+8419
-1483
lines changed

19 files changed

+8419
-1483
lines changed

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"plugins": [
3+
[
4+
"import",
5+
{
6+
"libraryName": "antd",
7+
"libraryDirectory": "lib",
8+
// https://github.com/ant-design/babel-plugin-import#style
9+
"style": "css"
10+
},
11+
"antd"
12+
]
13+
]
14+
}

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 指定 npm 的代理源,比较旧的包可能会找不到,如果找不到的话,可以暂时注释掉下面的代理,再进行 npm install
2+
#registry=https://registry.npm.taobao.org

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"jsxSingleQuote": true,
8+
"jsxBracketSameLine": true,
9+
"arrowParens": "avoid",
10+
"endOfLine": "lf",
11+
"bracketSpacing": true,
12+
"htmlWhitespaceSensitivity": "strict"
13+
}

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# suono-player
1+
# vue3-template-starter
2+
3+
## Feature
4+
5+
集成了 vue3 vue-router vuex 生态,使用 Typescript 及 Ant-design-vue 进行开发
6+
7+
## License
8+
9+
MIT

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>Vite App</title>
7+
<title>Suono Player</title>
88
</head>
99
<body>
1010
<div id="app"></div>

package-lock.json

Lines changed: 8031 additions & 1466 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "suono-player",
33
"version": "1.0.0",
4+
"author": "hawtim<[email protected]>",
45
"description": "A audio player using suono and vue3",
56
"main": "index.js",
67
"scripts": {
@@ -11,17 +12,25 @@
1112
"type": "git",
1213
"url": "git+https://github.com/hawtim/suono-player.git"
1314
},
14-
"author": "hawtim<[email protected]>",
1515
"license": "MIT",
1616
"bugs": {
1717
"url": "https://github.com/hawtim/suono-player/issues"
1818
},
1919
"homepage": "https://github.com/hawtim/suono-player#readme",
2020
"dependencies": {
21-
"vue": "^3.0.0-rc.1"
21+
"ant-design-vue": "^2.0.0-beta.10",
22+
"lodash": "^4.17.20",
23+
"suono": "^0.1.4",
24+
"vue": "^3.0.0-rc.1",
25+
"vue-router": "^4.0.0-beta.13",
26+
"vuex": "^4.0.0-beta.4"
2227
},
2328
"devDependencies": {
24-
"vite": "^1.0.0-rc.1",
25-
"@vue/compiler-sfc": "^3.0.0-rc.1"
29+
"@vue/compiler-sfc": "^3.0.0-rc.1",
30+
"babel-plugin-import": "^1.13.1",
31+
"dayjs": "^1.9.3",
32+
"normalize.css": "^8.0.1",
33+
"typescript": "^4.0.3",
34+
"vite": "^1.0.0-rc.1"
2635
}
2736
}

shim.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '*.vue' {
2+
import { Component } from 'vue'
3+
const component: Component
4+
export default component
5+
}

src/App.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
<template>
2+
<div id="app">
23
<img alt="Vue logo" src="./assets/logo.png" />
3-
<HelloWorld msg="Hello Vue 3.0 + Vite" />
4+
<router-view></router-view>
5+
</div>
46
</template>
57

68
<script>
7-
import HelloWorld from './components/HelloWorld.vue'
8-
99
export default {
10-
name: 'App',
11-
components: {
12-
HelloWorld
13-
}
10+
name: 'App'
1411
}
1512
</script>
File renamed without changes.

0 commit comments

Comments
 (0)