Bump a package version
# version 1.0.0
$ npm version major # 2.0.0
$ npm version premajor # 2.0.0-0| Valor | Tempo |
|---|---|
| 0 | não precisa ser feita |
| 1 | menos de 1h |
| 2 | uma manhã |
| 3 | uma tarde |
| 5 | um dia |
| 8 | 2 ou 3 dias |
| 13 | 5 dias |
| 20 | quebrar a tarefa |
| export function isDefined<TValue>(value: TValue | undefined): value is TValue { | |
| return typeof value !== 'undefined'; | |
| } |
| class AbortError extends Error { | |
| name = "AbortError"; | |
| message = "Aborted"; | |
| } | |
| class AbortSignal extends EventTarget { | |
| aborted = false; | |
| } | |
| class AbortController { |
| export const formatList = list => | |
| list.reduce((acc, text, index) => { | |
| if (index === 0) return text; | |
| return acc.concat(`${!list[index + 1] ? ' and' : ','} ${text}`); | |
| }, ''); |
| import React from 'react'; | |
| import FocusLock from 'react-focus-lock'; | |
| import { Modal as SemanticModal, ModalProps } from 'semantic-ui-react'; | |
| const ModalLock: React.FC<ModalProps> = ({ children, className, ...props }) => ( | |
| <FocusLock returnFocus className={className} lockProps={props}> | |
| {children} | |
| </FocusLock> | |
| ); |
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| sudo apt-get install git \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common \ | |
| ssh-keygen |
| const cp = require('child_process') | |
| /** | |
| * A function that spawns a new process using the given command, logging the stdout and stderr. | |
| * | |
| * @param {String} command | |
| * @param {Array} args | |
| * @return {Promise} | |
| * @example | |
| * |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Display Webcam Stream</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| } | |
| #webcam { |