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
# Note: You may need to use sudo (for OSX, *nix, BSD etc) or run your command shell as Administrator (for Windows) to run some shortcuts. | |
# ------------------------------------------------------------------------------ | |
# | |
# NPM | |
# | |
# ------------------------------------------------------------------------------ | |
# Install Bower | |
function nb() { | |
npm install -g bower | |
} | |
# Install GruntJS | |
function ng() { | |
npm install -g grunt-cli | |
} | |
# Usage: | |
# ----------- | |
# nb | |
# ng | |
# ------------------------------------------------------------------------------ | |
# ------------------------------------------------------------------------------ | |
# | |
# BOWER | |
# | |
# ------------------------------------------------------------------------------ | |
# Search bower packages | |
function bs() { | |
bower search "$@" | |
} | |
# Install bower package | |
function bi() { | |
bower install "$@" | |
} | |
# Uninstall bower package | |
function bu() { | |
bower uninstall "$@" | |
} | |
# Create a JSON file to defining a package | |
function bjs() { | |
bower init | |
} | |
# Usage: | |
# ----------- | |
# bs [package] | |
# bi [package] | |
# bu [package] | |
# bjs | |
# ------------------------------------------------------------------------------ | |
# ------------------------------------------------------------------------------ | |
# | |
# GRUNTJS | |
# | |
# ------------------------------------------------------------------------------ | |
# Install a grunt plugin and save to devDependencies | |
function gi() { | |
npm install --save-dev grunt-"$@" | |
} | |
# Install a grunt-contrib plugin and save to devDependencies | |
function gci() { | |
npm install --save-dev grunt-contrib-"$@" | |
} | |
# Usage: | |
# ----------- | |
# gi [plugin] | |
# gci [contrib plugin] | |
# ------------------------------------------------------------------------------ |
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
# Note: You may need to use sudo (for OSX, *nix, BSD etc) or run your command shell as Administrator (for Windows) to run some shortcuts. | |
# ------------------------------------------------------------------------------ | |
# | |
# NPM | |
# | |
# ------------------------------------------------------------------------------ | |
# Install Bower | |
function nb() { | |
npm install -g bower | |
} | |
# Install GruntJS | |
function ng() { | |
npm install -g grunt-cli | |
} | |
# Usage: | |
# ----------- | |
# nb | |
# ng | |
# ------------------------------------------------------------------------------ | |
# ------------------------------------------------------------------------------ | |
# | |
# BOWER | |
# | |
# ------------------------------------------------------------------------------ | |
# Search bower packages | |
function bs() { | |
bower search "$@" | |
} | |
# Install bower package | |
function bi() { | |
bower install "$@" | |
} | |
# Uninstall bower package | |
function bu() { | |
bower uninstall "$@" | |
} | |
# Create a JSON file to defining a package | |
function bjs() { | |
bower init | |
} | |
# Usage: | |
# ----------- | |
# bs [package] | |
# bi [package] | |
# bu [package] | |
# bjs | |
# ------------------------------------------------------------------------------ | |
# ------------------------------------------------------------------------------ | |
# | |
# GRUNTJS | |
# | |
# ------------------------------------------------------------------------------ | |
# Install a grunt plugin and save to devDependencies | |
function gi() { | |
npm install --save-dev grunt-"$@" | |
} | |
# Install a grunt-contrib plugin and save to devDependencies | |
function gci() { | |
npm install --save-dev grunt-contrib-"$@" | |
} | |
# Usage: | |
# ----------- | |
# gi [plugin] | |
# gci [contrib plugin] | |
# ------------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment