solocao / web-not-for-them Goto Github PK
View Code? Open in Web Editor NEWI'm doing this for me not for them. (我的前端江湖)
I'm doing this for me not for them. (我的前端江湖)
即最简化可实行产品
原则, 示例:
假设现有项目用到了 react
, react-router
, antd
等库, 并且 controller
, router
, model
, view
已基本成型.
此时如果要引入 mobx
, 最佳实践步骤为:
react
, antd
等安装, 配置一个最简单的 hello world
路由mobx
, 引入并测试通过假设现有项目用到了 react
, react-router
, antd
, mobx
等库, 并且 controller
, router
, model
, view
已基本成型. webpack打包过大, 应用性能较差.
最佳实践步骤:
react
(或 antd
, 或 mobx
等) 写一个简单示例引入项目webpack
打包优化, 一般情况下, 除了 loader rules / vendor 需要每个库单独优化, 其他配置都能保证通用react-router-loader
之类的引入, 开始针对项目源码进行优化webpack相关经验整理: https://leader.js.cool/#/basic/framework/webpack
Windows下如何用LF:
(仅以vs code为例)
如果你文件编码是UTF8并且包含中文文字,那还是把autocrlf设置为false,并且把所有文件转换为Linux编码(即LF \n),开启safecrlf检查。
#提交时转换为LF,检出时转换为CRLF
git config --global core.autocrlf true
#提交时转换为LF,检出时不转换
git config --global core.autocrlf input
#提交检出均不转换
git config --global core.autocrlf false
#拒绝提交包含混合换行符的文件
git config --global core.safecrlf true
#允许提交包含混合换行符的文件
git config --global core.safecrlf false
#提交包含混合换行符的文件时给出警告
git config --global core.safecrlf warn
源码一般都以 LF 作为规范, 一方面是因为大部分部署的服务器是 UNIX 系统, 另外一方面是 GIT 代码托管服务上大部分默认以 LF 存储
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.