Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Sep 3, 2014
1 parent a305020 commit 7df5a2c
Show file tree
Hide file tree
Showing 17 changed files with 1,231 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
bower_components/
nohup.out
*.iml
.idea/
.ipr
.iws
*~
~*
*.diff
*.log
*.patch
*.bak
.DS_Store
Thumbs.db
.project
.*proj
.svn/
*.swp
out/
node_modules/
25 changes: 25 additions & 0 deletions .jscs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"disallowLeftStickedOperators": [ "?", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
"disallowRightStickedOperators": [ "?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireRightStickedOperators": [ "!" ],
"requireLeftStickedOperators": [ "," ],
"disallowKeywords": [ "with" ],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"safeContextKeyword": "self",
"excludeFiles": ["**/*-tpl.js", "**/*-xtpl.js", "**/parser.js", "**/parser.js","**/modules.js"]
}
27 changes: 27 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"requireSpaceBeforeBinaryOperators": ["-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
"requireSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": true,
"afterConsequent": true,
"beforeAlternate": true
},
"requireSpaceAfterBinaryOperators": ["/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowKeywords": [ "with" ],
"disallowSpaceAfterPrefixUnaryOperators": [ "!" , "++", "--", "+", "-", "~"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--", ","],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"safeContextKeyword": "self",
"excludeFiles": ["**/*-tpl.js", "**/*-xtpl.js", "**/parser.js", "**/parser.js", "**/modules.js"]
}
28 changes: 28 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"camelcase": true,
"curly": true,
"eqeqeq": true,
"freeze": true,
"indent": 4,
"latedef": "nofunc",
"quotmark": "single",
"nonew": true,
"newcap": true,
"immed": true,
"noarg": true,
"eqnull": true,
"trailing": true,
"undef": true,
"unused": true,
"browser": true,
"node": true,
"es3": true,
"globals": {
"describe": false,
"expect": false,
"beforeEach": false,
"afterEach": false,
"modulex": false,
"it": false
}
}
21 changes: 21 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
bower_components/
tests/
node_modules/
nohup.out
*.iml
.idea/
.ipr
.iws
*~
~*
*.diff
*.log
*.patch
*.bak
.DS_Store
Thumbs.db
.project
.*proj
.svn/
*.swp
out/
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
notifications:
email:
- yiminghe@gmail.com
node_js:
- 0.1
before_script:
- node server &
- npm install gulp bower mocha-phantomjs -g
- bower install
- phantomjs --version
script:
- npm run-script browser-test
- npm run-script browser-test-build
- npm run-script browser-test-cover
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
ua
==
===========

userAgent detector
ua detector

[![modulex-ua](https://nodei.co/npm/modulex-ua.png)](https://npmjs.org/package/modulex-ua)
[![NPM downloads](http://img.shields.io/npm/dm/modulex-ua.svg)](https://npmjs.org/package/modulex-ua)
[![Build Status](https://secure.travis-ci.org/kissyteam/ua.png?branch=master)](https://travis-ci.org/kissyteam/ua)
[![Coverage Status](https://img.shields.io/coveralls/kissyteam/ua.svg)](https://coveralls.io/r/kissyteam/ua?branch=master)
[![Dependency Status](https://gemnasium.com/kissyteam/ua.png)](https://gemnasium.com/kissyteam/modulex-ua)
[![Bower version](https://badge.fury.io/bo/modulex-ua.svg)](http://badge.fury.io/bo/modulex-ua)

[![browser support](https://ci.testling.com/kissyteam/ua.png)](https://ci.testling.com/kissyteam/ua)
16 changes: 16 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "modulex-ua",
"author": "yiminghe <yiminghe@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "http://github.com/kissyteam/ua.git"
},
"dependencies": {
"modulex": "modulex#master"
},
"ignore": [
"**/*",
"!build/**/*"
]
}
Loading

0 comments on commit 7df5a2c

Please sign in to comment.