diff options
author | Patrice Chalin <chalin@users.noreply.github.com> | 2022-03-21 16:36:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 16:36:03 +0300 |
commit | 122ffd224a7a5c094106c55a7f62b13911d58721 (patch) | |
tree | 9f8c9bbef40d72187ecbc306d91f2912ed114b75 /package.json | |
parent | 8602479275f7d7a03ee99c7cc6e99bcde52baecd (diff) |
Restore get:submodule script (#938)
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/package.json b/package.json index bf262ce..f0e8740 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,14 @@ "version": "0.2.0-dev", "repository": "github:google/docsy", "scripts": { - "_docs": "cd userguide && npm run", - "build:preview": "npm run _docs build:preview", - "build:production": "npm run _docs build:production", - "build": "npm run _docs build", - "docs-install": "cd userguide && npm install", - "serve": "npm run _docs serve" + "_cd:docs": "cd userguide &&", + "build:preview": "npm run cd:docs build:preview", + "build:production": "npm run cd:docs build:production", + "build": "npm run cd:docs build", + "cd:docs": "npm run _cd:docs -- npm run", + "docs-install": "npm run _cd:docs -- npm install", + "get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}", + "serve": "npm run cd:docs serve" }, "dependencies": { "@fortawesome/fontawesome-free": "^5.15.4", |