基于Vue3 + WebRTC + Node + SRS搭建的直播间 https://live.hsslive.cn
|
|
il y a 2 ans | |
|---|---|---|
| .husky | il y a 2 ans | |
| .vscode | il y a 2 ans | |
| public | il y a 2 ans | |
| script | il y a 2 ans | |
| src | il y a 2 ans | |
| .browserslistrc | il y a 2 ans | |
| .commitlintrc.js | il y a 2 ans | |
| .editorconfig | il y a 2 ans | |
| .eslintignore | il y a 2 ans | |
| .eslintrc.js | il y a 2 ans | |
| .gitattributes | il y a 2 ans | |
| .gitignore | il y a 2 ans | |
| .lintstagedrc.js | il y a 2 ans | |
| .npmrc | il y a 2 ans | |
| .prettierignore | il y a 2 ans | |
| .prettierrc.js | il y a 2 ans | |
| .versionrc.js | il y a 2 ans | |
| README.md | il y a 2 ans | |
| babel.config.js | il y a 2 ans | |
| build.sh | il y a 2 ans | |
| handleGiteeJenkins.js | il y a 2 ans | |
| package.json | il y a 2 ans | |
| postcss.config.js | il y a 2 ans | |
| tsconfig.json | il y a 2 ans | |
| windi.config.ts | il y a 2 ans |
主要实现了 vuecli5 的大部分功能
[x] 项目规范:husky + commitizen + commitlint + lintstaged
[x] 支持热更新、typescript、路由懒加载
一些相关的配置(如 eslint、windicss、outputStaticUrl 等)暴露在 script/constant.ts 了
更新 billd 依赖:
pnpm i billd-utils@latest billd-scss@latest billd-html-webpack-plugin@latest billd-deploy@latest
pnpm install
pnpm run start
script/constant.ts 里的 outputStaticUrl 如果是'/'的话,默认就运行在 http://localhost:8000/,如果 8000 端口被占用了,会自动递增+1 script/constant.ts 里的 outputStaticUrl 如果是'/aaa/'的话,默认就运行在 http://localhost:8000/aaa/,如果 8000 端口被占用了,会自动递增+1
项目启动完成后,终端会打印调试地址,不必担心调试地址是什么~
pnpm run build
pnpm run cz
@use 'billd-scss/src/index.scss' as *;