git init projectgit config --global user.name "Tim Berglund"git config --global user.email "tlberglund@github.com"git statusgit add <file>- Diff
git diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Coded and shared on Twitter by Florin Pop | |
| // https://twitter.com/florinpop1705/status/1234951601842016256 | |
| // Create a RomanNumerals class that can convert | |
| // a roman numeral to and from an integer value. | |
| const rom = { | |
| M: 1000, | |
| CM: 900, | |
| D: 500, | |
| CD: 400, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The application configuration. | |
| * @author A true hipster : Matt Raible | |
| * https://twitter.com/mraible/status/1234875938854207488 | |
| */ | |
| application { | |
| config { | |
| baseName notes | |
| authenticationType oauth2 | |
| buildTool gradle |
It's quite straightforward to use GitLab Pages to deploy a Storybook instance per branch (and remove it whenever the branch will be removed). And yeah, it's irony to document this in a GitHub Gist 😅
You just need a .gitlab-ci.yml like this one:
stages:
- setup
- build-and-test
- deployment
- pages