-
Notifications
You must be signed in to change notification settings - Fork 8
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
Consider CLI JS -> CSS converter #23
Comments
Could you provide more details on your current workflow? Do you want a utility that takes in JSON and outputs CSS? |
something like j2c es6-export-file-with-computed-properties.js -o On 2016-03-18 3:02 PM, Pierre-Yves Gérardy wrote:
|
Now that's tricky because ES6 module bindings are static, and they are obviously not supported natively, so there are more than one way to consume them... I'll have to think about it. In the mean time, you could, programmatically, generate files with something like: #! /usr/bin/env node
/*
j2cgen.js
usage:
j2cgen.js filename > destination
*/
console.log(`
import sheet from '${process.argv[2]}';
import j2c from 'j2c';
console.log(j2c.sheet(sheet));
`) Or is it what you meant by "cping a runner"? |
You could use a System.import shim. That example is what i meant by the On Fri, Mar 18, 2016, 3:49 PM Pierre-Yves Gérardy [email protected]
|
Ah, yes, SystemJS... good call. I've never used it, though... I'll look into this later on, but my current priority is getting v1.0 out (mostly docs now). |
It's not just SystemJS, it's in ES6, any shim for System.import will work. On 2016-03-18 4:26 PM, Pierre-Yves Gérardy wrote:
|
It's quite cumbersome cping a runner to convert js to css for every project.
The text was updated successfully, but these errors were encountered: