From 78da9ab59058e7e59e981f13cc1718c94d2f7337 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 12 Jul 2020 22:10:48 +0800 Subject: [PATCH] Install husky --- package.json | 6 ++++++ source/js/next-boot.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e945cf5e9..396ee8f7d 100644 --- a/package.json +++ b/package.json @@ -28,10 +28,16 @@ "eslint-config-theme-next": "1.2.0", "gulp": "4.0.2", "gulp-shell": "0.8.0", + "husky": "4.2.5", "js-yaml": "3.14.0", "stylint": "2.0.0" }, "engines": { "node": ">=10.9.0" + }, + "husky": { + "hooks": { + "pre-commit": "gulp" + } } } diff --git a/source/js/next-boot.js b/source/js/next-boot.js index 989c28c16..99dd5da25 100644 --- a/source/js/next-boot.js +++ b/source/js/next-boot.js @@ -67,7 +67,7 @@ NexT.boot.registerEvents = function() { targets : panel[index], easing : 'linear', opacity : [0, 1], - translateY: [-20, 0], + translateY: [-20, 0] }); } });