Skip to content

Commit d63e79c

Browse files
committed
Cleanup
1 parent bbddacd commit d63e79c

File tree

2 files changed

+20
-47
lines changed

2 files changed

+20
-47
lines changed

gulpfile.js

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var paths = {
3232
output: 'dist/css/'
3333
},
3434
templates: {
35-
twig: 'src/templates/**/*.twig',
35+
//twig: 'src/templates/**/*.twig',
3636
pages: 'src/templates/pages/**/*.twig',
3737
data: 'src/data/**/*.json',
3838
},
@@ -248,28 +248,6 @@ var buildStyles = function (done) {
248248

249249
};
250250

251-
252-
253-
// // Generate templates
254-
// gulp.task('templates', function () {
255-
// return gulp.src(src.html_pages)
256-
// .pipe(data(function (file) {
257-
// var dataPath = '../data/' + path.join(path.relative("../templates/pages", path.dirname(file.path)), path.basename(file.path, '.twig')) + '.json';
258-
// return requireUncached(dataPath);
259-
// }))
260-
// .pipe(twig())
261-
// .pipe(prettify({indent_char: ' ', indent_size: 2}))
262-
// .pipe(gulp.dest('../'))
263-
// .on("end", reload);
264-
// });
265-
266-
// paths.
267-
// templates: {
268-
// twig: '../templates/**/*.twig',
269-
// html_pages: '../templates/pages/**/*.twig',
270-
// dataJson: '../data/**/*.json',
271-
// },
272-
273251
// Generate html from templates and data
274252
var buildTemplates = function(done) {
275253

@@ -289,9 +267,6 @@ var buildTemplates = function(done) {
289267
.pipe(dest(paths.output));
290268
};
291269

292-
293-
294-
295270
// Optimize SVG files
296271
var buildSVGs = function (done) {
297272

@@ -355,7 +330,6 @@ var watchSource = function (done) {
355330
*/
356331

357332
// Default task
358-
// gulp
359333
exports.default = series(
360334
cleanDist,
361335
parallel(
@@ -369,7 +343,6 @@ exports.default = series(
369343
);
370344

371345
// Watch and reload
372-
// gulp watch
373346
exports.watch = series(
374347
exports.default,
375348
startServer,

src/data/index.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"index": [
3-
{
4-
"url": "login.html",
5-
"name": "Log ind"
6-
},
7-
{
8-
"url": "login-returning.html",
9-
"name": "Tilbagevendende (flere brugere)"
10-
},
11-
{
12-
"url": "login-returning-single.html",
13-
"name": "Tilbagevendende (1 bruger)"
14-
},
15-
{
16-
"url": "claims-report.html?usertest=1",
17-
"name": "Skadesanmeldelse (1)"
18-
}
19-
]
20-
}
2+
"index": [
3+
{
4+
"url": "login.html",
5+
"name": "Log ind"
6+
},
7+
{
8+
"url": "login-returning.html",
9+
"name": "Tilbagevendende (flere brugere)"
10+
},
11+
{
12+
"url": "login-returning-single.html",
13+
"name": "Tilbagevendende (1 bruger)"
14+
},
15+
{
16+
"url": "claims-report.html?usertest=1",
17+
"name": "Skadesanmeldelse (1)"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)