diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e717f5e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccd148f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules +.idea +npm-debug.log diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..804f8af --- /dev/null +++ b/.jshintrc @@ -0,0 +1,13 @@ +{ + "node": true, + "esnext": true, + "bitwise": true, + "camelcase": true, + "curly": true, + "immed": true, + "newcap": true, + "noarg": true, + "undef": true, + "unused": "vars", + "strict": true +} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..140ec0c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - '0.11' + - '0.10' diff --git a/cli.js b/cli.js new file mode 100644 index 0000000..01756be --- /dev/null +++ b/cli.js @@ -0,0 +1,32 @@ +#!/usr/bin/env node +'use strict'; + +var pkg = require('./package.json'); +var apnTest = require('./'); +var argv = process.argv.slice(2); + +function help() { + console.log([ + '', + ' ' + pkg.description, + '', + ' Example', + ' apn ', + '' + ].join('\n')); +} + +if (argv.indexOf('--help') !== -1) { + help(); + return; +} + +if (argv.indexOf('--version') !== -1) { + console.log(pkg.version); + return; +} + + +apnTest(argv[0], function(){ + +}); diff --git a/index.js b/index.js new file mode 100644 index 0000000..d583cbf --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(){ + +}; diff --git a/license b/license new file mode 100644 index 0000000..0bf311f --- /dev/null +++ b/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Matias Singers (http://mts.io) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/package.json b/package.json new file mode 100644 index 0000000..39b0faa --- /dev/null +++ b/package.json @@ -0,0 +1,33 @@ +{ + "name": "apn-test", + "version": "0.1.0", + "description": "easily test push notifications with this CLI", + "main": "index.js", + "scripts": { + "test": "mocha" + }, + "engines": { + "node": ">=0.10.0" + }, + "bin": { + "apn": "cli.js" + }, + "files": [ + "index.js", + "cli.js" + ], + "repository": { + "type": "git", + "url": "https://github.com/matiassingers/apn-test" + }, + "author": "Matias Singers (http://mts.io)", + "license": "MIT", + "bugs": { + "url": "https://github.com/matiassingers/apn-test/issues" + }, + "homepage": "https://github.com/matiassingers/apn-test", + "dependencies": {}, + "devDependencies": { + "mocha": "*" + } +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..5e66ff3 --- /dev/null +++ b/readme.md @@ -0,0 +1,38 @@ +# apn-test [![Build Status](http://img.shields.io/travis/matiassingers/apn-test.svg?style=flat-square)](https://travis-ci.org/matiassingers/apn-test) [![Dependency Status](http://img.shields.io/gemnasium/matiassingers/apn-test.svg?style=flat-square)](https://gemnasium.com/matiassingers/apn-test) +> easily test push notifications with this CLI + +## Install + +```sh +$ npm install --save apn-test +``` + + +## Usage + +```js +var apnTest = require('apn-test'); + +apnTest() + +``` + + +## CLI + +```sh +$ npm install --global apn-test +``` + +```sh +$ apn --help + + Example + apn + +``` + + +## License + +MIT © [Matias Singers](http://mts.io) diff --git a/test.js b/test.js new file mode 100644 index 0000000..9e75d2f --- /dev/null +++ b/test.js @@ -0,0 +1,10 @@ +'use strict'; + +var assert = require('assert'); +var apnTest = require('./'); + +describe('initial', function(){ + it('fail', function() { + assert(false); + }); +});