Skip to content

Commit

Permalink
feat: add task: gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Aug 21, 2022
1 parent aef4c2d commit 0aeeeb6
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ Add script to package.json file
$ nr mrm editorconfig
```

### Git Ignore

**Re-Create** `.gitignore` file inside the project root.

```bash
$ nr mrm gitignore
```

### VSCode

Create a `.vscode/settings.json` file to set basic editor settings.
Expand Down
11 changes: 11 additions & 0 deletions gitignore/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { template } = require('mrm-core');
const { join } = require('path');

const task = () => {

const diff = '.gitignore';
template(diff, join(__dirname, '../templates/gitignore/gitignore')).apply().save();
};

task.description = 'Add .gitignore';
module.exports = task;
37 changes: 37 additions & 0 deletions templates/gitignore/gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# compiled output
/dist
/node_modules
.eslintcache
.build
build
coverage

# Logs
logs
*.log
.pnpm-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# project

0 comments on commit 0aeeeb6

Please sign in to comment.