Skip to content

Commit cfae144

Browse files
committed
Merge remote-tracking branch 'boilerplate/master' into t/12721
Conflicts: .gitattributes .gitignore CHANGES.md README.md gruntfile.js package.json
2 parents 6f4c290 + 2108275 commit cfae144

File tree

14 files changed

+284
-39
lines changed

14 files changed

+284
-39
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Configurations to normalize the IDE behavior.
2+
# http://editorconfig.org/
3+
4+
root = true
5+
6+
[*]
7+
indent_style = tab
8+
tab_width = 4
9+
charset = utf-8
10+
end_of_line = lf
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.gitattributes

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
* text=auto
22

3+
*.htaccess eol=lf
34
*.cgi eol=lf
5+
*.sh eol=lf
6+
47
*.css text
5-
*.htaccess eol=lf
68
*.htm text
79
*.html text
810
*.js text
11+
*.json text
912
*.php text
10-
*.sh eol=lf
1113
*.txt text
14+
*.md text
1215

1316
*.png -text
1417
*.gif -text

.gitignore

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
node_modules
2-
.bender/*
3-
bender-*.log
1+
# These files will be ignored by Git and by our linting tools:
2+
# grunt jshint
3+
# grunt jscs
4+
#
5+
# Be sure to append /** to folders to have everything inside them ignored.
6+
7+
# All "dot directoties".
8+
.*/**
9+
10+
node_modules/**
11+
build/**
12+
13+
dev/builder/release/**
14+
dev/builder/ckbuilder/**
15+
dev/langtool/po/**
16+
dev/langtool/cklangtool/**
17+
18+
bender-*.log

.jshintignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

dev/builder/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

dev/langtool/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

dev/tasks/githooks.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* jshint node: true */
2+
3+
'use strict';
4+
5+
module.exports = function( grunt ) {
6+
grunt.config.merge( {
7+
githooks: {
8+
all: {
9+
'pre-commit': 'default'
10+
}
11+
}
12+
} );
13+
14+
grunt.loadNpmTasks( 'grunt-githooks' );
15+
};

.jscsrc renamed to dev/tasks/jscs-config.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
{
2-
"excludeFiles": [
3-
".bender/*",
4-
"dev/builder/release/*",
5-
"lang/*",
6-
"node_modules/*",
7-
"plugins/*/lib/*",
8-
"plugins/**/lang/*",
9-
"plugins/uicolor/yui/*",
10-
"plugins/htmlwriter/samples/assets/outputforflash/*",
11-
"tests/adapters/jquery/_assets/*",
12-
"tests/core/dom/_assets/*",
13-
"tests/core/selection/_helpers/rangy.js",
14-
"tests/plugins/mathjax/_assets/truncated-mathjax/*"
15-
],
162
"requireCurlyBraces": [
173
"switch", "try", "catch"
184
],
@@ -64,4 +50,4 @@
6450
"escape": true
6551
},
6652
"validateIndentation": "\t"
67-
}
53+
}

dev/tasks/jscs.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* jshint node: true */
2+
3+
'use strict';
4+
5+
var tools = require( './utils/tools' );
6+
7+
module.exports = function( grunt ) {
8+
tools.setupMultitaskConfig( grunt, {
9+
task: 'jscs',
10+
defaultOptions: grunt.file.readJSON( 'dev/tasks/jscs-config.json' ),
11+
addGitIgnore: 'excludeFiles',
12+
targets: {
13+
all: function() {
14+
return [ '**/*.js' ];
15+
},
16+
17+
git: function() {
18+
return tools.getGitDirtyFiles().filter( function( file ) {
19+
return ( /\.js$/ ).test( file );
20+
} );
21+
}
22+
}
23+
} );
24+
25+
grunt.loadNpmTasks( 'grunt-jscs' );
26+
};
File renamed without changes.

0 commit comments

Comments
 (0)