FYI, this change allows new javascript features to be used (arrow functions, template strings, default params, let/const, etc) and makes starting/reloading scripts faster.
The main impacts here are:
Scripts are now stored in src/main/javascript rather than repository/scripts
Shared modules must now be imported with a shared/ prefix (eg require('shared/inv') rather than require('inv'))
Dynamically reloading scripts now requires ./gradlew watchScripts to be run in another terminal as well as running ::scripts in-game
You can also now start using typescript and any new javascript features in scripts, though this isn't required unless you want to do so (the old style of scripts will continue to work fine)
FYI, this change allows new javascript features to be used (arrow functions, template strings, default params, let/const, etc) and makes starting/reloading scripts faster.
The main impacts here are:
src/main/javascript
rather thanrepository/scripts
shared/
prefix (egrequire('shared/inv')
rather thanrequire('inv')
)./gradlew watchScripts
to be run in another terminal as well as running::scripts
in-gameYou can also now start using typescript and any new javascript features in scripts, though this isn't required unless you want to do so (the old style of scripts will continue to work fine)