Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

Add config file support for `@kipper/cli` #519

Closed Luna-Klatzer closed 4 months ago

Luna-Klatzer commented 4 months ago

What type of change does this PR perform?

Summary

Implemented support for Kipper config files which allow the automatic configuration of Kipper projects. Alongside this there is also additional functionality for the @kipper/cli, which automatically loads config files and uses them to run or compile a project.

Closes #508

List of Changes

Does this PR create new warnings?

None.

Detailed Changelog

Added

Linked issues or PRs

github-actions[bot] commented 4 months ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
./kipper/web/kipper-standalone.min.js 136.06 KB (+0.21% 🔺) 2.8 s (+0.21% 🔺) 327 ms (+34.94% 🔺) 3.1 s
./kipper/web/kipper-standalone.js 136.1 KB (+0.21% 🔺) 2.8 s (+0.21% 🔺) 322 ms (+27.15% 🔺) 3.1 s
codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 65.22911% with 129 lines in your changes missing coverage. Please review.

Project coverage is 82.49%. Comparing base (df4b943) to head (3c86d92). Report is 1 commits behind head on dev-next.

Files Patch % Lines
kipper/cli/src/commands/new.ts 23.33% 46 Missing :warning:
kipper/cli/src/prompt-module.ts 20.00% 12 Missing :warning:
kipper/cli/src/decorators.ts 28.57% 10 Missing :warning:
kipper/config/src/kipper-config-interpreter.ts 87.50% 2 Missing and 8 partials :warning:
kipper/config/src/tools.ts 42.85% 4 Missing and 4 partials :warning:
kipper/cli/src/config-loader.ts 58.82% 6 Missing and 1 partial :warning:
kipper/cli/src/copy-resources.ts 45.45% 6 Missing :warning:
kipper/config/src/abstract/config-interpreter.ts 83.33% 3 Missing and 3 partials :warning:
kipper/cli/src/commands/compile.ts 79.16% 0 Missing and 5 partials :warning:
kipper/cli/src/input/file-stream.ts 44.44% 5 Missing :warning:
... and 6 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev-next #519 +/- ## ============================================ - Coverage 83.85% 82.49% -1.37% ============================================ Files 191 205 +14 Lines 3271 3598 +327 Branches 341 406 +65 ============================================ + Hits 2743 2968 +225 - Misses 383 462 +79 - Partials 145 168 +23 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.