UNPKG

601 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 '* text=auto',
29 'bin/* eol=lf',
30 'yarn.lock -diff',
31 'package-lock.json -diff',
32];
33
34module.exports = () => {
35 lines('.gitignore')
36 .add(gitignore)
37 .save();
38
39 lines('.gitattributes')
40 .add(gitattributes)
41 .save();
42};