Skip to content
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

Grunt template not working #17

Open
aliwright75 opened this issue Oct 14, 2016 · 2 comments
Open

Grunt template not working #17

aliwright75 opened this issue Oct 14, 2016 · 2 comments

Comments

@aliwright75
Copy link

aliwright75 commented Oct 14, 2016

I'm trying to write a grunt task for kss in my GruntFile.js, but it seems to be ignoring my custom template. It works if I do it from the cmd line:

kss-node app/scss styleguide --css ../app/css/style.css --template styleguide-template/

But not in Grunt... Here's my code:

 kss: {
   options: {
        verbose: true,
        template: 'styleguide-template/',
        css: '../app/css/style.css'
    },
    dist: {
        files: {
          './styleguide/': ['app/scss/']
        }
    }
  }

My structure is roughly like this:

root/
  app/
    css/
    scss/
  GruntFile.js
  styleguide/
  styleguide-template/

I created the custom template by running kss-node --init styleguide-template, and I tweaked some styles/code so it was obvious I was using my own template...

When running grunt kss in the cmd line directly, it says it is successful. But yet it doesn't use my template path. It just uses the default one still, and never raises any errors if I do a non-existing path for the template...

I've tried variations on the path location:

template: '/styleguide-template/'
template: './styleguide-template/'
template: '../styleguide-template/'

But no joy... I've even tried relocating the template folder inside my 'styleguide' folder.

Any ideas?

@RobLoach
Copy link
Contributor

Could you test on the master version of this? There were some Promise updates.

@JohnAlbin
Copy link
Contributor

JohnAlbin commented Nov 2, 2016

5.0.1 is out, please test.

Oh, also, in 5.x, we are using kss 3.x where the "template" option was changed to "builder".

If you want to use kss 2.x and its template option, you'll need to use grunt-kss 4.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants