UNPKG

gint

Version:

A pluggable and configurable GIT linter tool

15 lines (11 loc) 362 B
'use strict'; // Run when package is installed const path = require('path'); const isCI = require('is-ci'); const install = require('../lib/setup/install'); if (isCI && !process.env.GINT_IGNORE_CI) { console.log('CI detected, skipping Git hooks installation'); process.exit(0); } const gintDir = path.join(__dirname, '..'); install(gintDir, console.log);