Skip to content

Commit 25a6436

Browse files
committed
Update node modules + change default task
1 parent 2ebef75 commit 25a6436

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

gruntfile.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ module.exports = function(grunt) {
44

55
grunt.initConfig({
66
pkg: grunt.file.readJSON('package.json'),
7+
jekyll: {
8+
options: {
9+
bundleExec: true
10+
}
11+
},
712
connect: {
813
server: {
914
options: {
1015
port: 1337,
16+
base: '_site'
1117
}
1218
}
1319
},
@@ -121,9 +127,12 @@ module.exports = function(grunt) {
121127
grunt.loadNpmTasks('grunt-contrib-concat');
122128
grunt.loadNpmTasks('grunt-contrib-uglify');
123129
grunt.loadNpmTasks('grunt-string-replace');
130+
grunt.loadNpmTasks('grunt-jekyll');
131+
124132

125133
grunt.registerTask('default', [
126-
// 'connect',
134+
'jekyll',
135+
'connect',
127136
'string-replace:dev',
128137
'watch'
129138
]);

package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
{
22
"name": "hoodie-website",
33
"version": "0.1.0",
4+
"scripts": {
5+
"start": "grunt",
6+
"build": "grunt build"
7+
},
48
"devDependencies": {
59
"grunt": "^0.4.5",
610
"grunt-autoprefixer": "^1.0.1",
11+
"grunt-cli": "^0.1.13",
712
"grunt-contrib-concat": "^0.5.0",
813
"grunt-contrib-connect": "^0.8.0",
914
"grunt-contrib-copy": "^0.7.0",
1015
"grunt-contrib-uglify": "^0.6.0",
1116
"grunt-contrib-watch": "^0.6.1",
12-
"grunt-sass": "^0.14.2",
17+
"grunt-sass": "^0.18.1",
1318
"grunt-string-replace": "^1.0.0",
1419
"time-grunt": "^1.0.0"
1520
},
16-
1721
"frontend": {
1822
"name": "Hood.ie Sass/JS",
1923
"stylesheets": "dist/sass",
2024
"javascripts": "dist/js"
25+
},
26+
"dependencies": {
27+
"grunt-jekyll": "^0.4.2"
2128
}
2229
}

0 commit comments

Comments
 (0)