form8ion plugin for managing projects versioned with git
- Initializes a git repository for a project
- Configures git to handle line endings across operating systems
- Manages ignoring files and directories from being versioned
- Detects an existing git repository configured for a project
$ npm install @form8ion/git --save-prod
import {scaffold, test, lift} from '@form8ion/git';
const projectRoot = process.cwd();
await scaffold({projectRoot});
if (await test({projectRoot})) {
await lift({projectRoot, results: {vcsIgnore: {file: [], directories: []}}});
}
$ nvm install
$ npm install
$ npm test