Skip to content

Latest commit

 

History

History
94 lines (79 loc) · 2.93 KB

201901_progress.md

File metadata and controls

94 lines (79 loc) · 2.93 KB

Progress Jan 2019

  • Tue 22nd
  • Sun 20th
  • BOOK data wrangling with javascript ch 1 - 2.6

  • BOOK test driven react ch 1 - 3

    • setup
    mkdir test-driven-fizzbuzz
    cd test-driven-fizzbuzz
    
    # say yes to all questions
    npm init -y
    npm install --save-dev jest@23.6.0
    
    # the -- is to pass arguments not to npm but what npm is running in this case jest
    npm run test -- --watch
    
    • VS code
    ⌘ p # to open command palette
    > Preverences: Keymaps # although it picked up I have VIM installed so turns on those bindings by default
    
    > Shell Command: install code command in PATH # a good thing
    
    ^` # CTRL-` to toggle terminal
    
    code -r . # to reuse existing window
    # in terminal
    npm run test -- --watchAll
    
    • git settings seem limited
      • no log?
      • no way to add new dir to existing git repo?
      • no way to add node modules to .gitignore?
      • ended doing that from the terminal as it is easier!
    ⌘ b # to hide/unhide navigation side bar
    
    # in settings ignore certain files from sidebar
      "files.exclude": {
        "node_modules": true,
        "package-lock.json": true
      }
    
    ⌘ K ⌘ S # display shortcuts
    ⌘ K ⌘ F # to auto format a selection
    
    ⌘ SHIFT X # show extentions side bar
    
    ⌥ SHIFT F # to auto format
    
    • followed along to end ch 3 and added tests that test state. Next will be styled components and snapshot tests.