Coder Social home page Coder Social logo

typescript-template's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

typescript-template's Issues

Two ways file sync?

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. :)

[watch:local] error when running `npm run watch` the second time onwards

Description

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

Details

OS: Windows 10
Link to reproducible repo: https://github.com/PyroGenesis/bitbotter
Discord name: Pyro#7489

Deleting files and syncing .txt files not working due to TS watcher

Deleting files and syncing .txt files isn't working through this template since the TS watcher does not:

  1. put auxiliary files (.txt) into the dist folder
  2. delete files that are deleted in the src folder

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.

Bitburner (electron) Stops Syncing with watch After Folder Deletion [WIN11]

Version info:

  • OS: Microsoft Windows 11 Pro 10.0.22621 Build 22621
  • Bitburner: v2.5.0 (b87b8b4be)
  • NPM: 9.8.1
  • Commit: 4136ab7

Issue

When deleting a folder using either File Explorer or command line, Bitburner loses sync with the src root directory in the typescript-template folder.

Steps to reproduce

  1. Start watch with command npm run watch
  2. Start Bitburner
  3. Connect via Options > Remote API > Connect on port 12525
  4. From Bitburner, confirm the presence of files and non-empty folders of the root src directory in the typename-template install using ls.
  5. From Windows Powershell (non-admin) in the root src directory, issue the commands:
    5.1 mkdir test
    5.2 cp .\template.ts test\
  6. In Bitburner, confirm that the folder test/ and file template.ts were synced.
  7. From Windows Powershell in the root src folder, issue the command rm -r test.
  8. From Bitburner, perform another ls

Notes

  • Steps 5 and 7 can be performed from File Explorer to the same effect.

Expected Behavior

Files and folders that were present in step 4 should still be available.

Actual Behavior

Files and folders that were previously present are no longer available in Bitburner even though they are present in the src folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.