- Documentation
- Improve
- Grammar
- Tutorials
- Answering questions on StackOverflow and the mailinglist
- Triaging bugs
- Fixing issues in the tracker
- Meta bug of tasks that needs to be done: yeoman/yeoman#997
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
var falafel = require('falafel'); | |
var src = 'test();'; | |
var output = falafel(src, function (node) { | |
if (node.type === 'CallExpression') { | |
var parent = node.parent; | |
var funcName = node.callee.name; | |
parent.update('console.time(\'' + funcName + '()\');' + parent.source() + 'console.timeEnd(\'' + funcName + '()\');'); | |
} |
- plugins should only do one thing and do them well. Your task shouldn't concat files that's why we have grunt-contrib-concat. Your task shouldn't minify CSS, that's what eg. grunt-csso is for.
- don't bloat with uneeded options. pick sane defaults.
- should be fully tested (this should be enforced! we really don't want people using untested plugins).
- search the plugin list before creating one. what you want to create is probably already created and all you're doing is making it harder for users to find one.
- don't use the prototyped colors properties like, ''.green. This will be deprecated in the future. Use a sane coloring lib like chalk instead.
- readme:
- should have a good intro
- travis badge
- have examples
- describe all options with types and defaults
-
Yeoman will continue to offer a single catch-all command for our workflow (including building with Grunt and package management with Bower)
-
We will make it very explicit about the tools we use and ensure it's easy for developers to find documentation/support for them (e.g from homepage)
-
We will also do our best to implement Yeoman as an even thinner wrapper around these tools, so moving to using Grunt alone is next to no effort
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
//<editor-fold desc="Node Requires, gulp, etc"> | |
var gulp = require('gulp'), | |
autoprefixer = require('gulp-autoprefixer'), | |
clean = require('gulp-clean'), | |
concat = require('gulp-concat'), | |
csso = require('gulp-csso'), | |
debug = require('gulp-debug'), | |
footer = require('gulp-footer'), | |
gutil = require('gulp-util'), | |
gzip = require('gulp-gzip'), |
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
@echo off | |
:: requires US locale system setting | |
set dbUser=root | |
set dbPassword=<your-password> | |
set backupDir="C:\Documents and Settings\username\Desktop\backup\mysql" | |
set mysqldump="C:\Program Files\MySQL\MySQL Workbench 5.2 CE\mysqldump.exe" | |
set mysqlDataDir="C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.1\data" | |
set zip="C:\Program Files\7-Zip\7z.exe" |
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
$.fn.random = function() { | |
var rand = Math.floor( Math.random() * this.length + 1 ); | |
return this[rand]; | |
}; |
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
$.fn.hoverClassLive = function(str) { | |
var klass = str || 'hover'; | |
return this.live('hover', function() { | |
$(this).toggleClass(klass); | |
}); | |
}; |
My recommended JSHint options
JavaScript:
{
node: true,
browser: true,
es5: true,
esnext: true,