IBM / css-gridish

Automatically build your grid designโ€™s CSS Grid code, CSS Flexbox fallback code, Sketch artboards, and Chrome extension.
https://ibm.github.io/css-gridish/
Other
2.25k stars 113 forks source link

Add CLI support to specify output options #20

Open joshblack opened 6 years ago

joshblack commented 6 years ago

Hi there! ๐Ÿ‘‹

This is just a suggestion for an enhancement ๐Ÿ˜„ Would be nice to update this to a CLI that supports flags like:

# Displays capabilities
npx css-gridish --help 

# Creates necessary files in the current directory for
# css-gridish to work, then runs css-gridish
npx css-gridish create <path-to-dir>

# Updates files with newest css-gridish version
npx css-gridish update <path-to-config>

# Updates files in config path directory
npx css-gridish sync <path-to-config> [...options]

Options for sync could be ones that help determine what files need to be output, the biggest ones would be:

Let me know if you'd be open to these kinds of changes or not! Can try and see what kind of effort would be involved if so ๐Ÿ˜„

seejamescode commented 6 years ago

Iโ€™m down for this to happen. I think we should do options for each directory/item to output. If we reveal that in the CLI, it should also be an object in the config with booleans for each directory/item.

Let me know if youโ€™ll take it on!