This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy file from local to remote server (reverse to copy the other way) | |
scp [filename] [user]@[remote-server]:/tmp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# options - long list, show all | |
ls -la | |
# options - long list, reverse order, sort by modification time | |
ls -lrt | |
# Print working directory | |
pwd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://ianstormtaylor.com/oocss-plus-sass-is-the-best-way-to-css/ | |
// Sass | |
%separator | |
border-top: 1px solid black | |
hr | |
@extend %separator | |
.separator | |
@extend %separator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To compress | |
tar -zcvf archive_name.tar.gz folder_to_compress | |
# To extract | |
tar -zxvf archive_name.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Out of the box I include HTML5 Boilerplate, jQuery and Modernizr. | |
Would you like to include Twitter Bootstrap for Sass? (Y/n) | |
Would you like to include RequireJS (for AMD support)? (Y/n) | |
create Gruntfile.js | |
create package.json | |
create .gitignore | |
create .gitattributes | |
create .bowerrc | |
create component.json | |
create .jshintrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Local Npm module "grunt-mocha" not found. Is it installed? | |
Running "jshint:all" (jshint) task | |
>> 4 files lint free. | |
Warning: Task "mocha" not found. Used --force, continuing. | |
Running "clean:dist" (clean) task | |
Running "useminPrepare:html" (useminPrepare) task | |
Going through app/index.html to update the config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g yo grunt-cli bower |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myproject/ | |
|-- .sass-cache/ | |
|-- .tmp/ | |
|-- app/ | |
| |-- components/ | |
| |-- images/ | |
| |-- scripts/ | |
| `-- styles/ | |
|-- dist/ | |
| |-- components/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
yeoman: yeomanConfig, | |
watch: { | |
coffee: { | |
files: ['<%= yeoman.app %>/scripts/{,*/}*.coffee'], | |
tasks: ['coffee:dist'] | |
}, | |
coffeeTest: { | |
files: ['test/spec/{,*/}*.coffee'], | |
tasks: ['coffee:test'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2013-06-04 using generator-webapp 0.1.7 | |
'use strict'; | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' |