-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7674070
Showing
69 changed files
with
6,486 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# For more information about the properties used in | ||
# this file, please see the EditorConfig documentation: | ||
# http://editorconfig.org/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{.travis.yml,package.json}] | ||
# The indent size used in the `package.json` file cannot be changed | ||
# https://github.com/npm/npm/pull/3180#issuecomment-16336516 | ||
indent_size = 2 | ||
indent_style = space |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Automatically normalize line endings for all text-based files | ||
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion | ||
* text=auto | ||
|
||
# For the following file types, normalize line endings to LF on | ||
# checkin and prevent conversion to CRLF when they are checked out | ||
# (this is required in order to prevent newline related issues like, | ||
# for example, after the build script is run) | ||
.* text eol=lf | ||
*.css text eol=lf | ||
*.html text eol=lf | ||
*.js text eol=lf | ||
*.json text eol=lf | ||
*.md text eol=lf | ||
*.sh text eol=lf | ||
*.txt text eol=lf | ||
*.xml text eol=lf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
archive | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"disallowEmptyBlocks": true, | ||
"disallowKeywords": [ | ||
"with" | ||
], | ||
"disallowMixedSpacesAndTabs": true, | ||
"disallowMultipleLineStrings": true, | ||
"disallowMultipleVarDecl": true, | ||
"disallowSpaceAfterPrefixUnaryOperators": [ | ||
"!", | ||
"+", | ||
"++", | ||
"-", | ||
"--", | ||
"~" | ||
], | ||
"disallowSpaceBeforeBinaryOperators": [ | ||
"," | ||
], | ||
"disallowSpaceBeforePostfixUnaryOperators": true, | ||
"disallowSpacesInNamedFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInsideArrayBrackets": true, | ||
"disallowSpacesInsideParentheses": true, | ||
"disallowTrailingComma": true, | ||
"disallowTrailingWhitespace": true, | ||
"requireCamelCaseOrUpperCaseIdentifiers": true, | ||
"requireCapitalizedConstructors": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"requireCurlyBraces": true, | ||
"requireDotNotation": true, | ||
"requireLineFeedAtFileEnd": true, | ||
"requireParenthesesAroundIIFE": true, | ||
"requireSpaceAfterBinaryOperators": true, | ||
"requireSpaceAfterKeywords": [ | ||
"catch", | ||
"do", | ||
"else", | ||
"for", | ||
"if", | ||
"return", | ||
"switch", | ||
"try", | ||
"while" | ||
], | ||
"requireSpaceAfterLineComment": true, | ||
"requireSpaceBeforeBinaryOperators": true, | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInConditionalExpression": true, | ||
"requireSpacesInFunctionDeclaration": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInNamedFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireSpacesInsideObjectBrackets": "allButNested", | ||
"validateIndentation": 4, | ||
"validateLineBreaks": "LF", | ||
"validateParameterSeparator": ", ", | ||
"validateQuoteMarks": "'" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
|
||
// Enforcing options | ||
// http://www.jshint.com/docs/options/#enforcing-options | ||
|
||
"bitwise": true, | ||
"eqeqeq": true, | ||
"forin": true, | ||
"latedef": true, | ||
"noarg": true, | ||
"nonbsp": true, | ||
"nonew": true, | ||
"undef": true, | ||
"unused": true, | ||
|
||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
|
||
// Relaxing options | ||
// http://www.jshint.com/docs/options/#relaxing-options | ||
|
||
"esnext": true, | ||
|
||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
|
||
// Environments | ||
// http://www.jshint.com/docs/options/#environments | ||
|
||
"browser": true, | ||
"jquery": true, | ||
"node": true | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# For more information about the configurations used | ||
# in this file, please see the Travis CI documentation: | ||
# http://docs.travis-ci.com | ||
|
||
after_success: | ||
|
||
# Temporary workaround for: | ||
# https://github.com/travis-ci/travis-ci/issues/929 | ||
|
||
- python travis_after_all.py | ||
- export $(cat .to_export_back) | ||
- | | ||
# If all the tests pass in all the runtimes, make Travis | ||
# automatically download and execute the following script | ||
if [ "$BUILD_LEADER" == "YES" ]; then | ||
if [ "$BUILD_AGGREGATE_STATUS" == "others_succeeded" ]; then \ | ||
# Clean up helper files | ||
rm -rf travis_after_all.py .to_export_back && \ | ||
# The `commit_build_changes.sh` script will run the build, | ||
# and if that generates changes, it will commit them to the | ||
# `master` branch: | ||
# | ||
# * ensuring that the content from the `dist/` directory | ||
# is always in sync with the rest of the content | ||
# | ||
# * removing the need to execute the build step locally | ||
# everytime a change is made (especially in the case | ||
# of trivial changes such as typos) | ||
# | ||
# Note: The `commit_build_changes.sh` script will only run | ||
# if the commit was made to the `master` branch. | ||
curl -sSL "https://raw.githubusercontent.com/h5bp-bot/scripts/0.6.1/commit_build_changes.sh" | | ||
bash -s -- --branch "master" \ | ||
--commands "npm install && npm run build" \ | ||
--commit-message "Update content from the \`dist\` directory [skip ci]"; | ||
fi | ||
fi | ||
env: | ||
global: | ||
|
||
# The `secure` key contains three encrypted environment variables | ||
# (GH_TOKEN, GH_USER_EMAIL and GH_USER_NAME), the values of which | ||
# are used by the scripts that are automatically executed by Travis. | ||
# | ||
# Note: The `secure` key will only work for this repository, so if | ||
# you create your own fork, you will need to generate your own key: | ||
# | ||
# travis encrypt -r "<username>/<repository>" \ | ||
# GH_TOKEN="<your_github_access_token>" \ | ||
# GH_USER_EMAIL="<your_email>" \ | ||
# GH_USER_NAME="<your_name>" | ||
# | ||
# To learn more about how to generate the: | ||
# | ||
# * `secure` key, see: | ||
# http://docs.travis-ci.com/user/encryption-keys/ | ||
# | ||
# * GitHub access token, see: | ||
# https://help.github.com/articles/creating-an-access-token-for-command-line-use/ | ||
|
||
- secure: "mkLhS1ajE7gYNUdHsAfcW6vU9THb2DmPA01PQlXz2y/F3Ld0IwEpqrGGLWyg9ZSYr0g7xq+M46pPiZsfZgCYSLv0flA/RFLmiXcVQfap3BZf8sqTtE3M9AHuy9sxUgus2M9GA7Wupws2KC2PXZM0OT12GSSOCYQCLD3ySD4b4mE=" | ||
|
||
git: | ||
depth: 10 | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "iojs" | ||
- "0.12" | ||
|
||
script: | ||
- curl -sSLo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py | ||
|
||
sudo: false |
Oops, something went wrong.