Add scripts for git submodules.
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 20 Apr 2020 19:18:40 +0000 (21:18 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 20 Apr 2020 19:18:40 +0000 (21:18 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.gitmodules
package.json

index 3442d5e64bd184f23acf71cc59651dccc97891f8..4c6cd9d438dcad0657a8d353f2a6f18d23518215 100644 (file)
@@ -1,3 +1,4 @@
 [submodule "src/assets/configs-aws"]
        path = src/assets/configs-aws
        url = git@github.com:LucasBrazi06/ev-aws.git
+       branch = master
index a01e24e8f275f8b841dc3ca8b40c45e3c191e892..c3035d19d2e53717e7ae62521da6aeda27972820 100644 (file)
     "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",