jlaamanen / signally Goto Github PK
View Code? Open in Web Editor NEWLicense: ISC License
License: ISC License
After implementing unit tests #1, add automatic test running with Travis CI.
Scenario:
signally
for updating the log levelx
uses the logging library abovex
also uses signally
for updating some configurationsx
and the logging library both use events with the same name, unwanted effects may appearPossible fix:
.buffer
CLI should indicate when an event is not listened to by the target process. This could be implemented e.g. by creating a directory for each listened-to event name under .buffer
. Instead of a verbose object, each file would only include the messages as a JSON array.
If an event is not listened to (i.e. directory .buffer/[event name]
does not exist), there should be an error, e.g.:
Event [event name] is not listened to
Add unit tests
When started in Docker, events sent with CLI fail in parsing from JSON:
Error when handling event 1: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.readJsonFile (/app/node_modules/signally/dist/utils.js:26:17)
at FSWatcher.<anonymous> (/app/node_modules/signally/dist/listener.js:28:34)
at emitTwo (events.js:126:13)
at FSWatcher.emit (events.js:214:7)
at FSEvent.FSWatcher._handle.onchange (fs.js:1364:12)
Manually entering events to .signally
inside the container is working fine:
echo '{"event": "hello", "messages": ["Hei"]}' > .signally/1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.