This file contains 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
# run this with an argument to install a nerdfont on windows | |
# run this with no arguments to install all fonts | |
# font name, as seen on https://www.nerdfonts.com/font-downloads | |
param( | |
[Parameter(Mandatory=$False, Position=0, ValueFromPipeline=$false)] | |
[System.String] | |
$fontTarget="*" | |
) | |
# build temp directory for git clone |
This file contains 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 = ("C:\Program Files\Jetbrains","$env:LOCALAPPDATA\Jetbrains") | |
$TOOL = Get-Childitem ` | |
-Recurse ` | |
–Path $BIN ` | |
-Filter webstorm64.exe ` | |
| Select-Object -first 1 ` | |
| %{$_.FullName} | |
if (!$TOOL) { | |
Write-Output "This script could not find webstorm " |
This file contains 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
@echo off | |
:: change the path below to match your installed version | |
SET WebStormPath=C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe | |
echo Adding file entries | |
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f | |
This file contains 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 scrapeMDLComponents = require('./scrape-mdl-components'); | |
var parseScrapeData = require('./parse-scrape-data'); | |
var fs = require('fs'); | |
scrapeMDLComponents() | |
.then(function(data) { | |
var parsed = parseScrapeData(data); | |
fs.writeFileSync('./parsed.json', JSON.stringify(parsed, null, 2)) | |
return Promise.resolve(parsed); | |
}) |