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
<html> | |
<head> | |
<!-- Inlined critical styles --> | |
<style>.blue{color:blue;}</style> | |
<!-- CSS loader --> | |
<script> | |
/* ========================================================================== | |
Load CSS asynchronously and conditionally after initial painting |
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
(function($) { | |
$.fn.helloWorld = function() { | |
this.each( function() { | |
$(this).text("Hello, World!"); | |
}); | |
} | |
}(jQuery)); |
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
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
$ 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
// 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' |
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
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 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 -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
>> 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 |