diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..744af36 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,31 @@ +{ + "bitwise": true, + "browser": true, + "curly": true, + "devel": true, + "eqeqeq": true, + "eqnull": true, + "evil": true, + "forin": true, + "globals": { + "alert": false, + "beforeEach": false, + "console": false, + "describe": false, + "expect": false, + "it": false, + "jasmine": false, + "runs": false, + "spyOn": false, + "waits": false, + "waitsFor": false + }, + "indent": 4, + "jquery": true, + "newcap": true, + "node": true, + "strict": true, + "sub": true, + "trailing": true, + "undef": true +} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..fbf6a10 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 5.1 diff --git a/README.md b/README.md index bd42efc..095c836 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#JavaScript Patterns +#JavaScript Patterns [![Build Status](https://travis-ci.org/mrmarktyy/javascript-patterns.svg?branch=master)](https://travis-ci.org/mrmarktyy/javascript-patterns) JS Patterns
diff --git a/hello.js b/hello.js new file mode 100644 index 0000000..85bbeac --- /dev/null +++ b/hello.js @@ -0,0 +1,10 @@ +'use strict'; + +var http = require('http'); +http.createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end('Hello Travis!\n'); // build should pass now! +}).listen(1337, '127.0.0.1'); + +console.log('Server running at http://127.0.0.1:1337/'); + diff --git a/package.json b/package.json new file mode 100644 index 0000000..40f9a82 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "javascript-patterns", + "version": "1.0.0", + "description": "\"JS
Project page at: http://shichuan.github.com/javascript-patterns", + "main": "hello.js", + "scripts": { + "test": "./node_modules/jshint/bin/jshint hello.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/mrmarktyy/javascript-patterns.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/mrmarktyy/javascript-patterns/issues" + }, + "homepage": "https://github.com/mrmarktyy/javascript-patterns#readme", + "dependencies": { + "jshint": "^2.9.2" + } +}