From: Jérôme Benoit Date: Mon, 20 Apr 2020 19:18:40 +0000 (+0200) Subject: Add scripts for git submodules. X-Git-Tag: v1.0.1-0~349 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e27fae42b651ebdb5c0d49b38a2c391661186100;p=e-mobility-charging-stations-simulator.git Add scripts for git submodules. Signed-off-by: Jérôme Benoit --- 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",