bitburner-official / typescript-template Goto Github PK
View Code? Open in Web Editor NEWStarter repo for players who want to write bitburner scripts in typescript.
Starter repo for players who want to write bitburner scripts in typescript.
Is there going to be a full file sync between local and BB files?
That would be qol thing, but also remove one of the more annoying things there is and has been; if I make a certain mistake, it's instantly pushed to bb. Make a new file and rename it, for example. My bb is full of "new files". :|
Or to move files between folders by just dragging them, instead of 'mv'ing them in bb.
I know it's not a small task to ask, but it's quite easy to throw suggestions. :)
When I run npm run watch
, I get the following error:
[watch:local] Start watching static and ts files...
[watch:local] corp/<file1>.js deleted
[watch:local] corp/<file2>.js deleted
[watch:local] corp/<file3>.js deleted
[watch:local] corp/<file4>.js deleted
[watch:local] corp/<file5>.js deleted
[watch:local] node:internal/process/promises:279
[watch:local] triggerUncaughtException(err, true /* fromPromise */);
[watch:local] ^
[watch:local]
[watch:local] [Error: ENOENT: no such file or directory, lstat '<path to repo>\dist\corp\<file5>.js']
[watch:local] npm run watch:local exited with code 1
This only happens if I run the command the second time onwards (when the dist
folder exists).
If I delete the dist
folder, it will not happen the first time again.
Specifically, the error happens for me for the file corp/hire.js
OS: Windows 10
Link to reproducible repo: https://github.com/PyroGenesis/bitbotter
Discord name: Pyro#7489
Deleting files and syncing .txt files isn't working through this template since the TS watcher does not:
Some kind of packing or a third watcher is needed.
Research the topic, come back to me with a proposed solution/prototype and I'll consider it.
When deleting a folder using either File Explorer or command line, Bitburner loses sync with the src root directory in the typescript-template folder.
npm run watch
Options > Remote API > Connect
on port 12525
src
directory in the typename-template install using ls
.src
directory, issue the commands:mkdir test
cp .\template.ts test\
test/
and file template.ts
were synced.src
folder, issue the command rm -r test
.ls
Files and folders that were present in step 4 should still be available.
Files and folders that were previously present are no longer available in Bitburner even though they are present in the src
folder.
vscode-template
has this enabled so I guess this being off is not intentional?
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.