bun installTo run:
bun run app.jsThis project was created using bun init in bun v1.0.2. Bun is a fast all-in-one JavaScript runtime.
- Filesystem
- Emulated in browser fs
- Use usual fs which user allow access
- Change
<terminal-path>and all internal components to useFileSystemDirectoryHandle/FileSystemFileHandleinstead of cringepathWithoutFsArray,fsPathandpathArray
- General commands
- mkdir
- touch
- cd
- ls
- cat
- In progress
- Should we create emulated FS
createFileSystem({type:"emulated"})insideTerminalApp, or we should get it from public API, or both ways?- The question is tricky because createFileSystem is async operation and seems like no way for it to be sync without tricky wrappers
- Should we have WASM API to include commands?
- We will need example wasm command with an api
- Change component HTML tag from
<terminal-app>to<web-terminal>?
- Terminal Input
- change
this.#recalculateCursorOffset()here and insideArrowUpandArrowDowncases - not execute when user use
ctrl+cto copy selected value - proper history with save working draft
- change
- FileSystem
- think about how possible to return something but still be able to use await, so it will wait for FS to be
ready. So we will have only
createFileSystem
- think about how possible to return something but still be able to use await, so it will wait for FS to be
ready. So we will have only
- Commands
- mkfs
- add mkfs
${fsName}usage, so it will be accessible throughcd /${fsName} - Use
/localas default value offsName
- add mkfs
- ls
- add command options
- add work with
fileSystem
- commandsMap
- make commands importable or not.
- ExecutableCommand
- add layer to execute by aliases
- mkfs
- Server part:
- transfer all frontend deps to separate folder keeping w/o build development (mean transfer
node_modulesto frontend so serve./frontendnot./)
- transfer all frontend deps to separate folder keeping w/o build development (mean transfer
- General:
- Transfer
testParentComponentand all needed for development to demo folder
- Transfer
- Tests:
- Write tests with
@web/test-runner
- Write tests with
- No ESLint Errors
