-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add config file support for @kipper/cli
#508
Comments
With this issue, a new package called The processing pipeline would look like this:
This package also will be versioned alongside all other packages, although the file schema will be fully backwards-compatible, meaning that every option once released should be available forever (unless deprecated in favor of another option), so that a config file from example |
…validation for resources, files and version
Should be finished by the first of July! Once this is done we should then move towards focusing on releasing a preview for a stable release and then finishing the first stable release. |
…nfig file as they are explicitly defined
Implemented by #519. |
The last two goals will be implemented with another issue:
|
Is there an existing proposal for this?
This feature does not exist in the latest version
Proposal
Add support for a config file that can be read by the Kipper CLI and used to specify project-wide config options that define options such as compile target, warnings, optimisation level etc. (similar to the CLI command line flags & arguments).
The file would have a JSON format and be most likely named
kip-config.json
orkipper-config.json
.Exact behaviour / changes you want
KipperCompile.compile()
call."extends"
, which specifies a parent config file, where the child should inherit from."compiler"["version"]
, which specifies the compiler version of Kipper that should be used for the current project."resources"
, which specifies a list of files that are considered resources and should be copied to the build directory using the exact same dir-structure. That means if a file is present insrc/public/assets/
then it should be copied to the build directory with the exact same path to avoid path errors in testing/deployment.--config
which can be used to specify a config file not present in the working directory.--ignore-config/--no-ignore-config
, where per default--no-ignore-config
is true meaning if a config exists it is loaded. This overwrites the--config
flag.The text was updated successfully, but these errors were encountered: