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
interface IPrimaryTextProps { | |
text:string|string[]; | |
} | |
function PrimaryText(props:IPrimaryTextProps) { | |
let text:Array<string | JSX.Element> | string = []; | |
if (_.isArray(props.text)) { | |
const items:Array<string | JSX.Element> = []; | |
props.text.map((value, index) => { | |
items.push(value); |
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
var gulp = require('gulp'); | |
var path = require('path'); | |
var GulpSSH = require('gulp-ssh'); | |
var shell = require('gulp-shell'); | |
var moment = require('moment'); | |
var config = { | |
host: 'ftp.domain.ru', | |
port: 22, | |
username: 'special', |
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
#!/bin/sh | |
# | |
# Хук, который проверяет в имени коммита наличие отсылки | |
# к задаче Redmine в формате «refs #123456» или слова «merge» | |
# | |
# Активируем папку с шаблонами | |
# git config --global init.templatedir '~/.git-templates' | |
# | |
# Создаём директорию для хуков | |
# mkdir -p ~/.git-templates/hooks |