Skip to content

Commit 6db8a64

Browse files
committed
Merge branch 'develop'
2 parents b53117e + 18d8565 commit 6db8a64

File tree

5 files changed

+27
-99
lines changed

5 files changed

+27
-99
lines changed

Gruntfile.js

+10-86
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ module.exports = function (grunt) {
2525
grunt.initConfig({
2626
yeoman: yeomanConfig,
2727
watch: {
28-
coffee: {
29-
files: ['<%= yeoman.app %>/scripts/{,*/}*.coffee'],
30-
tasks: ['coffee:dist']
31-
},
32-
coffeeTest: {
33-
files: ['test/spec/{,*/}*.coffee'],
34-
tasks: ['coffee:test']
35-
},
36-
compass: {
37-
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
38-
tasks: ['compass:server']
39-
},
4028
livereload: {
4129
options: {
4230
livereload: LIVERELOAD_PORT
@@ -125,75 +113,6 @@ module.exports = function (grunt) {
125113
}
126114
}
127115
},
128-
coffee: {
129-
dist: {
130-
files: [
131-
{
132-
expand: true,
133-
cwd: '<%= yeoman.app %>/scripts',
134-
src: '{,*/}*.coffee',
135-
dest: '.tmp/scripts',
136-
ext: '.js'
137-
}
138-
]
139-
},
140-
test: {
141-
files: [
142-
{
143-
expand: true,
144-
cwd: 'test/spec',
145-
src: '{,*/}*.coffee',
146-
dest: '.tmp/spec',
147-
ext: '.js'
148-
}
149-
]
150-
}
151-
},
152-
compass: {
153-
options: {
154-
sassDir: '<%= yeoman.app %>/styles',
155-
cssDir: '.tmp/styles',
156-
generatedImagesDir: '.tmp/images/generated',
157-
imagesDir: '<%= yeoman.app %>/images',
158-
javascriptsDir: '<%= yeoman.app %>/scripts',
159-
fontsDir: '<%= yeoman.app %>/styles/fonts',
160-
importPath: '<%= yeoman.app %>/bower_components',
161-
httpImagesPath: '/images',
162-
httpGeneratedImagesPath: '/images/generated',
163-
httpFontsPath: '/styles/fonts',
164-
relativeAssets: false
165-
},
166-
dist: {},
167-
server: {
168-
options: {
169-
debugInfo: true
170-
}
171-
}
172-
},
173-
// not used since Uglify task does concat,
174-
// but still available if needed
175-
/*concat: {
176-
dist: {}
177-
},*/
178-
requirejs: {
179-
dist: {
180-
// Options: https://github.com/jrburke/r.js/blob/master/build/example.build.js
181-
options: {
182-
// `name` and `out` is set by grunt-usemin
183-
baseUrl: yeomanConfig.app + '/scripts',
184-
optimize: 'none',
185-
// TODO: Figure out how to make sourcemaps work with grunt-usemin
186-
// https://github.com/yeoman/grunt-usemin/issues/30
187-
//generateSourceMaps: true,
188-
// required to support SourceMaps
189-
// http://requirejs.org/docs/errors.html#sourcemapcomments
190-
preserveLicenseComments: false,
191-
useStrict: true,
192-
wrap: true
193-
//uglify2: {} // https://github.com/mishoo/UglifyJS2
194-
}
195-
}
196-
},
197116
rev: {
198117
dist: {
199118
files: {
@@ -285,6 +204,15 @@ module.exports = function (grunt) {
285204
// Put files not handled in other tasks here
286205
copy: {
287206
dist: {
207+
styles: {
208+
expand: true,
209+
cwd: '<%= yeoman.app %>',
210+
dest: '.tmp/',
211+
src: [
212+
'styles/{,*/}*.css',
213+
'bower_components/bootstrap/dist/css/bootstrap.min.css'
214+
]
215+
},
288216
files: [
289217
{
290218
expand: true,
@@ -311,15 +239,11 @@ module.exports = function (grunt) {
311239
},
312240
concurrent: {
313241
server: [
314-
'compass',
315-
'coffee:dist'
242+
316243
],
317244
test: [
318-
'coffee'
319245
],
320246
dist: [
321-
'coffee',
322-
'compass',
323247
'imagemin',
324248
'svgmin',
325249
'htmlmin'

app/index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<title>Vim Cheat Sheet</title>
77
<meta name="description" content="A mobile friendly VIM cheat sheet">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9-
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
109
<!-- build:css({.tmp,app}) styles/main.css -->
10+
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
1111
<link rel="stylesheet" href="styles/main.css">
1212
<!-- endbuild -->
1313
<!-- build:js scripts/vendor/modernizr.js -->
@@ -19,12 +19,12 @@
1919
<div class="clearfix">
2020
<div class="container">
2121
<div class="row">
22-
<div class="col-lg-12">
22+
<div class="col-lg-12 col-md-12">
2323
<h1>VIM</h1>
2424
</div>
2525
</div> <!-- end row -->
2626
<div class="row">
27-
<div class="col-lg-4">
27+
<div class="col-lg-4 col-md-4">
2828
<h2>Cursor movement</h2>
2929
<ul>
3030
<li><kbd>h</kbd> - move cursor left</li>
@@ -58,7 +58,7 @@ <h2>Insert mode - inserting/appending text</h2>
5858
<li><kbd>Esc</kbd> - exit insert mode</li>
5959
</ul>
6060
</div>
61-
<div class="col-lg-4">
61+
<div class="col-lg-4 col-md-4">
6262
<h2>Editing</h2>
6363
<ul>
6464
<li><kbd>r</kbd> - replace a single character</li>
@@ -96,7 +96,7 @@ <h2>Visual commands</h2>
9696
<li><kbd>~</kbd> - switch case</li>
9797
</ul>
9898
</div>
99-
<div class="col-lg-4">
99+
<div class="col-lg-4 col-md-4">
100100
<h2>Cut and paste</h2>
101101
<ul>
102102
<li><kbd>yy</kbd> - yank (copy) a line</li>
@@ -132,7 +132,7 @@ <h2>Search and replace</h2>
132132
</div>
133133
</div> <!-- end row -->
134134
<div class="row">
135-
<div class="col-lg-4">
135+
<div class="col-lg-4 col-md-4">
136136
<h2>Working with multiple files</h2>
137137
<ul>
138138
<li><kbd>:e</kbd> filename - edit a file in a new buffer</li>
@@ -147,7 +147,7 @@ <h2>Working with multiple files</h2>
147147
<li><kbd>Ctrl</kbd> + <kbd>wv</kbd> - split window vertically</li>
148148
</ul>
149149
</div>
150-
<div class="col-lg-4">
150+
<div class="col-lg-4 col-md-4">
151151
<h2>Tabs</h2>
152152
<ul>
153153
<li><kbd>:tabnew</kbd> filename or <kbd>:tabn</kbd> filename - open a file in a new tab</li>

app/styles/main.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ h2 {
2626

2727
ul {
2828
padding: 0;
29-
padding-left: 5px;
3029
}
3130

3231
li {
@@ -38,9 +37,17 @@ li {
3837
}
3938

4039
#footer {
40+
margin-top: 15px;
4141
text-align: center;
4242
}
4343

4444
kbd {
45+
font-family: monospace,serif;
46+
font-size: 1em;
47+
color: #333;
48+
background-color: #fafafa;
49+
border-radius: 0;
50+
box-shadow: none;
4551
font-weight: bold;
52+
padding: 0;
4653
}

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "vim-cheat-sheet",
33
"version": "0.0.0",
44
"dependencies": {
5-
"boostrap": "[email protected]:twbs/bootstrap.git#3.0.0-rc1",
65
"modernizr": "~2.6.2",
7-
"jquery": "~1.9.1"
6+
"jquery": "~1.9.1",
7+
"bootstrap": "~3.1.0"
88
},
99
"devDependencies": {}
1010
}

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
"grunt": "~0.4.1",
77
"grunt-contrib-copy": "~0.4.1",
88
"grunt-contrib-concat": "~0.1.3",
9-
"grunt-contrib-coffee": "~0.6.5",
109
"grunt-contrib-uglify": "~0.2.0",
11-
"grunt-contrib-compass": "~0.2.0",
1210
"grunt-contrib-jshint": "~0.4.1",
1311
"grunt-contrib-cssmin": "~0.6.0",
1412
"grunt-contrib-connect": "~0.2.0",
1513
"grunt-contrib-clean": "~0.4.0",
1614
"grunt-contrib-htmlmin": "~0.1.3",
1715
"grunt-bower-requirejs": "~0.4.1",
18-
"grunt-contrib-requirejs": "~0.4.0",
1916
"grunt-contrib-imagemin": "~0.1.3",
2017
"grunt-contrib-watch": "~0.4.0",
2118
"grunt-rev": "~0.1.0",

0 commit comments

Comments
 (0)