This change is largely just moving files with minor tweaks to them to fix,
the rest of the commit is build process changes:
- The addons/ and test/ dirs have been moved to src/
- The build directory has been removed
- TypeScript builds are output in out/, this is where tests are run
- The demo now relies on the dist/ build which is performed as part of ./bin/build
- Addons are now shipped under the ./build directory
Calling out that the insecurity is due to the barebones implementation
of the demo will prevent people thinking that the library is inherently
insecure.
- Removed bin bash scripts in favor of npm scripts so they work
cross-platform
- Moved to use 127.0.0.1 as 0.0.0.0 doesn't work on Windows
Note that this doesn't work with the current pty.js as it doesn't build on
Windows.
just a tiny change, if you are using the demo file as example to start working with, prompt as variable might cause trouble if you do use prompt() rather use shellprompt as variable name instead of prompt. I'd suggest to rename term's prompt() as well to not cause confusion.
Implemented fit method for Terminal objects, which:
- Fits the terminal's columns to its parent element width
- Fits the terminal's rows to its parent element height