Created
May 26, 2017 20:31
-
-
Save spjeff/f26d61fa6f7d9fb90ed994b2ca2be85e to your computer and use it in GitHub Desktop.
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
# PowerShell $profile as of 05-26-2017 | |
# Working Path | |
cd\ | |
cd code | |
# Chocolatey | |
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
if (Test-Path($ChocolateyProfile)) { | |
Import-Module "$ChocolateyProfile" | |
} | |
# Browser Sync | |
function bss() { | |
browser-sync start --server --cors --files "*.html,*.js,*.css" | |
} | |
# Offline NPM Install | |
function npmi($packageName) { | |
iex "npm --cache-min 9999999 install $packageName --save" | |
} | |
# Ionic Mobile | |
function ira() { | |
ionic run android --device | |
} | |
# Angular2 AOT Sample | |
function deployTodo() { | |
ng build -prod -aot -d http://portal/sites/test | |
} | |
# Chrome Disable CORS | |
function chromecors() { | |
TASKKILL /F /IM chrome.exe | |
Start-Process -FilePath "c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -ArgumentList @("--disable-web-security", "--user-data-dir=""C:/Chrome""") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment