Commit a4f7e77
feat(gatsby-dev-cli): add verdaccio support (gatsbyjs#11525)
* feat(gatsby-dev-cli): add verdaccio support [wip]
* yuck - don't look
* just to verify verdaccio
* fix gitignore and add htpasswd with dummy gatsby-dev user
* some logging to understand why it tries to handle all the packages
* just temporarily so it hopefully at least works
* moar data
* don't copy all the packages right now
* don't rely on package name starting with "gatsby" heuristic
* tmp commit
* tmp
* fs change
* tmp
* a
* updates
* remove random files that shouldn't be here
* tmp
* revert dep changes
* ignore changes to package.json created during publishing
* testing of dep change in gatsby-cli is picked up by gatsby-dev-cli
* let's see if gatsby-dev will handle case of no node_modules
* sanity check
* adjust console message
* add missing devDeps
* more missing devDeps
* grab package.json from unpkg if package is not yet installed locally
* correctly ignore package.json changes during publishing
* cleaning things up
* htpasswd loc
* restore gatsby package.json
* adjust ignore files
* gatsby-dev-cli: ignore tests
* remove extra ln
* less console output
* turns out you don't need htpasswd after all
* use exact when installing local packages - timestamp is used in version
* why it failed?
* use yarn for publishing - see verdaccio/verdaccio#997
* v0.1.1
* add temporary .npmrc file to allow anonymous publishes
* add some jsdocs
* update yarn.lock
* oops
* debug why still can't publish anon
* adjust npmrc content
* doh
* Revert "debug why still can't publish anon"
This reverts commit fc1045a.
* handle package installation of deps didn't change
* skip version changes for packages in gatsby mono-repo, queue copying instead of doing it immediately
* fix tests
* packages stored in verdaccio storage seems to be picked up by jest and causing trouble, so let's ignore verdaccio storage directory
* bye "wat", you will be missed
* bail early to avoid conditional bracket hell
* more bailing early
* more concise
* new line
* use exaca to simplify running yarn
* clean up www/.gitignore
* handle not existing packages
* remove unused (was needed for basic auth)
* cleanup temp file changes when process exit in middle of publishing
* ops
* Apply suggestions from code review
Co-Authored-By: pieh <[email protected]>
* cleanup unpkg response handler
* move stuff around
* remove tmp comment
* document traversePackageDocs fn
* restrcuture files
* add basic tests for traversingPackageDeps
* add basic tests for generating packages to publish (based on dep graph)
* fix tests on windows
* handle circular dependencies when constructing list of packages to publish
* remove cat ;(
* restore original e2e-test script
* update gitignore1 parent 25a93de commit a4f7e77
File tree
19 files changed
+3874
-84
lines changed- packages
- babel-plugin-remove-graphql-queries
- babel-preset-gatsby
- gatsby-dev-cli
- src
- __tests__
- local-npm-registry
- utils
- __tests__
19 files changed
+3874
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
| |||
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
75 | | - | |
| 86 | + | |
76 | 87 | | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
81 | 92 | | |
82 | | - | |
| 93 | + | |
| 94 | + | |
83 | 95 | | |
84 | 96 | | |
85 | 97 | | |
| |||
122 | 134 | | |
123 | 135 | | |
124 | 136 | | |
125 | | - | |
| 137 | + | |
126 | 138 | | |
127 | | - | |
| 139 | + | |
128 | 140 | | |
129 | 141 | | |
130 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | | - | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| 106 | + | |
107 | 107 | | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments