Skip to content

create .torusignore file #11

@gkpty

Description

@gkpty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions