Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
8b51d17c
Unverified
Commit
8b51d17c
authored
May 19, 2020
by
Will Mendes
Committed by
GitHub
May 19, 2020
Browse files
frontend-search: add packagephobia (#8908)
parent
f7bf5665
Changes
3
Show whitespace changes
Inline
Side-by-side
plugins/frontend-search/README.md
View file @
8b51d17c
...
...
@@ -52,6 +52,7 @@ Available search contexts are:
| mdn |
`https://developer.mozilla.org/search?q=`
|
| nodejs |
`https://www.google.com/search?as_sitesearch=nodejs.org/en/docs/&as_q=`
|
| npmjs |
`https://www.npmjs.com/search?q=`
|
| packagephobia |
`https://packagephobia.now.sh/result?p=`
|
| qunit |
`https://api.qunitjs.com/?s=`
|
| reactjs |
`https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=`
|
| smacss |
`https://google.com/search?as_sitesearch=smacss.com&as_q=`
|
...
...
plugins/frontend-search/_frontend-search.sh
View file @
8b51d17c
...
...
@@ -38,6 +38,7 @@ function _frontend() {
'mdn: Search in MDN website'
'nodejs: Search in NodeJS website'
'npmjs: Search in NPMJS website'
'packagephobia: Search in Packagephobia website'
'qunit: Search in Qunit website'
'reactjs: Search in React website'
'smacss: Search in SMACSS website'
...
...
@@ -124,6 +125,9 @@ function _frontend() {
bundlephobia
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
packagephobia
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
flowtype
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
...
...
plugins/frontend-search/frontend-search.plugin.zsh
View file @
8b51d17c
...
...
@@ -19,6 +19,7 @@ alias lodash='frontend lodash'
alias
mdn
=
'frontend mdn'
alias
nodejs
=
'frontend nodejs'
alias
npmjs
=
'frontend npmjs'
alias
packagephobia
=
'frontend packagephobia'
alias
qunit
=
'frontend qunit'
alias
reactjs
=
'frontend reactjs'
alias
smacss
=
'frontend smacss'
...
...
@@ -65,6 +66,7 @@ function frontend() {
mdn
'https://developer.mozilla.org/search?q='
nodejs
$(
_frontend_fallback
'nodejs.org/en/docs/'
)
npmjs
'https://www.npmjs.com/search?q='
packagephobia
'https://packagephobia.now.sh/result?p='
qunit
'https://api.qunitjs.com/?s='
reactjs
$(
_frontend_fallback
'reactjs.org/'
)
smacss
$(
_frontend_fallback
'smacss.com'
)
...
...
@@ -82,7 +84,7 @@ function frontend() {
print
-P
"%Uterm%u and what follows is what will be searched for in the %Ucontext%u website,"
print
-P
"and %Ucontext%u is one of the following:"
print
-P
""
print
-P
" angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
print
-P
" angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,
packagephobia
"
print
-P
" dartlang, emberjs, fontello, flowtype, github, html5please, jestjs, jquery, lodash,"
print
-P
" mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
print
-P
""
...
...
@@ -98,7 +100,7 @@ function frontend() {
echo
""
echo
"Valid contexts are:"
echo
""
echo
" angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
echo
" angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,
packagephobia
"
echo
" dartlang, emberjs, fontello, github, html5please, jest, jquery, lodash,"
echo
" mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
echo
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment