vue 起步 - 从第一个commit开始

Description

  • vue learning
  • mock vue
  • track vue commit
  • git repository 欢迎一起学习

跟随作者的脚步,从第一个commit开始

  • :下文中commit[xxx]书写方式中,这里xxx是commit的tag
  • 很遗憾, 第一个commit[83fac017f]只是建了几个文件
  • 第二个提交吧。作者的第二个commit就是简单的做一个demo,实现了最核心的数据绑定。用的是 object.defineproperty。 这就是大神开始的地方。
  • 第三个commit[a5e27b117], 傻逼了, 作者用的grunt编译。 还有在跟踪commit的时候手动找很麻烦。 解法如下:

准备工作

vue seed.js build

  • new webpack.config.js of vue/dist. this file will ignore by git
  • webpack --config dist/webpack.config.js --watch
const path = require('path');
const webpack = require('webpack')

const webpackConfig = {
  entry: {
    app: './src/main.js',
  },
  devtool: '#inline-source-map',
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /(node_modules)/,
      },
    ]
  },
  output: {
    filename: 'seed.js',
    path: path.resolve(__dirname),
    publicPath: '/',
    libraryTarget: "umd",
    library: "Seed"
  },
  plugins: []
};

module.exports = webpackConfig

git command

  • 追踪提交
    • ➜ vue git:(314983973) ✗ copy current commit tag[314983973]
    • ➜ vue git:(314983973) ✗ git log --graph --oneline --all
    • /314983973 search current commit.
    • click up button on keyboard to move terminal text up
    • ➜ vue git:(314983973) ✗ gco 23a2bde88 copy next commit tag
  • 代码比较
    • git difftool -t vimdiff -y HEAD~1
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 因为原文太长超出字数,Lesson 3 就放在另一篇文章里 How to Use Git and GitHub 标...
    赤乐君阅读 10,741评论 1 5
  • git常用命令 GIT常用命令备忘:http://stormzhang.com/git/2014/01/27/gi...
    新篇章阅读 12,794评论 1 26
  • git 使用笔记 git原理: 文件(blob)对象,树(tree)对象,提交(commit)对象 tree对象 ...
    神刀阅读 9,170评论 0 10
  • 风说:我要哭 于是,就下雨了 风说:我想你了 于是,满世界的刮起了风 你依然站在公交站牌,被新一波等车的人渐渐围拢...
    一只路明非阅读 2,744评论 0 0
  • 一星期之前吧,又重新看了遍小王子,还是很喜欢。 当晚打开素材库打算写点什么,后来因为有事要处理就被搁置一旁了。 刚...
    良人将至阅读 3,916评论 0 0

友情链接更多精彩内容