-
Notifications
You must be signed in to change notification settings - Fork 62
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
CLI configuration file #1996
Labels
tooling
CLI, stylable-scripts boilerplate
Comments
tomrav
added
research
research for future tasks
tooling
CLI, stylable-scripts boilerplate
:size(medium)
Effort estimate: small
labels
Aug 8, 2021
Edit: moved content to top |
tomrav
removed
research
research for future tasks
:size(medium)
Effort estimate: small
labels
Dec 19, 2021
19 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Stylable currently supports one build flow.
We want the ability to structure a program into smaller pieces and give the ability to share configuration between them.
When working with multi packages project that uses Stylable CLI, you will need to call
stc
from each package and specify the configuration inline. For example,stc --outDir dist
.The solution that we are looking for is that the user will configure his project in one place (regardless of whether it is one package or many).
Current main issues
stc
multiple times and not once.Goals
js
orjson
for the example -stylable.config.js
. Then the user can configure his project easily and use presets or share code (it also can be typed).We can have a field named
projects
which can be an array of package names or a record that the key represents a request that can be a package name or a matching pattern and the value can be preset, presets, partial configuration, or object with preset and configuration override.As stated above, we will give the option to declare presets available in the project.
We could also provide common presets that will have the options configured in the documentation for the user to see and use. For example, like
stcss-lib
,css-lib
,css-in-js-lib
,ssr
, etc.The user can provide his own resolve requests method.
Preset examples:
Options resolution order
Tasks:
Tags
#tooling
Related issues
#1813 #2001
Dependencies
The text was updated successfully, but these errors were encountered: