This file contains 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 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 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 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 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 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 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 grunt | |
npm http GET https://registry.npmjs.org/grunt | |
npm http 304 https://registry.npmjs.org/grunt | |
npm http GET https://registry.npmjs.org/async | |
npm http GET https://registry.npmjs.org/coffee-script | |
npm http GET https://registry.npmjs.org/colors | |
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3 | |
npm http GET https://registry.npmjs.org/eventemitter2 | |
npm http GET https://registry.npmjs.org/findup-sync | |
npm http GET https://registry.npmjs.org/glob |
This file contains 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
console.log("Some inline code"); | |
{ | |
"name": "my-theme", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.2", | |
"grunt-contrib-compass": "~0.7.0", | |
"grunt-contrib-watch": "~0.5.3", | |
"grunt-contrib-imagemin": "~0.4.0", |
This file contains 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
.idea/ | |
.project | |
*.sublime-project | |
*.sublime-workspace | |
*.tmproj | |
*.bak | |
*.swp | |
*~.nib | |
.sass-cache/ | |
node_modules/ |
This file contains 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
module.exports = function(grunt) { | |
var gulp = require('gulp'), | |
styleguide = require('sc5-styleguide'); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { |