From 27d70c535c98861d1f62dd4432eedfb51e4f4eb7 Mon Sep 17 00:00:00 2001 From: queicherius Date: Wed, 3 Feb 2016 16:57:53 +0100 Subject: [PATCH] Initial import --- .babelrc | 3 +++ .gitignore | 4 ++++ .istanbul.yml | 3 +++ .travis.yml | 7 +++++++ LICENCE | 21 +++++++++++++++++++++ README.md | 37 +++++++++++++++++++++++++++++++++++++ package.json | 31 +++++++++++++++++++++++++++++++ 7 files changed, 106 insertions(+) create mode 100644 .babelrc create mode 100644 .gitignore create mode 100644 .istanbul.yml create mode 100644 .travis.yml create mode 100644 LICENCE create mode 100644 README.md create mode 100644 package.json diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..4f269b5 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015", "stage-0", "stage-3"] +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..146952c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +coverage/ +node_modules/ +.idea/ +build/ \ No newline at end of file diff --git a/.istanbul.yml b/.istanbul.yml new file mode 100644 index 0000000..96a41ed --- /dev/null +++ b/.istanbul.yml @@ -0,0 +1,3 @@ +instrumentation: + root: src/ + excludes: ['./node_modules/.bin/*'] \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..51c2a29 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - "5" +after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" +branches: + only: + - master \ No newline at end of file diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..d2e1074 --- /dev/null +++ b/LICENCE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 queicherius (David Reeß) + +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/README.md b/README.md new file mode 100644 index 0000000..ec15023 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# gw2api-scraping + +[![Travis](https://img.shields.io/travis/gw2efficiency/gw2api-scraping.svg?style=flat-square)](https://travis-ci.org/gw2efficiency/gw2api-scraping) +[![Coveralls](https://img.shields.io/coveralls/gw2efficiency/gw2api-scraping/master.svg?style=flat-square)](https://coveralls.io/github/gw2efficiency/gw2api-scraping?branch=master) + +> Scraping unofficial sites for information the API can't provide. + +**:bomb: NOTE: This module is still heavily in development. Please don't use it yet.** + +## Install + +``` +npm install https://github.com/gw2efficiency/gw2api-scraping +``` + +This module can be used for Node.js as well as browsers using [Browserify](https://github.com/substack/browserify-handbook#how-node_modules-works). If you +run it in browsers, not all methods are available due to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS). + +(Note: Babel gets pulled in as a dependency, because the module is written in ES7 and +gets compiled into ES5 during the installation. The Babel code is **not** included in the module, +don't be shocked at the dependency tree. :wink:) + +## Usage + +```js + +``` + +## Tests + +``` +npm test +``` + +## Licence + +MIT diff --git a/package.json b/package.json new file mode 100644 index 0000000..4508667 --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "gw2-api.com", + "version": "1.0.0", + "description": "Scraping unofficial sites for information the API can't provide.", + "main": "./build/server.js", + "scripts": { + "build": "./node_modules/.bin/babel src/ -d build/", + "test": "./node_modules/babel-cli/bin/babel-node.js ./node_modules/.bin/isparta cover --include-all-sources ./node_modules/.bin/_mocha -- tests/ --recursive && node node_modules/snazzy/bin/cmd.js" + }, + "author": "queicherius@gmail.com", + "license": "MIT", + "dependencies": { + "requester": "git+https://github.com/gw2efficiency/requester.git", + "babel-cli": "^6.4.5", + "babel-preset-es2015": "^6.3.13", + "babel-preset-stage-0": "^6.3.13", + "babel-preset-stage-3": "^6.3.13" + }, + "devDependencies": { + "babel-eslint": "^4.1.6", + "chai": "^3.5.0", + "coveralls": "^2.11.6", + "isparta": "^4.0.0", + "mocha": "^2.4.5", + "rewire": "^2.5.1", + "snazzy": "^2.0.1" + }, + "standard": { + "parser": "babel-eslint" + } +}