Web前端常用技术栈(持续更新!)

Web前端常用技术栈(持续更新!)

1.Javascript静态类型检查器 - Flow

使用方法

 - First install babel-cli and babel-preset-flow with either Yarn or npm.`npm install babel-cli babel-preset-flow`
 - create a .babelrc file at the root of your project with "flow" in your "presets". `{"presets": ["flow"]}`
 - put all your source files in a src directory you can compile them to another directory by running: `./node_modules/.bin/babel src/ -d lib/`
 - add this to your package.json scripts easily 
 `{
      "name": "my-project",
      "main": "lib/index.js",
      "scripts": {
        "build": "babel src/ -d lib/",
        "prepublish": "npm run build"
      }
}`
 - Add a devDependency on the flow-bin npm package: `npm install --save-dev flow-bin`
 - Add a "flow" script to your package.json:
 `{
  "name": "my-flow-project",
  "version": "1.0.0",
  "devDependencies": {
    "flow-bin": "^0.41.0"
  },
  "scripts": {
    "flow": "flow"
  }
}`
 - run npm flow init first `npm run flow init`
 - run flow `npm run flow`

更新于2018-04-28
2.Web前端代码管理server

  • 公网代码工具肯定是GitHub
  • 企业内部如果是基于Windows server的话推荐使用Gitblit,安装细节可以参考我的另外一篇博客如果是linux server的话,大家可以自行google上很多相关文章推荐的Gitlab,
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值