-
Notifications
You must be signed in to change notification settings - Fork 26
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
Templates and preprocessors coupling #72
Comments
I think we'll need a template manifest. {
"name" : "default",
"preprocessor": "stylus"
} To achieve this, we need to define the whole process of creating templates. |
+1 on the manifesto idea for the templates But also, I think Harmonic should come with a Boilerplate template, and then it would make sense to ask what preprocessor the user would like. For example: If the user chooses the default template, Harmonic follows on and doesn't ask for a preprocessor. But, if the user chooses the Boilerplate (or whatever name, I was think this would be our "blank" template), then Harmonic asks what is the preprocessor of choice among those supported. If the user chooses Stylus, for example, at |
Not sure if we actually need a template manifest. Templates already can have their own Also, I'm not sure if we need a template I'm not opposing a template manifest, it would surely be useful for extensibility. I'm just mentioning it is not quite necessary for our current use cases. |
Well pointed @UltCombo . |
Currently,
harmonic init
/config
asks for both a template and a preprocessor. However, as previously discussed, each template will only be written with a single preprocessor.In this case, it does not make much sense to have independent template and preprocessor choices at the moment. That is, what happens if the user chooses the
default
template (which is written in Stylus) and chooses Sass as the preprocessor?How can we best solve this issue?
My initial idea would be to couple templates and preprocessors into a single choice, e.g.:
Is there a better solution?
The text was updated successfully, but these errors were encountered: