Skip to content

Commit 75654b7

Browse files
author
Alban Bailly
committed
adding gulp setup for all development tasks
1 parent ce88402 commit 75654b7

File tree

5 files changed

+1523
-1
lines changed

5 files changed

+1523
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2+
node_modules/
23
themes/linode-hugo-theme

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Built with:
1212

1313
From within your local developers-linode-com repository:
1414

15-
`hugo server -D`
15+
`yarn`
16+
`gulp dev`
1617

1718
Once running, you should be able to view the site in a browser on port 1313:
1819

gulpfile.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const gulp = require('gulp');
2+
const shell = require('gulp-shell');
3+
var runSequence = require('run-sequence');
4+
5+
gulp.task('get-base-theme',
6+
shell.task(
7+
'cd themes/linode-hugo-theme && git pull origin development',
8+
)
9+
);
10+
11+
gulp.task('start-theme-tools',
12+
shell.task(
13+
'cd themes/dlc && yarn && gulp watch'
14+
)
15+
);
16+
17+
gulp.task('start-hugo',
18+
shell.task(
19+
'hugo server -D'
20+
)
21+
);
22+
23+
gulp.task('dev', function(){
24+
runSequence(
25+
'get-base-theme',
26+
['start-theme-tools', 'start-hugo'],
27+
)
28+
})

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dependencies": {
3+
"gulp": "^3.9.1",
4+
"gulp-shell": "^0.6.5",
5+
"run-sequence": "^2.2.1"
6+
}
7+
}

0 commit comments

Comments
 (0)