Skip to content

Commit

Permalink
Probably a good idea to include the new directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed May 17, 2015
1 parent 420aac0 commit d314beb
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 0 deletions.
32 changes: 32 additions & 0 deletions generators/boilerplate/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
'use strict';

var generators = require('yeoman-generator');

module.exports = generators.Base.extend({
configuring: function() {
this.fs.copy(
this.templatePath('editorconfig'),
this.destinationPath('.editorconfig')
);

this.fs.copy(
this.templatePath('gitattributes'),
this.destinationPath('.gitattributes')
);

this.fs.copy(
this.templatePath('gitignore'),
this.destinationPath('.gitignore')
);

this.fs.copy(
this.templatePath('jscsrc'),
this.destinationPath('.jscsrc')
);

this.fs.copy(
this.templatePath('jshintrc'),
this.destinationPath('.jshintrc')
);
}
});
12 changes: 12 additions & 0 deletions generators/boilerplate/templates/editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions generators/boilerplate/templates/gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
70 changes: 70 additions & 0 deletions generators/boilerplate/templates/gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# .gitignore for jekyllized projects

# Ignore hidden folders
# This takes care of .tmp, .sass-cache, and many others
.*/

# OSX
._*
.AppleDouble
.DS_Store
.localized
.LSOverride
.Spotlight-V100
.Trashes
Icon

# Windows
Desktop.ini
ehthumbs.db
Thumbs.db

# Linux
*~

# Tags
# Ignore tags created by etags and ctags
TAGS
tags

# Always-ignore files and folders #
*.diff
*.err
*.log
*.orig
*.rej
*.swn
*.swo
*.swp
._*
*~

# Ignore packages #
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Packages
node_modules/*
.tmp
test/

# Sublime
*.sublime-project
*.sublime-workspace
*.sublime-projectcompletions

app/_bower_components

# Output folders
serve
site

# hide the AWS and Rsync credentials file
aws-credentials.json
rsync-credentials.json
3 changes: 3 additions & 0 deletions generators/boilerplate/templates/jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"preset": "google"
}
18 changes: 18 additions & 0 deletions generators/boilerplate/templates/jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": false,
"curly": false,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "double",
"undef": true,
"strict": false,
"trailing": true,
"smarttabs": true
}

0 comments on commit d314beb

Please sign in to comment.