Skip to content

Instantly share code, notes, and snippets.

View lucasadrianof's full-sized avatar
:shipit:

Lucas Felicio Adriano lucasadrianof

:shipit:
View GitHub Profile
@lucasadrianof
lucasadrianof / rollup-typescript.md
Created August 18, 2023 16:17 — forked from aleclarson/rollup-typescript.md
The best Rollup config for TypeScript libraries

Features

🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs bundle
.d.ts bundle + type-checking
🧐 Source maps

Install

@lucasadrianof
lucasadrianof / rebase-squashed-commits.md
Last active June 28, 2023 19:47
Rebase squashed commits

This will print out the common-ancestor commit between the commits/branches causing the problem:

git merge-base feature-b-off-a feature-a

Take all the commits between common-ancestor and feature-b-off-a and rebase them onto main

git rebase --onto main <common-ancestor> feature-b-off-a

Then you'll need to force push since it's a rebase

@lucasadrianof
lucasadrianof / npm-prerelease.md
Last active April 6, 2023 19:15 — forked from schmich/npm-prerelease.md
Publish a prerelease package to NPM
  • Run npm version pre<type> --preid=rc --no-git-tag-version
  • This will bump the version in package.json to 2.0.0-rc.0
  • Run npm pack to create the package tgz
  • Run npm publish <package>.tgz --tag next [--dry-run] to publish the package under the next tag (with the `--dry-run parameter if you'd like to test it before actually publishing it)
  • Run npm install --save package@next to install prerelease package
@lucasadrianof
lucasadrianof / open_source_licenses.md
Created February 12, 2023 19:02 — forked from nicolasdao/open_source_licenses.md
What you need to know to choose an open source license.
@lucasadrianof
lucasadrianof / .bashrc
Last active October 2, 2020 18:53
.bashrc com os principais atalhos e aliases utilizados pela equipe de Dev do MagaZord
export faderim_app=app-magazord
alias git-pull-all="find . -maxdepth 3 -name .git -type d | rev | cut -c 6- | rev | xargs -I {} sh -c 'echo ""Atualizando repositório"" {}; git -C {} pull'"
docker_magazord() {
(cd /mnt/Dev/dev/docker-magazord; docker-compose $@)
}
docker_magapay() {
(cd /mnt/Dev/dev/docker-magapay; docker-compose $@)
@lucasadrianof
lucasadrianof / README-Template.md
Created February 12, 2020 11:35 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites