Skip to content

Commit bfd8fb2

Browse files
author
mrmrs
committed
Updating readme with changes to Rakefile. Rakefile now includes task to
minify css.
1 parent 5f53306 commit bfd8fb2

File tree

2 files changed

+47
-25
lines changed

2 files changed

+47
-25
lines changed

README.md

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,63 @@ Checkout [nkd.cc](http://nkd.cc)
22

33
# NKD
44

5-
## Barebones scaffolding for a new Responsive HTML5 Jekyll project.
5+
## Barebones scaffolding for a new Responsive HTML5 Jekyll project *
66

77
NKD just works.
88
Start developing your jekyll prototype without any of the boring setup fuss.
99

1010
Site structure is as follows:
1111

1212
<pre>
13-
nkd [Site root]
14-
├── README.md [What you're reading now]
15-
├── Rakefile [Rake sass, rake dev]
16-
├── _config.yml [Config for site. Site will run without config in defulat mode]
17-
├── _includes [Common includes I need for sites / pages]
18-
│ ├── _footer.html [_BLANK_]
19-
│ ├── _head.html [Common header elements]
20-
│ ├── _js_includes.html [_BLANK_]
21-
│ └── _navigation_main.html [_BLANK_]
22-
├── _layouts [Two layout files: default and post. both are identical by default.]
23-
│ ├── default.html
24-
│ └── post.html
25-
├── _posts [Directory where you'd put posts...if you want any]
26-
├── _sass
27-
│ ├── _grid.scss [Blank media queries. Not included or compiled to css]
28-
│ ├── i.scss [Includes normalize - compiles to i.css]
29-
│ └── normalize.scss
30-
├── css
31-
│ ├── i.css
32-
└── index.html [index file that's served up at root. The "homepage" if you will.]
13+
./nkd [Site root]
14+
├── README.md [What you're reading now]
15+
├── Rakefile [Rake sass, rake dev]
16+
├── _config.yml [Config for site. Site will run without config in defulat mode]
17+
├── _includes [Common includes I need for sites / pages]
18+
│ ├── _footer.html [_BLANK_]
19+
│ ├── _head.html [Common header elements]
20+
│ ├── _js_includes.html [_BLANK_]
21+
│ └── _navigation_main.html [_BLANK_]
22+
├── _layouts [Two layout files: default and post. both are identical by default.]
23+
│ ├── default.html
24+
│ └── post.html
25+
├── _posts [Directory where you'd put posts...if you want any]
26+
├── _sass
27+
│ ├── _grid.scss [Blank media queries. Not included or compiled to css]
28+
│ ├── i.scss [Includes normalize - compiles to i.css]
29+
│ └── normalize.scss
30+
├── css
31+
│ ├── i.css
32+
└── index.html [index file that's served up at root. The "homepage" if you will.]
3333
</pre>
3434

3535
## Rake Tasks
3636

3737
### rake dev
38-
jekyll --auto --server
38+
```
39+
jekyll serve --watch
40+
```
3941
Use this to start the jekyll server. It will auto generate a new site at _site every time you save a file.
4042

41-
4243
### rake sass
44+
```
4345
sass --watch _sass:css
44-
Run this to start the sass autocompiler. Compiles to /nkd/css/i.css on save.
46+
```
47+
48+
Run this to start the sass autocompiler. Outputs to /nkd/css/i.css.
49+
50+
### rake minify
51+
```
52+
sass --watch _sass:css --style compressed
53+
```
4554

4655
### rake clean
56+
```
4757
rm -rf _site
58+
```
59+
4860
Run this to delete the _site directory. Use if you don't want to keep generated site locally unless actively developing.
61+
62+
63+
Notes:
64+
* So many buzzwords.

Rakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@ require 'rake'
33

44
desc "Automatically generate site at :4000 for local dev"
55
task :dev do
6-
system "jekyll --auto --server"
6+
system "jekyll serve --watch"
77
end # task :dev
88

99
desc "Start Sass so that is compiles to css upon file save"
1010
task :sass do
1111
system "sass --watch _sass:css"
1212
end # task :sass
1313

14+
desc "Start Sass so that is minifies and compiles to nkd/css/i.css upon file save"
15+
task :minify do
16+
system "sass --watch _sass:css --style compressed"
17+
end # task :minify
18+
1419
desc "Remove _site from directory before committing"
1520
task :clean do
1621
system "rm -rf _site"
1722
end # task :clean
23+

0 commit comments

Comments
 (0)