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

npm run script help #89

Closed
chrisblossom opened this issue Apr 7, 2016 · 6 comments
Closed

npm run script help #89

chrisblossom opened this issue Apr 7, 2016 · 6 comments
Labels

Comments

@chrisblossom
Copy link

Please provide an example of how to get this working with npm run scripts. I am using SASS (and css-modules) but this is the error I am getting:

> stylefmt -R ./src/*.scss

/Users/chris/github/app/node_modules/stylefmt/bin/cli.js:72
    files.forEach(function (file) {
         ^

TypeError: Cannot read property 'forEach' of undefined

Appreciate it!

@matype
Copy link
Owner

matype commented Apr 7, 2016

I'm so sorry, I will fix it soon.

@matype matype added the bug label Apr 7, 2016
@chrisblossom
Copy link
Author

Thanks for the quick reply! No problem at all. Assumed I was doing something wrong.

@matype
Copy link
Owner

matype commented Apr 8, 2016

fmm... I couldn't confirm this error. Please tell me your versions of Node.js, stylefmt and OS.

@chrisblossom
Copy link
Author

npm script "lint:css:fix": "stylefmt -R 'src/**/*.scss'",

>node --version
v4.4.1

>npm -v
3.8.5

>sw_vers
ProductName:    Mac OS X
ProductVersion: 10.11.4
BuildVersion:   15E65

What command are you running?

@matype
Copy link
Owner

matype commented Apr 26, 2016

@chrisblossom The bug seems to have fixed in v3.2.1. Please confirm it.

@chrisblossom
Copy link
Author

Fixed in 3fcb0c6. See #127 for more details.

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

No branches or pull requests

2 participants