diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 00000000..99b76606 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Copyright 2026 The Serverless Workflow Specification Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# This hook checks that the commit message includes a "Signed-off-by" line. + +COMMIT_MSG=$(cat "$1") + +# Check for Signed-off-by line +if ! echo "$COMMIT_MSG" | grep -qE '^Signed-off-by: .+ <.+@.+>'; then + cat <=20" + } + }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..7018d56c --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "serverless-workflow-editor", + "version": "0.0.0", + "private": true, + "description": "CNCF Serverless Workflow Specification Visual Editor", + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/serverlessworkflow/editor.git" + }, + "scripts": { + "prepare": "husky" + }, + "devDependencies": { + "husky": "^9.1.7" + }, + "engines": { + "node": ">=20" + } +}