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

Ignore node_modules effectively #2171

Merged
merged 1 commit into from
Dec 5, 2016
Merged

Ignore node_modules effectively #2171

merged 1 commit into from
Dec 5, 2016

Conversation

davidtheclark
Copy link
Contributor

Closes #2149.

Managed to reproduce that problem in a test case, and made it pass. I'm not sure if this feature ever worked before in the PostCSS plugin; but we always intended it to, assumed it did, so I'd consider this a bug fix.

cc @simonsmith

@@ -365,3 +365,41 @@ describe("using codeFilename and ignoreFiles with configBasedir", () => {
expect(_.get(results[0], [ "_postcssResult", "standaloneIgnored" ])).toBeTruthy()
})
})

describe("file in node_components", () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_modules?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

@simonsmith
Copy link
Contributor

Thanks for this @davidtheclark :)

@davidtheclark davidtheclark force-pushed the 2149-ignore-node-modules branch from 49bc5e5 to dce664f Compare December 4, 2016 23:10
Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidtheclark davidtheclark force-pushed the 2149-ignore-node-modules branch from 5ce4660 to dce664f Compare December 4, 2016 23:57
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so I'd consider this a bug fix.

Agreed.

@jeddy3 jeddy3 merged commit 08494be into master Dec 5, 2016
@jeddy3 jeddy3 deleted the 2149-ignore-node-modules branch December 5, 2016 10:27
@jeddy3
Copy link
Member

jeddy3 commented Dec 5, 2016

Changlelog:

  • Fixed: the node_modules and bower_components directories are correctly ignored by default when stylelint is used as a PostCSS plugin (#2171).

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

Successfully merging this pull request may close these issues.

Ignoring node_modules when using the PostCSS API
5 participants