Skip to content

Instantly share code, notes, and snippets.

@pvdlg
pvdlg / README.md
Last active December 3, 2019 04:55
semantic-release beta migration

semantic-release beta migration

This is a script to migrate your repository in order to support semantic-release version that includes semantic-release/semantic-release#1368 It will colllect the state information (which version has been released on which channel) based on tags and give you the commadn to run to safe this state with Git note.

This is only useful if were using a previous beta version of semantic-release.

This will not run any command on your repo other than git tag. It will display the command you have to run in your local Git repo to do the migration. Be careful and double check each command before running it!

let state = 0;
console.log('Load module')
async function increment() {
state = state + 1;
}
function getState() {
return state;
let state = 0;
console.log('Load module')
async function increment() {
state = state + 1;
}
function getState() {
return state;
negative globs (some files inside dir)
107 op/s » globby async (working directory)
38 op/s » globby async (upstream/master)
43 op/s » globby async (working directory) with gitignore
12 op/s » globby async (upstream/master) with gitignore
247 op/s » globby sync (working directory)
41 op/s » globby sync (upstream/master)
82 op/s » globby sync (working directory) with gitignore
11 op/s » globby sync (upstream/master) with gitignore
133 op/s » glob-stream
'use strict';
/* global after, before, bench, suite */
const fs = require('fs');
const rimraf = require('rimraf');
const fastGlob = require('fast-glob');
const glob = require('glob');
const BENCH_DIR = 'bench';
const runners = [{
@pvdlg
pvdlg / .remarkrc
Last active December 3, 2017 20:49
Debug remark
{
"plugins": [
"remark-preset-lint-recommended",
["remark-lint-list-item-indent", false]
]
}