Skip to content

Instantly share code, notes, and snippets.

🎧
Freestyler

Konstantin bashkos

🎧
Freestyler
Block or report user

Report or block bashkos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bashkos
bashkos / monokaipro.reg
Created Feb 27, 2019
Monokai Pro color theme for Windows command prompt. Based on https://www.monokai.pro/
View monokaipro.reg
Windows Registry Editor Version 5.00
; Monokai Pro color theme for Windows command prompt.
; Based on https://www.monokai.pro/
; Values stored as 00-BB-GG-RR
[HKEY_CURRENT_USER\Console]
; BLACK
"ColorTable00"=dword:002d292c
; BLUE
"ColorTable01"=dword:00e8dc78
View publish__fragment_2.ts
const build = spawnSync('npm', ['run', 'build'], getSpawnOptions(rootDir));
View publish__fragment_9.ts
spawnSync('rm', ['-rf', 'temp'], getSpawnOptions(rootDir));
View publish__fragment_8.ts
/* message of the last commit in source code repository */
const lastCommitMessage = spawnSync(
'git',
['log', '--oneline', '-1'],
getSpawnOptions(rootDir, 'pipe')
).stdout.toString().trim();
/* commit message in build repository */
const message = buildBranch === 'master' ? version : lastCommitMessage;
/* making commit in builds repository */
View publish__fragment_7_2.ts
/* creating build files copies */
spawnSync('cp', ['-r', 'lib', 'temp/lib'], getSpawnOptions(rootDir));
spawnSync('cp', ['package.json', 'temp/package.json'], getSpawnOptions(rootDir));
spawnSync('cp', ['package-lock.json', 'temp/package-lock.json'], getSpawnOptions(rootDir));
spawnSync('cp', ['README.md', 'temp/README.md'], getSpawnOptions(rootDir));
/* indexing the build files */
spawnSync('git', ['add', '--all'], getSpawnOptions(tempDir));
View publish__fragment_7_1.ts
/* removing the old build files */
spawnSync(
'rm',
['-rf', 'lib', 'package.json', 'package-lock.json', 'README.md'],
getSpawnOptions(tempDir)
);
View publish__fragment_6.ts
/* checking if branch exists in builds repository */
const isBranchExits = !!spawnSync(
'git',
['ls-remote', '--exit-code', 'origin', buildBranch],
getSpawnOptions(tempDir, 'pipe')
).stdout.toString().trim();
if (isBranchExits) {
/* checkout the target branch */
spawnSync('git', ['fetch', 'origin', buildBranch], getSpawnOptions(tempDir));
View publish__fragment_5.ts
/* checking if the created tag exists in build repository */
const isTagExists = !!spawnSync(
'git',
['ls-remote', 'origin', `refs/tags/${tag}`],
getSpawnOptions(tempDir, 'pipe')
).stdout.toString().trim();
View publish__fragment_4_3.ts
const tag = buildBranch === 'master' ? version : `${version}_${shortSHA}`;
View publish__fragment_4_2.ts
/* Shortened hash of the last commit in source code repository.
Used for forming of the unstable version tag */
const shortSHA = spawnSync(
'git',
['rev-parse', '--short', 'HEAD'],
getSpawnOptions(rootDir, 'pipe')
).stdout.toString().trim();
You can’t perform that action at this time.