东北师范大学灯光秀网站。→ 点击前往
该项目使用 Node.js,基于 Vue 框架制作。
- @:
src/
- #:
src/components
- |:
src/assets
- %:
src/utils
项目已有自己的一套项目风格预设。
启动项目之后,请严格按照 Linter 提示格式化代码。项目不应包含任何无法通过 Linter 配置检查的代码。
跟进使用最新版官方库
- @vue/cli
- vue
- vue-router
- vue-class-component
- vue-property-decorator
- vuex
- axios(基于 promise 的 html 访问功能)
在本 demo 中未使用
- register-service-worker
- vue-wechat-title(设置网页标题)
在本 demo 中未使用
- Vue
- Vuex
- Vue-Router
- babel
- e2e-cypress
- eslint
- pwa
- router
- typescript
- unit-mocha
- vuex
- vue-template-compiler (vue 单文件编译器)
- sass
- sass-loader
- typescript
- eslint
- eslint-plugin-vue
- babel-eslint
- @vue/cli-plugin-eslint
- @vue/eslint-config-airbnb
- @vue/eslint-config-typescript
npm install
npm update
或
npm install
npm run serve
运行开发环境,可在浏览器通过http://localhost:8080直接访问。 使用
ctrl + c
组合键并输入y
再回车来终止开发环境
- 构建现代输出(ES5 标准支持,有 fallback)
npm run build
- 构建常规输出(ES5 标准支持,有 fallback)
npm run normBuild
执行构建,将构建成功的网页输出至/dist 目录
npm run rebuild
npm run normRebuild
重新构建(现代 | 常规),不清空输出目录原内容
start deploy.bat
执行构建,将构建成功的网站推送到 Github Pages 与 Gitee Pages
npm run lint
- 分析现代构建打包
npm run analyze
- 分析普通构建打包
npm run normAnal
npm run browser
- 输出现代构建打包配置至当前目录的 moderm.js
npm run inspect
- 输出普通构建打包配置至当前目录的 normal.js
npm run normInspect
端对端测试
npm run e2e
单元测试
npm run unit
查看 自定义配置.