Skip to content

Commit 7e93e50

Browse files
committed
use local submodules except for necessary branches
The submodules are first and foremost for getting at the documentation of the various plugins, and for being able to edit that documentation so as to be able to push changes, but we can also use the code in them for bit-docs as plugins by use of file: paths, so to avoid remote npm. For those plugin repos that have necessary branches that have not yet been merged into master, we pull from GitHub instead of checking out that branch in the local submodule so as to leave the submodule available for the explicit purpose of editing documentation. If the necessary branches were still in development, we could clone them locally anywhere and point the file: to that location as needed, thus having one copy of the plugin repo for editing documentation and another for developing the code of the plugin.
1 parent 866aa43 commit 7e93e50

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@
3131
"test": "echo \"Error: no test specified\" && exit 1"
3232
},
3333
"devDependencies": {
34-
"bit-docs": "bit-docs/bit-docs",
34+
"bit-docs": "bit-docs/bit-docs#file-pathed-deps",
3535
"gh-pages": "^0.12.0"
3636
},
3737
"bit-docs": {
3838
"dependencies": {
39-
"bit-docs-dev": "bit-docs/bit-docs-dev",
40-
"bit-docs-generate-html": "bit-docs/bit-docs-generate-html",
41-
"bit-docs-glob-finder": "bit-docs/bit-docs-glob-finder",
42-
"bit-docs-html-toc": "bit-docs/bit-docs-html-toc",
39+
"bit-docs-dev": "file:docs/modules/bit-docs-dev",
40+
"bit-docs-generate-html": "bit-docs/bit-docs-generate-html#file-pathed-deps",
41+
"bit-docs-glob-finder": "file:docs/modules/bit-docs-glob-finder",
42+
"bit-docs-html-toc": "file:docs/modules/bit-docs-html-toc",
4343
"bit-docs-js": "bit-docs/bit-docs-js#remove-depend",
44-
"bit-docs-prettify": "bit-docs/bit-docs-prettify",
45-
"bit-docs-html-highlight-line": "bit-docs/bit-docs-html-highlight-line",
46-
"bit-docs-process-mustache": "bit-docs/bit-docs-process-mustache",
47-
"bit-docs-tag-demo": "bit-docs/bit-docs-tag-demo",
48-
"bit-docs-tag-sourceref": "bit-docs/bit-docs-tag-sourceref"
44+
"bit-docs-prettify": "file:docs/modules/bit-docs-prettify",
45+
"bit-docs-html-highlight-line": "file:docs/modules/bit-docs-html-highlight-line",
46+
"bit-docs-process-mustache": "file:docs/modules/bit-docs-process-mustache",
47+
"bit-docs-tag-demo": "file:docs/modules/bit-docs-tag-demo",
48+
"bit-docs-tag-sourceref": "file:docs/modules/bit-docs-tag-sourceref"
4949
},
5050
"glob": {
5151
"pattern": "docs/**/*.{js,md,mustache}",

0 commit comments

Comments
 (0)