These rules are adopted from the AngularJS commit conventions.
Hacky way (let me know if you know better one)
Let's say you have repo Main
and repo Proto
, you want to put your Proto
under Main
, so folder structure will be the following:
|-SRC
|---proto
and you also want to preserve commit history, so everybody can see what you were doing while developing proto, sounds like pretty easy task. The easiest way is to create folder structure similar to Main repo SRC\proto
and start working using is as a root, but if you like me, you didn't think about this beforehand, so you path would be harder:
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
# create local branch (shorthand) | |
git checkout -b <branch_name> | |
# create local branch | |
git branch <branch_name> | |
git checkout <branch_name> | |
# and then start hacking and commit | |
# push branch to remote |
const { compose, mapProps, withHandlers, lifecycle } = Recompose; | |
const { observable, action } = mobx; | |
const { inject, observer, Provider } = mobxReact; | |
const { PropTypes } = React; | |
// store | |
// ============================ | |
const counterStore = observable({ | |
// for primitive values, wrap the value inside a observable, | |
// or wrap it in an plain js object |
import React, { useState, useEffect } from "react"; | |
import { act } from "react-dom/test-utils"; | |
import ShallowRenderer from "react-test-renderer/shallow"; | |
import Enzyme, { shallow } from "enzyme"; | |
import Adapter from "enzyme-adapter-react-16"; | |
Enzyme.configure({ adapter: new Adapter() }); | |
// Custom Hook API being subject to testing |