Permalink
Browse files

Initial Commit

  • Loading branch information...
Snugug committed May 30, 2013
0 parents commit 928636eeaf074a39acfe62391838684e6baef3bb
Showing with 2,065 additions and 0 deletions.
  1. +10 −0 .editorconfig
  2. +1 −0 .gitattributes
  3. +2 −0 .gitignore
  4. +16 −0 .jshintrc
  5. +7 −0 .npmignore
  6. +4 −0 .travis.yml
  7. +17 −0 app/USAGE
  8. +163 −0 app/index.js
  9. +157 −0 app/templates/404.html
  10. +7 −0 app/templates/Gemfile
  11. +11 −0 app/templates/_bower.json
  12. +24 −0 app/templates/_config.json
  13. +398 −0 app/templates/_gruntfile.js
  14. +28 −0 app/templates/_package.json
  15. +3 −0 app/templates/bowerrc
  16. +21 −0 app/templates/editorconfig
  17. +1 −0 app/templates/gitattributes
  18. +4 −0 app/templates/gitignore
  19. +46 −0 app/templates/helpers.js
  20. +544 −0 app/templates/htaccess
  21. +22 −0 app/templates/index.html
  22. +24 −0 app/templates/jshintrc
  23. +1 −0 app/templates/main.js
  24. +22 −0 app/templates/pages/hello.md
  25. +12 −0 app/templates/pages/index.html
  26. +3 −0 app/templates/robots.txt
  27. +58 −0 app/templates/sass/README.md
  28. +82 −0 app/templates/sass/partials/README.md
  29. +8 −0 app/templates/sass/partials/design/_design.scss
  30. +22 −0 app/templates/sass/partials/global/_base.scss
  31. +22 −0 app/templates/sass/partials/global/_extendables.scss
  32. +5 −0 app/templates/sass/partials/global/_functions.scss
  33. +5 −0 app/templates/sass/partials/global/_mixins.scss
  34. +5 −0 app/templates/sass/partials/global/_variables.scss
  35. +8 −0 app/templates/sass/partials/layout/_layout.scss
  36. +18 −0 app/templates/sass/partials/styleguide/_style-guide.scss
  37. +16 −0 app/templates/sass/print.scss
  38. +47 −0 app/templates/sass/style.scss
  39. +22 −0 app/templates/system.json
  40. +1 −0 contributing.md
  41. +42 −0 package.json
  42. +76 −0 readme.md
  43. +80 −0 test/test.js
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@@ -0,0 +1 @@
* text=auto
@@ -0,0 +1,2 @@
node_modules
temp/
@@ -0,0 +1,16 @@
{
"node": true,
"esnext": true,
"bitwise": false,
"curly": false,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"undef": true,
"strict": false,
"trailing": true,
"smarttabs": true
}
@@ -0,0 +1,7 @@
.npmignore
.editorconfig
.travis.yml
.jshintrc
.gitattributes
contributing.md
test
@@ -0,0 +1,4 @@
language: node_js
node_js:
- '0.10'
- '0.8'
@@ -0,0 +1,17 @@
Description:
Creates a new basic front-end web application.

Options:
Twitter Bootstrap: Include Twitter Bootstrap for Sass
RequireJS: Add support for AMD-loading via RequireJS

Example:
yo webapp

This will create:
Gruntfile.js: Configuration for the task runner.
bower.json: Front-end packages installed by bower.
package.json: Development packages installed by npm.

app/: Your application files.
test/: Unit tests for your application.
@@ -0,0 +1,163 @@
'use strict';
var util = require('util');
var path = require('path');
var spawn = require('child_process').spawn;
var yeoman = require('yeoman-generator');


var AppGenerator = module.exports = function Appgenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);

// // setup the test-framework property, Gruntfile template will need this
// this.testFramework = options['test-framework'] || 'mocha';

// // for hooks to resolve on mocha by default
// if (!options['test-framework']) {
// options['test-framework'] = 'mocha';
// }

// // resolved to mocha by default (could be switched to jasmine for instance)
// this.hookFor('test-framework', { as: 'app' });

// this.indexFile = this.readFileAsString(path.join(this.sourceRoot(), 'index.html'));
// this.mainJsFile = '';
// this.mainCoffeeFile = 'console.log "\'Allo from CoffeeScript!"';

// this.on('end', function () {
// this.installDependencies({ skipInstall: options['skip-install'] });
// });

// this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
};

util.inherits(AppGenerator, yeoman.generators.Base);

AppGenerator.prototype.askFor = function askFor() {
var cb = this.async();

var welcome =
'\n ,.-----__'.red +
'\n ,:::://///,:::-.'.red +
'\n /:\'\'/////// ``:::`;/|/'.red + ' .------------------.'.magenta +
'\n /\' |||||| :://\'`\\'.red + ' | '.magenta + 'I\'m an Armadillo'.yellow.bold + ' |'.magenta +
'\n .\' , |||||| `/( '.red + 'e'.white + ' \\'.red + ' \'------------------\'' .magenta +
'\n-===~__-\'\\__X_`````\\_____/~`-._ `.'.red + ' '.magenta +
'\n ~~ ~~ `~-\''.red + '\n';

console.log(welcome);
console.log('Out of the box I include Sass+Compass, Generator for Handlebars templating and Markdown powered pages, Image Optimization, JavaScript Hinting and Minification, and CSS Linting. I\'m also designed to make ');

var prompts = [
{
name: 'projectName',
message: 'The name of your project. (Required)',
default: '',
warning: 'You did not name your project',
required: true
},
// {
// name: 'ghRepo',
// message: 'The name of your GitHub Repo.',
// default: '',
// warning: 'You did not include a GitHub Repo.',
// before: function(value) {
// if (value === '') {
// return false;
// }
// else {
// return value;
// }
// }
// },
// {
// name: 'devHost',
// message: 'The hostname for your local development server.',
// default: 'localhost',
// warning: 'You did not include a hostname.'
// },
// {
// name: 'devPort',
// message: 'The port for your local development server.',
// default: 8000,
// warning: 'You did not include a valid port.'
// },
{
name: 'requireJS',
message: 'Would you like to include RequireJS?',
default: true,
warning: 'Yes: RequireJS will be placed into the JavaScript vendor directory.'
},
{
name: 'ghDeploy',
message: 'Are you going to deploy to GitHub?',
default: true,
warning: 'You did not specify if you\'re going to deploy to GitHub'
}
];

this.prompt(prompts, function (err, props) {
if (err) {
return this.emit('error', err);
}

// manually deal with the response, get back and store the results.
// we change a bit this way of doing to automatically do this in the self.prompt() method.
this.projectName = props.projectName;
this.projectSlug = this.projectName.toLowerCase().replace(' ', '-');
// this.ghRepo = props.ghRepo;
// this.devHost = props.devHost;
// this.devPort = props.devPort;
this.requireJS = props.requireJS;
this.ghDeploy = props.ghDeploy;


cb();
}.bind(this));
};

AppGenerator.prototype.gruntfile = function gruntfile() {
this.template('_gruntfile.js', 'Gruntfile.js');
};

AppGenerator.prototype.packageJSON = function packageJSON() {
this.template('_package.json', 'package.json');
};

AppGenerator.prototype.git = function git() {
this.copy('gitignore', '.gitignore');
this.copy('gitattributes', '.gitattributes');
};

AppGenerator.prototype.bower = function bower() {
this.copy('bowerrc', '.bowerrc');
this.template('_bower.json', 'bower.json');
};

AppGenerator.prototype.jshint = function jshint() {
this.copy('jshintrc', '.jshintrc');
};

AppGenerator.prototype.editorConfig = function editorConfig() {
this.copy('editorconfig', '.editorconfig');
};

// AppGenerator.prototype.h5bp = function h5bp() {
// // this.copy('favicon.ico', 'app/favicon.ico');
// // this.copy('404.html', 'pages/404.html');
// // this.copy('robots.txt', 'pages/robots.txt');
// // this.copy('htaccess', 'pages/.htaccess');
// };

AppGenerator.prototype.app = function app() {
this.copy('helpers.js');
this.copy('Gemfile');
this.copy('system.json', '.system.json');
this.template('_config.json', 'config.json');

this.mkdir('images');
this.directory('sass');
this.directory('pages');

this.template('index.html', 'templates/index.html');
this.template('main.js', 'js/main.js');
};
@@ -0,0 +1,157 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Not Found :(</title>
<style>
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
html {
padding: 30px 10px;
font-size: 20px;
line-height: 1.4;
color: #737373;
background: #f0f0f0;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html,
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
max-width: 500px;
_width: 500px;
padding: 30px 20px 50px;
border: 1px solid #b3b3b3;
border-radius: 4px;
margin: 0 auto;
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
background: #fcfcfc;
}
h1 {
margin: 0 10px;
font-size: 50px;
text-align: center;
}
h1 span {
color: #bbb;
}
h3 {
margin: 1.5em 0 0.5em;
}
p {
margin: 1em 0;
}
ul {
padding: 0 0 0 40px;
margin: 1em 0;
}
.container {
max-width: 380px;
_width: 380px;
margin: 0 auto;
}
/* google search */
#goog-fixurl ul {
list-style: none;
padding: 0;
margin: 0;
}
#goog-fixurl form {
margin: 0;
}
#goog-wm-qt,
#goog-wm-sb {
border: 1px solid #bbb;
font-size: 16px;
line-height: normal;
vertical-align: top;
color: #444;
border-radius: 2px;
}
#goog-wm-qt {
width: 220px;
height: 20px;
padding: 5px;
margin: 5px 10px 0 0;
box-shadow: inset 0 1px 1px #ccc;
}
#goog-wm-sb {
display: inline-block;
height: 32px;
padding: 0 10px;
margin: 5px 0 0;
white-space: nowrap;
cursor: pointer;
background-color: #f5f5f5;
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
*overflow: visible;
*display: inline;
*zoom: 1;
}
#goog-wm-sb:hover,
#goog-wm-sb:focus {
border-color: #aaa;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
background-color: #f8f8f8;
}
#goog-wm-qt:hover,
#goog-wm-qt:focus {
border-color: #105cb6;
outline: 0;
color: #222;
}
input::-moz-focus-inner {
padding: 0;
border: 0;
}
</style>
</head>
<body>
<div class="container">
<h1>Not found <span>:(</span></h1>
<p>Sorry, but the page you were trying to view does not exist.</p>
<p>It looks like this was the result of either:</p>
<ul>
<li>a mistyped address</li>
<li>an out-of-date link</li>
</ul>
<script>
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
</script>
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
</div>
</body>
</html>
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gem 'toolkit', '~>1.0.0'
gem 'sassy-buttons', '~>0.1.4'
gem 'modular-scale', '~>1.0.6'
gem 'compass-normalize', '~>1.4.3'
gem 'css_parser', '~>1.3.4'
Oops, something went wrong.

0 comments on commit 928636e

Please sign in to comment.