FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bash-it/plugins/available/javascript.plugin.bash at master · gitanicsoftware/bash-it · GitHub
gitanicsoftware
bash-it
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bash-it
/
plugins
/
available
/
javascript.plugin.bash
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (32 loc) · 1.12 KB
Breadcrumbs
bash-it
/
plugins
/
available
/
javascript.plugin.bash
Copy path
File metadata and controls
41 lines (32 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
The install directory is hard-coded. TODO: allow the directory to be specified on the command line.
cite about-plugin
about-plugin
'
download jquery files into current project
'
[[
-z
"
$JQUERY_VERSION_NUMBER
"
]]
&&
JQUERY_VERSION_NUMBER=
"
1.6.1
"
[[
-z
"
$JQUERY_UI_VERSION_NUMBER
"
]]
&&
JQUERY_UI_VERSION_NUMBER=
"
1.8.13
"
function
rails_jquery
{
about
'
download rails.js into public/javascripts
'
group
'
javascript
'
curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js
}
function
jquery_install
{
about
'
download jquery.js into public/javascripts
'
group
'
javascript
'
if
[
-z
"
$1
"
]
then
version=
$JQUERY_VERSION_NUMBER
else
version=
"
$1
"
fi
curl -o public/javascripts/jquery.js
"
http://ajax.googleapis.com/ajax/libs/jquery/
$version
/jquery.min.js
"
}
function
jquery_ui_install
{
about
'
download jquery_us.js into public/javascripts
'
group
'
javascript
'
if
[
-z
"
$1
"
]
then
version=
$JQUERY_UI_VERSION_NUMBER
else
version=
"
$1
"
fi
curl -o public/javascripts/jquery_ui.js
"
http://ajax.googleapis.com/ajax/libs/jqueryui/
$version
/jquery-ui.min.js
"
}
Back
|
FazBrowse Home
|
New Git URL