From e27fae42b651ebdb5c0d49b38a2c391661186100 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 20 Apr 2020 21:18:40 +0200 Subject: [PATCH] Add scripts for git submodules. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .gitmodules | 1 + package.json | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 3442d5e6..4c6cd9d4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ [submodule "src/assets/configs-aws"] path = src/assets/configs-aws url = git@github.com:LucasBrazi06/ev-aws.git + branch = master diff --git a/package.json b/package.json index a01e24e8..c3035d19 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,10 @@ "flow:deps": "flow-typed install", "test": "echo \"Error: no test specified\" && exit 1", "clinic:clean": "clinic clean", - "npm-check": "npm-check" + "npm-check": "npm-check", + "git:sdiff": "!git diff && git submodule foreach 'git diff'", + "git:supdate": "git submodule update --remote --merge", + "git:spush": "git push --recurse-submodules=on-demand" }, "dependencies": { "uuid": "^7.0.3", -- 2.34.1