Open Luna-Klatzer opened 2 years ago
Once this is added, add a warning in the documentation that it is recommend to use @kipper/cli
locally to compile the code down to TS/JS, since it can heavily affect performance unless it's inside a WebWorker.
This should be implemented with #86.
There is still uncertainty if this should be implemented, as even if it'd simplify the compilation process, it'd influence the runtime of the client and may not be as useful.
Affected area by change:
Short Introduction and Summary Implement a basic script tag, which allows the usage of
<script type="text/kipper"></script>
for kipper code, which removes the need to initialise and call the compiler like planned in the releasev0.1.0
.Is your request related to a problem? Please describe.
Currently, Kipper is mostly only developer-friendly and not very intuitive for beginners, as you have to understand the background of Kipper and understand how to use JS in a browser, which seems unnecessarily complicated.
Describe the solution you'd like
Implement automatic detection for script tags that have the type
text/kipper
, which will be automatically converted to TS, compiled down to JS and executed using the browser.Example:
Describe alternatives you've considered
Create a new function called
Kipper.runAll()
, which would compile and run all script tags instead of automatically running all kipper-tags.Additional context
None.