mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2024-12-02 13:14:21 +01:00
Added twitter to gulp script.
This commit is contained in:
parent
ee438545e0
commit
aa2c1b8ef1
11
gulpfile.js
11
gulpfile.js
@ -22,7 +22,8 @@ gulp.task('default', ['start:setup'], callback => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('all', ['start:setup'], callback => {
|
gulp.task('all', ['start:setup'], callback => {
|
||||||
runSequence(['assets:js', 'assets:scss'],
|
runSequence(['scripts:twitter'],
|
||||||
|
['assets:js', 'assets:scss'],
|
||||||
'hugo',
|
'hugo',
|
||||||
'assets:images',
|
'assets:images',
|
||||||
finalCommand,
|
finalCommand,
|
||||||
@ -49,6 +50,14 @@ gulp.task('start:setup', () => {
|
|||||||
util.log(`process.env.HUGO_BASEURL = '${process.env.HUGO_BASEURL}'`);
|
util.log(`process.env.HUGO_BASEURL = '${process.env.HUGO_BASEURL}'`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('scripts:twitter', callback => {
|
||||||
|
exec(`cd ./scripts/shared-hugo-scripts/twitter/ && npm install && node app.js`, (err, stdout, stderr) => {
|
||||||
|
console.log(stdout);
|
||||||
|
console.log(stderr);
|
||||||
|
callback(err);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task('assets:images', () => {
|
gulp.task('assets:images', () => {
|
||||||
const baseImages = gulp.src(`build/images/*`, {base: './'})
|
const baseImages = gulp.src(`build/images/*`, {base: './'})
|
||||||
.pipe(gulp.dest('./'));
|
.pipe(gulp.dest('./'));
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="columns is-multiline">
|
<div class="columns is-multiline">
|
||||||
{{ range .Site.Data.twitter }}
|
{{ range sort .Site.Data.twitter "order" }}
|
||||||
<div class="column is-one-third">
|
<div class="column is-one-third">
|
||||||
{{ partial "widget/tweet.html" . }}
|
{{ partial "widget/tweet.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user