Skip to content

Commit

Permalink
fix(pre-commit): replace question with statement
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed Jun 3, 2021
1 parent f1b1c0f commit 393d8c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 27 deletions.
8 changes: 1 addition & 7 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@
"nodemonConfig": {
"ignore": ["*-css.js", "*.css"]
},
"husky": {
"hooks": {
"pre-commit": "npm-run-all preCommit test linters bundler postinstall",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"release": {
"branches": [
"main"
Expand Down Expand Up @@ -165,7 +159,7 @@
"dist:js": "copyfiles -u 1 -V './src/**/*.js' ./dist",
"esLint": "./node_modules/.bin/eslint src/[namespace]-*.js",
"linters": "npm-run-all scssLint esLint",
"preCommit":"sh scripts/pre-commit.sh",
"preCommit": "node scripts/pre-commit.js",
"postCss:component": "node ./scripts/postCss.js",
"postinstall": "node packageScripts/postinstall.js",
"sass:render": "sass-render src/*.css -t ./scripts/staticStyles-template.js",
Expand Down
17 changes: 17 additions & 0 deletions template/scripts/pre-commit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict';

const chalk = require('chalk');
console.log(chalk.hex('#ffd200')(`
╭ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ──────────────────────────────╮`) + chalk.hex('#f26135')(`
Are you familiar with Auro's Definition of Done?
Please be sure to review`) + chalk.hex('#ffd200')(`
https://auro.alaskaair.com/definition-of-done`) + chalk.hex('#f26135')(`
before submitting your pull request
to ensure that you are compliant.`) + chalk.hex('#ffd200')(`
╰─────────────────────────────── ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
`)
);
20 changes: 0 additions & 20 deletions template/scripts/pre-commit.sh

This file was deleted.

0 comments on commit 393d8c2

Please sign in to comment.