Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit bc93d86

Browse files
committed
Gulp build now creates the entire websites
1 parent 8689ef4 commit bc93d86

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

gulpfile.babel.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ gulp.task('service-worker-css-urls', (done) => {
187187
serviceWorkerUrlFor('css', done)
188188
});
189189

190+
gulp.task('jekyll-build', (done) => exec(`jekyll build`, (err, stdout, stderr) => done()))
191+
190192
const build = gulp.series(
191193
'css',
192194
'flow',
@@ -201,7 +203,8 @@ const build = gulp.series(
201203
'rev-css',
202204
'service-worker-home-urls',
203205
'service-worker-blog-urls',
204-
'service-worker-css-urls'
206+
'service-worker-css-urls',
207+
'jekyll-build'
205208
)
206209

207210
export default build;

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"flow" : "scripts/flow.sh",
88
"prepare": "scripts/install.sh",
99
"build": "gulp",
10-
"generate": "jekyll build",
1110
"start": "scripts/start.sh",
1211
"shell": "scripts/shell.sh",
1312
"test": "scripts/test.sh"

scripts/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ npm install --global flow-typed@2.5.1
77
# Install html proofer for unit tests
88
gem install html-proofer
99

10-
# Init pages-gem submodule
11-
git submodule update --init
12-
1310
# Install/Update core utils to use docker startup github-pages function
1411
brew install coreutils
1512

13+
# Init pages-gem submodule
14+
git submodule update --init
15+
1616
# Clean old docker images
1717
docker images -a | grep "gh-pages" | awk '{print $3}' | xargs docker rmi
1818
docker images -a | grep "ruby" | awk '{print $3}' | xargs docker rmi

scripts/test.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/env sh
22

3-
# build site scrips/css/assets
3+
# build site
44
npm run build
55

6-
# Generate website
7-
npm run generate
8-
96
# Unit test website
107
htmlproofer --check-html \
118
--check-img-http \

0 commit comments

Comments
 (0)