First development of the deploy action (#6)
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Deploy js code to an instance of screeps. Some debugging tools are implemented. Reviewed-on: #6 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
3
node_modules/simple-concat/.travis.yml
generated
vendored
Normal file
3
node_modules/simple-concat/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- lts/*
|
20
node_modules/simple-concat/LICENSE
generated
vendored
Normal file
20
node_modules/simple-concat/LICENSE
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Feross Aboukhadijeh
|
||||
|
||||
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.
|
44
node_modules/simple-concat/README.md
generated
vendored
Normal file
44
node_modules/simple-concat/README.md
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# simple-concat [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
|
||||
|
||||
[travis-image]: https://img.shields.io/travis/feross/simple-concat/master.svg
|
||||
[travis-url]: https://travis-ci.org/feross/simple-concat
|
||||
[npm-image]: https://img.shields.io/npm/v/simple-concat.svg
|
||||
[npm-url]: https://npmjs.org/package/simple-concat
|
||||
[downloads-image]: https://img.shields.io/npm/dm/simple-concat.svg
|
||||
[downloads-url]: https://npmjs.org/package/simple-concat
|
||||
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
|
||||
[standard-url]: https://standardjs.com
|
||||
|
||||
### Super-minimalist version of [`concat-stream`](https://github.com/maxogden/concat-stream). Less than 15 lines!
|
||||
|
||||
## install
|
||||
|
||||
```
|
||||
npm install simple-concat
|
||||
```
|
||||
|
||||
## usage
|
||||
|
||||
This example is longer than the implementation.
|
||||
|
||||
```js
|
||||
var s = new stream.PassThrough()
|
||||
concat(s, function (err, buf) {
|
||||
if (err) throw err
|
||||
console.error(buf)
|
||||
})
|
||||
s.write('abc')
|
||||
setTimeout(function () {
|
||||
s.write('123')
|
||||
}, 10)
|
||||
setTimeout(function () {
|
||||
s.write('456')
|
||||
}, 20)
|
||||
setTimeout(function () {
|
||||
s.end('789')
|
||||
}, 30)
|
||||
```
|
||||
|
||||
## license
|
||||
|
||||
MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).
|
15
node_modules/simple-concat/index.js
generated
vendored
Normal file
15
node_modules/simple-concat/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/*! simple-concat. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
module.exports = function (stream, cb) {
|
||||
var chunks = []
|
||||
stream.on('data', function (chunk) {
|
||||
chunks.push(chunk)
|
||||
})
|
||||
stream.once('end', function () {
|
||||
if (cb) cb(null, Buffer.concat(chunks))
|
||||
cb = null
|
||||
})
|
||||
stream.once('error', function (err) {
|
||||
if (cb) cb(err)
|
||||
cb = null
|
||||
})
|
||||
}
|
47
node_modules/simple-concat/package.json
generated
vendored
Normal file
47
node_modules/simple-concat/package.json
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "simple-concat",
|
||||
"description": "Super-minimalist version of `concat-stream`. Less than 15 lines!",
|
||||
"version": "1.0.1",
|
||||
"author": {
|
||||
"name": "Feross Aboukhadijeh",
|
||||
"email": "feross@feross.org",
|
||||
"url": "https://feross.org"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/feross/simple-concat/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"standard": "*",
|
||||
"tape": "^5.0.1"
|
||||
},
|
||||
"homepage": "https://github.com/feross/simple-concat",
|
||||
"keywords": [
|
||||
"concat",
|
||||
"concat-stream",
|
||||
"concat stream"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/feross/simple-concat.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tape test/*.js"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
]
|
||||
}
|
41
node_modules/simple-concat/test/basic.js
generated
vendored
Normal file
41
node_modules/simple-concat/test/basic.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
var concat = require('../')
|
||||
var stream = require('stream')
|
||||
var test = require('tape')
|
||||
|
||||
test('basic', function (t) {
|
||||
t.plan(2)
|
||||
var s = new stream.PassThrough()
|
||||
concat(s, function (err, buf) {
|
||||
t.error(err)
|
||||
t.deepEqual(buf, Buffer.from('abc123456789'))
|
||||
})
|
||||
s.write('abc')
|
||||
setTimeout(function () {
|
||||
s.write('123')
|
||||
}, 10)
|
||||
setTimeout(function () {
|
||||
s.write('456')
|
||||
}, 20)
|
||||
setTimeout(function () {
|
||||
s.end('789')
|
||||
}, 30)
|
||||
})
|
||||
|
||||
test('error', function (t) {
|
||||
t.plan(2)
|
||||
var s = new stream.PassThrough()
|
||||
concat(s, function (err, buf) {
|
||||
t.ok(err, 'got expected error')
|
||||
t.ok(!buf)
|
||||
})
|
||||
s.write('abc')
|
||||
setTimeout(function () {
|
||||
s.write('123')
|
||||
}, 10)
|
||||
setTimeout(function () {
|
||||
s.write('456')
|
||||
}, 20)
|
||||
setTimeout(function () {
|
||||
s.emit('error', new Error('error'))
|
||||
}, 30)
|
||||
})
|
Reference in New Issue
Block a user