Skip to content

Commit

Permalink
feat: add default .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
scscgit committed Aug 1, 2021
1 parent 1931a02 commit 23e5a34
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto
* text=auto eol=lf
1 change: 1 addition & 0 deletions packages/cna-template/template/_.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 2 additions & 0 deletions packages/create-nuxt-app/lib/saofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ module.exports = {
files: '*',
filters: {
'_.eslintrc.js': 'linter.includes("eslint")',
'_.gitattributes': 'vcs.includes("git")',
'_.prettierrc': 'linter.includes("prettier")',
'_jsconfig.json': 'devTools.includes("jsconfig.json")',
'tsconfig.json': 'language.includes("ts")',
Expand All @@ -121,6 +122,7 @@ module.exports = {
'_package.json': 'package.json',
'_.prettierrc': '.prettierrc',
'_.eslintrc.js': '.eslintrc.js',
'_.gitattributes': '.gitattributes',
'_jsconfig.json': 'jsconfig.json',
'_stylelint.config.js': 'stylelint.config.js',
'_commitlint.config.js': 'commitlint.config.js',
Expand Down
Loading

0 comments on commit 23e5a34

Please sign in to comment.