UNPKG

580 BJavaScriptView Raw
1const { lines } = require('mrm-core');
2
3const gitignore = [
4 // Logs
5 'logs',
6 '*.log',
7 'npm-debug.log*',
8 '.eslintcache',
9
10 //
11 '/coverage',
12 '/dist',
13 '/local',
14 '/reports',
15 '/node_modules',
16
17 // Editor & OS
18 '.DS_Store',
19 'Thumbs.db',
20 '.idea',
21 '*.iml',
22 '.vscode',
23 '*.sublime-project',
24 '*.sublime-workspace',
25];
26
27const gitattributes = [
28 'package-lock.json -diff',
29 '* text=auto',
30 'bin/* eol=lf',
31];
32
33module.exports = () => {
34 lines('.gitignore')
35 .add(gitignore)
36 .save();
37
38 lines('.gitattributes')
39 .add(gitattributes)
40 .save();
41};