-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add vendor directories, exclude them from linting #178
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if it wouldn't be more reliable and flexible to use .eslintignore
and .stylelintignore
files with node_modules
and vendor
folders added to them by default. Then we or developers can easily add additional files and folders if needed.
How should we use scripts/styles from vendor directories? |
@luboskmetko Pushed! It works fine Mac OS. Would be cool to test those ignore files in Windows and Linux as well.
By using browserify-shim I think as Browserify is installed by default. Kind of like regular NPM packages. That's the most popular way (and problematic at the same time!) to add scripts judging on the dev help channel. :) |
hey @arturkot can you please use only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @arturkot,
If JS vendor directory is supposed to be used with browserify-shim could you write a proper guide how to use browserify-shim? It doesn't have to be part of that PR but it should finally happen.
Regarding this PR please verify what happens when src directory is moved to different place (there is option when creating WP project to do that).
@jakub300 I'll add creating a guide to my to-do list. Thanks for pointing that out! |
59cd4c5
to
6f99160
Compare
@luboskmetko Done! Just need to point out one thing I've noticed. When I choose to move I guess it's resolved in another PR? Here's my yo config: {
"generator-chisel": {
"config": {
"name": "Some Random WP project",
"author": "Artur",
"projectType": "wp-with-fe",
"nameSlug": "some-random-wp-project",
"nameCamel": "Somerandomwpproject",
"features": {
"has_jquery": true,
"has_babel": true
}
}
}
} Screenshot from terminal: Theme's src: cc @jakub300 |
6f99160
to
2df3590
Compare
@luboskmetko @jakub300 Please disregard the above comment. Sorry! Michal reminded me to rebase the branch which, of course, resolved the problem. |
Hi everyone,
the purpose of this PR is to provide a way to easily add third party dependencies which, for various reasons, can't be installed from NPM. It usually applies to jQuery plugins or paid scripts which can't be exposed to all users. Same can go for CSS files.
Please let me know your thoughts!
Should (and can) I add any tests for this update? I'd need some directions here. :)
Cheers,
Artur