Creating Scripts
Creating Scripts
Pro-tips
- The fastest way to create a script: Launch the app as per usual, then type the name of a script that doesn't exist:
Then hit Enter.
-
You can use TypeScript by opening the
Kit
tab and "Switch to TypeScript Mode" -
The files in the
~/.kenv/templates
dir will be used when creating new scripts. You can create a template with your personal data filled out~/.kenv/templates/john.js
then in your.env
, setKIT_TEMPLATE=john
Why the Import?
The line is not required, but this comment helps code editors to apply the correct type definition files for autocomplete/code-hinting.