YHTML5-Seed

Introduction
YHTML5-Seed scaffolds out a new application. We can building a SPA or MPA.
writing your build configuration, and package manager dependencies (e.g npm) that you might need for your build
This is not only a project-seed for front-end. It is a complete set of solutions from the client to the server:
react,redux,webpack,web security,nodejs,express,api,git version,performance optimization
what you want technology stack all in one, and provides many out-of-the-box features
YHTML5-Seed 还提供了相应的加载策略, 缓存策略, 兼容策略, 安全策略. 更好的为业务服务, 创造商业价值
前端世界的变化总是惊人的,在这个项目里,我们会及时更新依赖的技术到最新稳定版本,同时及时淘汰一些过时的技术元素
我们不建议重度依赖别人发明的轮子,我们鼓励自己重复造轮子。在编码中了解底层原理,创造出更适合团队的解决方案
Welcome to NEW front-end world and enjoy yourself
Document
Issue
参考
roadhog
Target
- 构建丨解决前端开发中自动化工具、性能优化、模块化框架、开发规范、代码部署、开发流程等问题
- 优化丨极致性能体验,前端性能优化,永无止境。
- 协作丨为团队提供愉悦的开发体验,提供前端开发脚手架的技术支持,专人维护解决脚手架问题
- 统一丨统一风格,统一代码规范,统一技术栈,减少代码冲突,并配套对应检测工具
- 效率丨让团队成员只需要简单培训学习使用这套框架,将精力主要放在业务需求开发上,
而不需要额外学习研究webpack,jsx,babel,node,shell,express等等一堆概念与知识
Apps
我们为不同的项目类型准备了不同的开发脚手架:
| react-dashboard | react + redux + webpack2 + ant-design | apps/react-dashboard | apps/react-dashboard/document/ |
| MPA | -- | apps/mpa | apps/mpa/document/ |
| fis3 | fis3 | apps/fis3/ | `` |
| vue | vue | apps/vue | `` |
A simple CLI for scaffolding front-end projects.
npm i yhtml5-cli -g
yhtml5 init <project-name>
# select template
# waiting
cd <project-name>
npm i
npm run dev
npm run build
Command Line
| npm start | install dependencies, and become building exmple program, please be patience |
| npm run build | build production |
| npm run build-debug | debug model |
| npm run dev | develop model |
| npm run scripts:u | update scripts |
| npm run test | test code |
| npm run git | commit your code to git remote repertory |
| npm i | --registry=https://registry.npm.taobao.org |
For detailed explanation on how things work, checkout the YHTML5-Seed document
Feature (webpack)
There are so many problems when we start a front-end project
目前,还有一些新功能及bug需要解决,详见问题列列表
Technology Stacks
The web's scaffolding tool for build modern webapps
| babel | | |
| [express] | service | [Express 中文文档][express-cn] |
| [echarts][echarts] | 图表库 | 数据可视化、开放、大气 |
| react | | |
| redux | | |
| Eslint | | |
| NodeJS | | |
| Normalize.css | 重置浏览器css样式 | |
| NPM | | |
| PM2 | | |
| postCSS | | |
| webpack | 构建工具 | |
| shelljs | Portable Unix shell commands for Node.jshttps://github.com/shelljs/shelljs | |
| ora | Elegant terminal spinner | https://github.com/sindresorhus/ora |
| opn | open browser | |