Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all Nodestream things to a monorepo 馃帀
- Loading branch information
0 parents
commit 23b028d
Showing
87 changed files
with
5,085 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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 | ||
max_line_length = 100 | ||
|
||
[{Makefile,**.mk}] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/node_modules | ||
**/coverage | ||
**/docs | ||
coverage | ||
docs | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Nodestream | ||
* | ||
* @author Robert Rossmann <robert.rossmann@me.com> | ||
* @copyright 2016 Robert Rossmann | ||
* @license BSD-3-Clause | ||
*/ | ||
|
||
'use strict' | ||
|
||
module.exports = { | ||
|
||
extends: [ | ||
'@strv/javascript/environments/nodejs/v6', | ||
'@strv/javascript/environments/nodejs/optional', | ||
'@strv/javascript/coding-styles/recommended', | ||
], | ||
|
||
rules: { | ||
// Node.js 4 does not support spread | ||
'prefer-spread': 0, | ||
// If your editor cannot show these to you, occasionally turn this off and run the linter | ||
'no-warning-comments': 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Contributing guidelines | ||
|
||
First of all, thanks for your past, current and/or future contribution to this project! Here are some things to keep in mind when sending pull requests for review. | ||
|
||
## Issues | ||
|
||
Please include the following in your bug/issue description: | ||
|
||
- Versions of all nodestream components used (nodestream, used adapter, used transforms) | ||
- Which adapter you use | ||
- Which transform plugins you use and in what order and configuration | ||
|
||
If your issue is not a bug report, feel free to not include the information described above and simply ask a question/suggestion/other. 馃榾 | ||
|
||
## Pull Requests | ||
|
||
### Make sure it works | ||
|
||
`make test` | ||
|
||
- When forking the project, make sure tests pass | ||
- When working on a new feature/bugfix/other change, include test(s) which verify your functionality | ||
- Before sending pull request, make sure tests still pass | ||
|
||
If you are about to open a pull request which does not yet have all tests passing, state this in the pull request's description and include a brief note about what is needed to get it working (Perhaps you need help? Or the feature will require much more work?). | ||
|
||
### Make sure static code checker is happy | ||
|
||
`make lint` | ||
|
||
- Always adhere to the rules set forth by the static code checker/linter | ||
- Try to write code in a similar style which is used throughout the project | ||
|
||
### Don't forget to update documentation | ||
|
||
Good code is only 50% of the job! Good documentation is a requirement for any successful project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Dependencies | ||
node_modules | ||
**/node_modules | ||
**/coverage | ||
**/docs | ||
|
||
# This allows local overrides of Make configuration without worrying about accidentally commiting | ||
# them with other changes | ||
local.mk | ||
|
||
# Garbage | ||
*.log | ||
*~ | ||
*# | ||
.DS_STORE | ||
.netbeans | ||
nbproject | ||
.idea | ||
.node_history | ||
*.sublime-* | ||
*.atom-* | ||
.tern-project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '5' | ||
- '6' | ||
- '7' | ||
cache: | ||
directories: | ||
- node_modules | ||
before_install: | ||
- npm i -g npm@$(node -p "require('./package').engines.npm") | ||
script: | ||
- make lint | ||
- make test | ||
after_success: | ||
- make coveralls | ||
- '[[ -n "$TRAVIS_TAG" ]] && make gh-pages' | ||
before_deploy: | ||
- rm -r media | ||
deploy: | ||
provider: npm | ||
email: rr.rossmann@gmail.com | ||
api_key: | ||
secure: ab6KQPc/4ASdXOkbIu0A1Eg9dJrTZsVUt/tK3NK8478f/hhxJAxC4DGkZuDVzAtvncSIUMgAzaE9/8l2ccLYGkLxT4dqtV2l0fyb31cpDL6Wziuv7jAQPwHDcuQkuK9le4wI8KHI0ClSrt9LADvlsWT/qssW9LDauqkuQn5PMkCNzkRVDyv7ua7OPjC8KtD1HMYMMZQ31olnFBtaR7a1PpUhCxj1JkaoP5fl5jE2EKFo85Gq6oi0q4UmXmrZyQ69K/5Vo57XcbiIv5t4qohcgOsDwZSW9XMb6H66hjbERmERMshsTS/fvAuyUSUncaD5d0DHfUzgXY+pxev/RYQ8E2AsuhovPnJAtqpuqao9Vy8isZQ3Go52f7M0jsg6+wY14b9/ApWT17n6mN789td/LdLJCTeOwh7rv1Hfc1qSmPULksxHk07SFAKq6EC+3JfHTPX9dghpfT3UhdBqCOr1Fl1wZ40DbI/bXaram0JLn+O1QL11hQQ3Dfzwae+ljj8cMpeUo1RHfWQuGI8U4lm2Ost5PPfUC+m78r/UlqpcASQ+MTNbxXNw2VW6C1ODqjtf+XOp5q1mKsU+xB3DcKZz60g5McyP8y8Z2d1t7gMk9kkBTb89lFzJqwnw+/0IC+ZcTGR2Qkm3MZ2Rcs/hSh6+aea54T/JUG0C1dTfY5Y3HYs= | ||
on: | ||
tags: true | ||
repo: nodestream/nodestream | ||
node: '7' | ||
env: | ||
global: | ||
secure: t5gKDADYofYJYvaGmGgTpssh9Zvb0P0exSceKx9CaYEYtlFbdKUNhGZ9kHoBdrriJSM9yN9w5BUO6OQ0IVMFYkMYyw0zFj/OKuBoijGv2QhWDpoejjCaeZCJHJERDWl4UUzr9SnP49AVtfGuRv9LdwxcmquhBpnfYZnSf9NOwRQ5PuprVm34lxFF+qQAo9JW1IgtNn7cEqdbm8C7oC/OLDGJgDr0VBHiz5Qhaz7Rz63BcJA8rCTvqLmPgWssNF6dznsShnazAywxw2b4d2+FZ+wJL+wyRphceZOpV6DFovWVGnw56nyEuDnJI/5QfT0nHB0yL3Ljgz6iwgsQDu2TeRKmclgvLt56/xEzn6Y1ZgfLbXVrmcxZjGCTUd58inkXEBRIJM3Khk/E2sSUx6RHrFuCVTqOjHseqt/dazKBE6RJ4FhXh/AJSjspoSzXA/wlXRh5nrqSNvLbvPM0fzVjoz8JJ/PwXaRGivdbtOQnpOT7JsAl5zLrbIAYuPm0X7kPGgW88ctzqNI5QXURPb1mSpk9K1tTUVLJNCYyWhKz5POq57Rza12Pt7SFnIcWDpYArVqb8lA45Akb4uv9M1udBtHjyu8hEMJZVHZVe3Np7QKOXo9vFcIQ8cAryu7SUd+6H1ZtmzeNvo3j77SwOY3YbHxQVRgPdn/Wt07xQNFc4ho= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2016, Robert Rossmann | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of Nodestream nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
bin = node_modules/.bin/ | ||
pkgs = packages | ||
|
||
test-adapters = filesystem-test gcs-test gridfs-test s3-test | ||
test-transforms = transform-checksum-test transform-compress-test transform-progress-test | ||
test-deps = nodestream-test $(test-adapters) $(test-transforms) | ||
|
||
# Put this into your local.mk to add extra flags for Mocha | ||
# test-glags = --inspect | ||
|
||
install: node_modules | ||
$(bin)lerna bootstrap | ||
|
||
node_modules: package.json | ||
npm install | ||
|
||
lint: | ||
$(bin)eslint $(pkgs) | ||
|
||
test: $(test-deps) | ||
|
||
nodestream-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream/test | ||
|
||
filesystem-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-filesystem/test | ||
|
||
gcs-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-gcs/test | ||
|
||
gridfs-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-gridfs/test | ||
|
||
s3-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-s3/test | ||
|
||
transform-checksum-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-transform-checksum/test | ||
|
||
transform-compress-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-transform-compress/test | ||
|
||
transform-progress-test: | ||
$(bin)mocha --opts mocha.opts $(test-flags) $(pkgs)/nodestream-transform-progress/test | ||
|
||
# This file allows local Make target customisations without having to worry about them being | ||
# accidentally commited to this file. local.mk is in gitignore. If this file does not exist, make | ||
# Make not to panic. | ||
-include local.mk |
Oops, something went wrong.