itcsscli icon indicating copy to clipboard operation
itcsscli copied to clipboard

Currently is possible to use only the .sass extension

Open spazione opened this issue 7 years ago • 7 comments

It would be cool have the possibility to use also the .scss extension

spazione avatar Nov 06 '17 11:11 spazione

Wow, that's a nice request!

For now, if you rename the file to use the .scss extension, it'll use the correct file name in the import file.

But I'll work on the code to have scss file by default. Something like this in the itcss.yml, for example:

# ========================================
#   #itcss.yml
#   This file is automatically updated by itcsscli.
# ========================================
---
stylesheets_extension: scss

And itcsscli would generate all the modules in the right extension.

kandebonfim avatar Nov 10 '17 12:11 kandebonfim

Thanks, it's my first suggestion of my life on github :)

It's not totally clear for me your suggestion. You said to modify the extension of the Manifest.sass to Manifest.scss and after every new module it'll be created and imported with scss extension by itcssCLI. Right ?

Anyway I think I'll wait that you will add this new behaviour. it's perfectly what I was looking for. I can not wait to use i :)

p.s. Great Job!

p.p.s I have another suggestion, maybe is less important but I think it will be cool. I have to open a new Issue?

spazione avatar Nov 10 '17 16:11 spazione

@spazione yeah, please open another issue! Thanks for contributing!

I'm running a hackathon this weekend so I'll probably work on this issue on Monday.

kandebonfim avatar Nov 11 '17 14:11 kandebonfim

@kandebonfim Great!, Thanks man

spazione avatar Nov 11 '17 15:11 spazione

Done ✅

Please make sure you have the last version of itcsscli (currently itcsscli (0.1.15)) to take advantage of this feature.

kandebonfim avatar Nov 16 '17 13:11 kandebonfim

@spazione Is this issue solved?

kandebonfim avatar Nov 20 '17 14:11 kandebonfim

Hi @kandebonfim Sorry if I never responded I was very busy. I tried ITCSS 0.1.18 with this configuration:

# ========================================
#   #itcss.yml
#   This file is automatically updated by itcsscli.
# ========================================
---
stylesheets_directory: style
stylesheets_import_file: application
extension: scss

and when I try to create a module e.g itcss new trumps pages the result is:

.
├── itcss.yml
└── style
    ├── application.sass
    └── trumps
        └── _trumps.pages.sass

The extension remains .sass :(

spazione avatar Jan 18 '18 09:01 spazione