Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create .torusignore file #11

Open
gkpty opened this issue Aug 12, 2020 · 0 comments
Open

create .torusignore file #11

gkpty opened this issue Aug 12, 2020 · 0 comments

Comments

@gkpty
Copy link
Contributor

gkpty commented Aug 12, 2020

alike .gitignore file there should be a .torusignore file. This file should be generated when the project is initialized. Every command must check if the project hasnt been initialized and initialize it automatically.

to parse the torus ignore use the following:

var gitignore = fs.readFileSync('.torusignore', 'utf8')
var ignorePaths = {}
for(let path of gitignore.split('\n')) if(path.trim().length > 1) ignorePaths[path.trim()] = true

by default include in torusignore:

.env
node_modules
.git
package.json
package-lock.json
LICENSE
.torusignore
.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant