Commit 098619f 1 parent 00fe001 commit 098619f Copy full SHA for 098619f
File tree 3 files changed +20
-7
lines changed
3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,11 @@ module.exports = function(grunt) {
151
151
options : {
152
152
data : {
153
153
js : {
154
- highlightjs : '<%= pkg.gruntConfig.js.highlightjs %>' ,
155
- modernizr : '<%= pkg.gruntConfig.js.modernizr %>' ,
156
- jquery : '<%= pkg.gruntConfig.js.jquery %>' ,
157
- popper : '<%= pkg.gruntConfig.js.popper %>' ,
158
- bootstrap : '<%= pkg.gruntConfig.js.bootstrap %>' ,
154
+ highlightjs : '<%= pkg.gruntConfig.js.ghpages. highlightjs %>' ,
155
+ modernizr : '<%= pkg.gruntConfig.js.ghpages. modernizr %>' ,
156
+ jquery : '<%= pkg.gruntConfig.js.ghpages. jquery %>' ,
157
+ popper : '<%= pkg.gruntConfig.js.ghpages. popper %>' ,
158
+ bootstrap : '<%= pkg.gruntConfig.js.ghpages. bootstrap %>' ,
159
159
slider : 'js/bootstrap-slider.js'
160
160
} ,
161
161
css : {
Original file line number Diff line number Diff line change 73
73
"popper" : " node_modules/popper.js/dist/umd/popper.min.js" ,
74
74
"bootstrap" : " node_modules/bootstrap/dist/js/bootstrap.min.js" ,
75
75
"bindPolyfill" : " test/phantom_bind_polyfill.js" ,
76
- "slider" : " src/js/bootstrap-slider.js"
76
+ "slider" : " src/js/bootstrap-slider.js" ,
77
+ "ghpages" : {
78
+ "highlightjs" : " dependencies/js/highlight.min.js" ,
79
+ "modernizr" : " dependencies/js/modernizr.js" ,
80
+ "jquery" : " dependencies/js/jquery.min.js" ,
81
+ "popper" : " dependencies/js/popper.min.js" ,
82
+ "bootstrap" : " dependencies/js/bootstrap.min.js" ,
83
+ "bindPolyfill" : " test/phantom_bind_polyfill.js" ,
84
+ "slider" : " src/js/bootstrap-slider.js"
85
+ }
77
86
},
78
87
"sass" : {
79
88
"slider" : " src/sass/bootstrap-slider.scss" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ cp index.html index-temp.html
11
11
# Checkout to `gh-pages` branch
12
12
git checkout -B gh-pages origin/gh-pages
13
13
git pull -r origin gh-pages
14
+ # Update dependencies
15
+ cp node_modules/jquery/dist/jquery.min.js dependencies/js/jquery.min.js
16
+ cp node_modules/popper.js/dist/umd/popper.min.js dependencies/js/popper.min.js
17
+ cp node_modules/bootstrap/dist/js/bootstrap.min.js dependencies/js/bootstrap.min.js
14
18
# Replace current files with temporary files
15
19
mv index-temp.html index.html
16
20
cp node_modules/bootstrap/dist/css/bootstrap.min.css css/bootstrap.min.css
@@ -19,7 +23,7 @@ mv temp/bootstrap-slider.js js/bootstrap-slider.js
19
23
# Remove /temp directory
20
24
rm -rf temp
21
25
# Stage new files for commit
22
- git add index.html css/bootstrap-slider.css js/bootstrap-slider.js css/bootstrap.min.css
26
+ git add index.html css/bootstrap-slider.css js/bootstrap-slider.js css/bootstrap.min.css dependencies/ *
23
27
# Create commit with new files
24
28
git commit -m " updates"
25
29
# Push new source code to gh-pages branch
You can’t perform that action at this time.
0 commit comments