Skip to content

Commit

Permalink
1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mo9a7i committed Aug 7, 2023
1 parent 6b16e66 commit 985dc88
Show file tree
Hide file tree
Showing 8 changed files with 2,892 additions and 272 deletions.
5 changes: 0 additions & 5 deletions .changeset/tricky-dancers-smile.md

This file was deleted.

Empty file added .spitignore
Empty file.
10 changes: 10 additions & 0 deletions .spitignore.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
*.jpg
*.gif
.spitignore
package-lock.json
.changeset/
.prettierrc.json
.prettierrc
.spitignore.example
source_code_dump.txt
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# @6degrees/source-code-spitter

## 1.3.0

### Minor Changes

- Add default ignored files
- 5ba1c2a: Rewriting with meow, cli-welcome, cli-alert, chalk

## 1.0.2

### Patch Changes

- Another fix to execution command
- Another fix to execution command

## 1.0.1

### Patch Changes

- Fix binary execution parameters
- Fix binary execution parameters
24 changes: 23 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@ const cli = require('./utils/cli');
const log = require('./utils/log');
const chalk = require('chalk');

const DEFAULT_IGNORED_FILES = [
'.git',
'.gitignore',
'.gitattributes',
'package-lock.json',
'*.md',
'source_code_dump.txt',
'.changeset/',
'node_modules/',
'build/',
'coverage/',
'*.log',
'*.lock',
'node_modules',
'*.jpg',
'*.gif',
'.spitignore',
'.prettierrc.json',
'.prettierrc',
'.spitignore.example',
];

const input = cli.input;
const flags = cli.flags;
const { clear, debug } = flags;
Expand Down Expand Up @@ -52,7 +74,7 @@ const parseIgnoreFiles = () => {
ig.add(fs.readFileSync(spitignorePath, 'utf8'));
}

ig.add(['.git', '.gitignore', '.gitattributes', 'package-lock.json', '*.md', 'source_code_dump.txt']);
ig.add(DEFAULT_IGNORED_FILES);

return ig;
};
Expand Down
Loading

0 comments on commit 985dc88

Please sign in to comment.