Skip to content

Commit 20fce25

Browse files
committed
Grunt is in πŸ™Œ
1 parent 80f6a5b commit 20fce25

File tree

15 files changed

+226
-10
lines changed

15 files changed

+226
-10
lines changed

β€Ž.gitignore

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Stylesheet
2+
assets/css/app.css
3+
4+
# JavaScript
5+
assets/js/all.js
6+
rev-manifest.json
7+
8+
# Cache
9+
.sass-cache/
10+
*.sassc
11+
*.scssc
12+
13+
# Mac OSX
14+
.DS_Store
15+
Icon
16+
*.swp~
17+
18+
# Thumbnails
19+
._*
20+
21+
# Files that might appear on external disk
22+
.Spotlight-V100
23+
.Trashes
24+
25+
# Windows
26+
Thumbs.db
27+
ehthumbs.db
28+
29+
# Folder config file
30+
Desktop.ini
31+
32+
# Recycle Bin used on file shares
33+
$RECYCLE.BIN/
34+
35+
# gulp.js
36+
.gulp/
37+
node_modules/**/*
38+
npm-debug.log
39+
40+
# Jekyll
41+
_site
42+
.jekyll-metadata
43+
44+
# Vendor directory
45+
assets/vendor/
46+
bower_components
47+
48+
# Ruby
49+
Gemfile.lock
50+
51+
# Composer
52+
composer.lock

β€ŽGruntfile.coffee

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#global module:false
2+
3+
"use strict"
4+
5+
module.exports = (grunt) ->
6+
grunt.loadNpmTasks "grunt-bower-task"
7+
grunt.loadNpmTasks "grunt-contrib-connect"
8+
grunt.loadNpmTasks "grunt-contrib-copy"
9+
grunt.loadNpmTasks "grunt-contrib-watch"
10+
grunt.loadNpmTasks "grunt-exec"
11+
12+
grunt.initConfig
13+
14+
copy:
15+
jquery:
16+
files: [{
17+
expand: true
18+
cwd: "bower_components/jquery/dist/"
19+
src: "jquery.min.js"
20+
dest: "vendor/js/"
21+
}]
22+
bootstrap:
23+
files: [{
24+
expand: true
25+
cwd: "bower_components/foundation/css/"
26+
src: "foundation.min.css"
27+
dest: "vendor/css/"
28+
},
29+
{
30+
expand: true
31+
cwd: "bower_components/foundation/js/"
32+
src: "foundation.min.js"
33+
dest: "vendor/js/"
34+
}]
35+
36+
exec:
37+
jekyll:
38+
cmd: "jekyll build --trace"
39+
40+
watch:
41+
options:
42+
livereload: true
43+
source:
44+
files: [
45+
"_drafts/**/*"
46+
"_includes/**/*"
47+
"_layouts/**/*"
48+
"_posts/**/*"
49+
"css/**/*"
50+
"js/**/*"
51+
"_config.yml"
52+
"*.html"
53+
"*.md"
54+
]
55+
tasks: [
56+
"exec:jekyll"
57+
]
58+
59+
connect:
60+
server:
61+
options:
62+
port: 4000
63+
base: '_site'
64+
livereload: true
65+
66+
grunt.registerTask "build", [
67+
"copy"
68+
"exec:jekyll"
69+
]
70+
71+
grunt.registerTask "serve", [
72+
"build"
73+
"connect:server"
74+
"watch"
75+
]
76+
77+
grunt.registerTask "default", [
78+
"serve"
79+
]

β€Ž_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ exclude:
1919
- "Gemfile.lock"
2020
- "/gulp/"
2121
- "gulpfile.js"
22+
- "Gruntfile.coffee"
2223
- "LICENSE.md"
2324
- "Makefile"
2425
- "node_modules"

β€Ž_includes/head.html

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
<meta name="description" content="{{ site.description }}">
88

99
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10+
<link rel="stylesheet" href="/vendor/css/foundation.min.css">
1011
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
1112
</head>

β€Ž_layouts/default.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
</div>
1515

1616
{% include footer.html %}
17-
17+
<script src="/vendor/js/jquery.min.js"></script>
18+
<script src="/vendor/js/foundation.min.js"></script>
1819
</body>
1920

2021
</html>

β€Ž_site/about/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<meta name="description" content="A collection of open source projects from Skcript">
1111

1212
<link rel="stylesheet" href="/css/main.css">
13+
<link rel="stylesheet" href="/vendor/css/foundation.min.css">
1314
<link rel="canonical" href="http://skcript.github.io/about/">
1415
</head>
1516

@@ -83,7 +84,7 @@ <h2 class="footer-heading">Skcript + Open Source = ❀️</h2>
8384
<div class="footer-col footer-col-1">
8485
<ul class="contact-list">
8586
<li>Skcript + Open Source = ❀️</li>
86-
<li><a href="mailto:"></a></li>
87+
<li><a href="mailto:[email protected]">[email protected]</a></li>
8788
</ul>
8889
</div>
8990

@@ -129,7 +130,8 @@ <h2 class="footer-heading">Skcript + Open Source = ❀️</h2>
129130

130131
</footer>
131132

132-
133+
<script src="/vendor/js/jquery.min.js"></script>
134+
<script src="/vendor/js/foundation.min.js"></script>
133135
</body>
134136

135137
</html>

β€Ž_site/blog/2016/welcome-to-jekyll/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<meta name="description" content="A collection of open source projects from Skcript">
1111

1212
<link rel="stylesheet" href="/css/main.css">
13+
<link rel="stylesheet" href="/vendor/css/foundation.min.css">
1314
<link rel="canonical" href="http://skcript.github.io/blog/2016/welcome-to-jekyll/">
1415
</head>
1516

@@ -93,7 +94,7 @@ <h2 class="footer-heading">Skcript + Open Source = ❀️</h2>
9394
<div class="footer-col footer-col-1">
9495
<ul class="contact-list">
9596
<li>Skcript + Open Source = ❀️</li>
96-
<li><a href="mailto:"></a></li>
97+
<li><a href="mailto:[email protected]">[email protected]</a></li>
9798
</ul>
9899
</div>
99100

@@ -139,7 +140,8 @@ <h2 class="footer-heading">Skcript + Open Source = ❀️</h2>
139140

140141
</footer>
141142

142-
143+
<script src="/vendor/js/jquery.min.js"></script>
144+
<script src="/vendor/js/foundation.min.js"></script>
143145
</body>
144146

145147
</html>

β€Ž_site/feed.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<description>A collection of open source projects from Skcript</description>
66
<link>http://skcript.github.io/</link>
77
<atom:link href="http://skcript.github.io/feed.xml" rel="self" type="application/rss+xml" />
8-
<pubDate>Sun, 10 Apr 2016 20:23:10 +0530</pubDate>
9-
<lastBuildDate>Sun, 10 Apr 2016 20:23:10 +0530</lastBuildDate>
8+
<pubDate>Sun, 10 Apr 2016 20:55:37 +0530</pubDate>
9+
<lastBuildDate>Sun, 10 Apr 2016 20:55:37 +0530</lastBuildDate>
1010
<generator>Jekyll v2.4.0</generator>
1111

1212
<item>

β€Ž_site/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<meta name="description" content="A collection of open source projects from Skcript">
1111

1212
<link rel="stylesheet" href="/css/main.css">
13+
<link rel="stylesheet" href="/vendor/css/foundation.min.css">
1314
<link rel="canonical" href="http://skcript.github.io/">
1415
</head>
1516

@@ -86,7 +87,7 @@ <h2 class="footer-heading">Skcript + Open Source = ❀️</h2>
8687
<div class="footer-col footer-col-1">
8788
<ul class="contact-list">
8889
<li>Skcript + Open Source = ❀️</li>
89-
<li><a href="mailto:"></a></li>
90+
<li><a href="mailto:[email protected]">[email protected]</a></li>
9091
</ul>
9192
</div>
9293

@@ -132,7 +133,8 @@ <h2 class="footer-heading">Skcript + Open Source = ❀️</h2>
132133

133134
</footer>
134135

135-
136+
<script src="/vendor/js/jquery.min.js"></script>
137+
<script src="/vendor/js/foundation.min.js"></script>
136138
</body>
137139

138140
</html>

β€Ž_site/sitemap.xml

+36
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,40 @@
1010
<url>
1111
<loc>http://skcript.github.io/</loc>
1212
</url>
13+
<url>
14+
<loc>http://skcript.github.io/bower_components/modernizr/test/basic.html</loc>
15+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
16+
</url>
17+
<url>
18+
<loc>http://skcript.github.io/bower_components/modernizr/test/caniuse.html</loc>
19+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
20+
</url>
21+
<url>
22+
<loc>http://skcript.github.io/bower_components/modernizr/test/caniuse_files/form_validation.html</loc>
23+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
24+
</url>
25+
<url>
26+
<loc>http://skcript.github.io/bower_components/modernizr/test/caniuse_files/hashchange.html</loc>
27+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
28+
</url>
29+
<url>
30+
<loc>http://skcript.github.io/bower_components/modernizr/test/caniuse_files/mathml.html</loc>
31+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
32+
</url>
33+
<url>
34+
<loc>http://skcript.github.io/bower_components/modernizr/test/caniuse_files/pushstate.html</loc>
35+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
36+
</url>
37+
<url>
38+
<loc>http://skcript.github.io/bower_components/modernizr/test/caniuse_files/xhtml.html</loc>
39+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
40+
</url>
41+
<url>
42+
<loc>http://skcript.github.io/bower_components/modernizr/test/index.html</loc>
43+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
44+
</url>
45+
<url>
46+
<loc>http://skcript.github.io/bower_components/modernizr/test/js/basic.html</loc>
47+
<lastmod>2016-04-10T20:44:56+05:30</lastmod>
48+
</url>
1349
</urlset>

β€Žbower.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
"bower_components",
1919
"test",
2020
"tests"
21-
]
21+
],
22+
"dependencies": {
23+
"foundation": "^5.5.3"
24+
}
2225
}

β€Žpackage.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "skcript.github.io",
3+
"version": "2.0.0",
4+
"description": "A collection of open source projects from Skcript",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/skcript/skcript.github.io.git"
12+
},
13+
"author": "Karthik K",
14+
"license": "ISC",
15+
"bugs": {
16+
"url": "https://github.com/skcript/skcript.github.io/issues"
17+
},
18+
"homepage": "https://github.com/skcript/skcript.github.io#readme",
19+
"devDependencies": {
20+
"grunt": "^1.0.1",
21+
"grunt-bower-task": "^0.4.0",
22+
"grunt-contrib-connect": "^1.0.1",
23+
"grunt-contrib-copy": "^1.0.0",
24+
"grunt-contrib-watch": "^1.0.0",
25+
"grunt-exec": "^0.4.6"
26+
}
27+
}

β€Žvendor/css/foundation.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žvendor/js/foundation.min.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žvendor/js/jquery.min.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)