Skip to content

Commit

Permalink
feat: ✨ 增加html-vue模板
Browse files Browse the repository at this point in the history
  • Loading branch information
MuyianKing committed Nov 6, 2024
1 parent b42a749 commit ad9bc3c
Show file tree
Hide file tree
Showing 10 changed files with 78,607 additions and 44 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: npm publish

# 发布版本触发
on:
push:
tags:
- v*

permissions:
contents: write # This is required to create/push the new git tag
contents: write

jobs:
publish:
Expand All @@ -27,7 +28,7 @@ jobs:
- name: npm publish
run: |
cd ./cli
# npm publish -r --tag latest --no-git-checks
npm publish -r --tag latest --no-git-checks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# pnpm husky-lint

34 changes: 6 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,23 @@
## [0.0.1](https://github.com/MuyianKing/cli/compare/v0.0.9...v0.0.1) (2024-11-06)
## [0.0.1](https://github.com/MuyianKing/cli/compare/v0.1.0...v0.0.1) (2024-11-06)



## [0.0.9](https://github.com/MuyianKing/cli/compare/v0.0.8...v0.0.9) (2024-11-06)
# [0.1.0](https://github.com/MuyianKing/cli/compare/9ebd88e7f51cd61d74d56b462813883daacefeb0...v0.1.0) (2024-11-06)


### Bug Fixes

* :bug: 将index.js中的每个命令单独抽离为独立的文件 ([9ebd88e](https://github.com/MuyianKing/cli/commit/9ebd88e7f51cd61d74d56b462813883daacefeb0))
* :bug: 去除github action中生成changelog ([761e82d](https://github.com/MuyianKing/cli/commit/761e82d6d13c6289bad96739bbbe5e5a4d4e2420))
* :bug: 修复无法生成日志 ([a42b78c](https://github.com/MuyianKing/cli/commit/a42b78c50cfb0f4bfb245dd2ecb22511263a4cc2))



## [0.0.8](https://github.com/MuyianKing/cli/compare/v0.0.7...v0.0.8) (2024-11-06)


### Bug Fixes

* :bug: 修复publish.yml无法发布问题 ([8b07dc7](https://github.com/MuyianKing/cli/commit/8b07dc75e211891dfc1ec1f111c6bdf589ee3b1b))



## [0.0.7](https://github.com/MuyianKing/cli/compare/0.0.7...v0.0.7) (2024-11-06)


### Features

* :sparkles: 增加github action 配置 ([9895c0b](https://github.com/MuyianKing/cli/commit/9895c0b1e5e3f5ec570c5cb7ca2b6dce08705bcf))



## [0.0.6](https://github.com/MuyianKing/cli/compare/v0.0.5...v0.0.6) (2024-11-06)


### Bug Fixes

* :bug: 将index.js中的每个命令单独抽离为独立的文件 ([9ebd88e](https://github.com/MuyianKing/cli/commit/9ebd88e7f51cd61d74d56b462813883daacefeb0))
* :bug: 修改github action ([f661783](https://github.com/MuyianKing/cli/commit/f6617830f0648ed3e0931ce5a2af35111d6bb8fa))


### Features

* :sparkles: 增加命令缺失提示 ([7d96a69](https://github.com/MuyianKing/cli/commit/7d96a69f04faa31c3dccebce176cf39f5bc022e4))
* :sparkles: 增加github action 配置 ([9895c0b](https://github.com/MuyianKing/cli/commit/9895c0b1e5e3f5ec570c5cb7ca2b6dce08705bcf))



1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
+ 解决开发环境命令不生效问题
26 changes: 25 additions & 1 deletion cli/template/html/vue/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vue template</title>
<link rel="stylesheet" href="./source/element-plus.css" />
</head>

<body>

<script src="./source/vue.global.js"></script>
<script src="./source/element-plus.js"></script>

<div id="app">
<el-button type="primary">测试</el-button>
</div>

<script>
const { createApp, ref } = Vue

createApp({
setup() {
const message = ref('Hello vue!')
return {
message
}
}
})
.use(ElementPlus)
.mount('#app')
</script>
</body>

</html>
1 change: 1 addition & 0 deletions cli/template/html/vue/source/element-plus.css

Large diffs are not rendered by default.

Loading

0 comments on commit ad9bc3c

Please sign in to comment.