Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
add jshint, travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ikokostya committed Jul 4, 2013
1 parent 468dc08 commit a73afd7
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions .jshintrc
@@ -0,0 +1,4 @@
{
"expr": true,
"boss": true
}
4 changes: 4 additions & 0 deletions .travis.yml
@@ -0,0 +1,4 @@
language: node_js
node_js:
- 0.10

This comment has been minimized.

Copy link
@mdevils

mdevils Jul 4, 2013

Contributor

"0.10"
"0.8"

- 0.8
6 changes: 6 additions & 0 deletions Makefile
@@ -0,0 +1,6 @@
NPM_BIN=./node_modules/.bin

lint:
@$(NPM_BIN)/jshint modules.js

.PHONY: lint
2 changes: 1 addition & 1 deletion modules.js
Expand Up @@ -280,7 +280,7 @@ var DECL_STATES = {
}

if(isPostMessageAsync) {
var msg = '__modules' + +new Date,
var msg = '__modules' + (+new Date()),
onMessage = function(e) {
if(e.data === msg) {
e.stopPropagation && e.stopPropagation();
Expand Down
8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -14,5 +14,11 @@
"url" : "https://github.com/ymaps/modules.git"
},
"main" : "modules",
"engines" : { "node" : ">= 0.4.0" }
"engines" : { "node" : ">= 0.4.0" },
"devDependencies": {
"jshint" : "2.1.x"
},
"scripts" : {
"test" : "make lint"
}
}

0 comments on commit a73afd7

Please sign in to comment.