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 files improvements #953

Merged
merged 3 commits into from
Oct 16, 2017
Merged

Ignore files improvements #953

merged 3 commits into from
Oct 16, 2017

Conversation

exarus
Copy link
Contributor

@exarus exarus commented Oct 7, 2017

.eslintignore

As I understand the file is included for users that use the globally installed eslint. Hense I used eslint --ext .js,.vue to check the correctness of .eslintignore.

.eslintignore before

build/*.js
config/*.js

What is changed:

  • *.js suffixes removed because they are not necessary to ignore the whole build and config directories
  • If the / prefix is omitted than any config or build directories in the repository will be ignored (i.e. src/config/myConfig.js will not be linted). This PR adds the / prefix.
  • *.js config files from root directory are ignored by ESLint (currently they will fail linting process for airbnb style because of ; absence)
  • Unit testing generates *.js files that are contained deep in /test/unit/coverage/ folder. They will be ignored after PR merge.
  • Production build files in /dist/ will be ignored after PR merge.

.gitignore

  • added / to several paths (i.e. /dist/). So after this PR users will be able to add src/dist/normalDistribution.js to git repository.
  • I didn't add / prefix to node_modules/ because any nested node_modules folders are usually have related package.json and thus are not intended to be committed to source control.

Used resources

Any feedback is welcome.

@LinusBorg
Copy link
Contributor

Hey @exarus

Will look into this and probably merge for the next version, this looks like a great and long-needed cleanup!

Thanks!

@LinusBorg LinusBorg added this to the 1.2.0 milestone Oct 7, 2017
Copy link
Contributor

@LinusBorg LinusBorg left a comment

Choose a reason for hiding this comment

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

Looks good!

@LinusBorg LinusBorg merged commit b196679 into vuejs-templates:develop Oct 16, 2017
@exarus exarus deleted the patch-1 branch October 17, 2017 01:49
yugasun pushed a commit to yugasun/webpack that referenced this pull request Nov 2, 2017
* .eslintignore covers paths that contain generated *.js files

* .gitignore doesn't ignore unnecassary paths

* root .js files are added to ESLint ignore list
frandiox pushed a commit to OnsenUI/vue-cordova-webpack that referenced this pull request Nov 22, 2017
* .eslintignore covers paths that contain generated *.js files

* .gitignore doesn't ignore unnecassary paths

* root .js files are added to ESLint ignore list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants