bitburner-official / bitburner-filesync Goto Github PK
View Code? Open in Web Editor NEWRepo for the official bitburner filesynchronisation package.
License: The Unlicense
Repo for the official bitburner filesynchronisation package.
License: The Unlicense
Only convert to the project being compileable with TS,
no need to convert ALL the code to TS for this issue.
Currently the message handler (https://github.com/bitburner-official/bitburner-filesync/blob/main/src/networking/messageHandler.js) isn't the most robust.
Improve the handling of incoming messages, make sure things don't blow up, make it easier to extend.
Add a testing framework, make it run via npm run test
.
Either Mocha or Jest is fine by me.
Make an example test to prove it works, no need to think about what to test, only test addLeadingSlash() for example.
Add the contributing file is useful for new contributors, so they know what to do in this project
Here's a reference link: Contributing.md
It would be great to get the the estimated ram usage in the terminal on file uploads.
I saw this project is open to contributions, and it doesn't have Pull request and issue templates, it makes it easier for you to maintain your projects.
Here are links for reference:
Pull Request Template
Pull Request and Issue Template
In the code uploaded to npm for bitburner-filesync
, tsc
has been added in dependencies
, but in the repo here, it never was. This causes above error. Unless really needed, please remove the ´tscdependency from the npm package.
tsccommand is already provided by
typescript`
When a new tag is created, run an action to npm publish a built version of filesync, using the repository secret PUBLISHTONPM
Adding a formatter would be good for code quality.
Please only commit the changes for adding the formatter if you make a PR for this issue. I'll run the formatter myself.
But you do have to add it to the package.json as a npm run formatter
option besides adding it as a dependency.
A lofty goal, convert the whole codebase to proper TS.
File watching has always seemed less than ideal to me; as there are times when I want to retrieve files, times when I want to push files, and times when I don't want to do either. I find one-use commands like what the bitburner-sync
package has far nicer and am currently using it for those.
To give recent examples:
Once one of or multiple of tests/linting/formatting are in the codebase,
make it so these are validated when PRs are made.
A linter for the code would be very nice to have.
You don't necessarily have to fix all linting issues within the PR adding the linter.
But you do have to add it to the package.json as a npm run lint
option.
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.