You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,11 +115,15 @@ _check `dist/index.html` for a demo_
115
115
116
116
# how to debug the core on the client side
117
117
118
-
The senerio: sometime we need to find a easy way to debug the core in the client side, for example, the web map client repo, it's installing the core by npm, so it's hard to change code in core on the client side, we can install the core by `folder` locally, and get the change on the client side immediately, to do so:
118
+
The scenario: sometimes we need to find an easy way to debug the core web map in the parent client side application
119
+
(for example, the web map client repo). The web map client repo is installing web map core as a npm package using npm,
120
+
so it's hard to change code in core and see the results in the parent client application. One way around this is by
121
+
installing web map core by a reference to its local `folder`, which allows changes made to web map core locally
122
+
to propagate to the parent client application immediately. To do so:
119
123
120
-
1. Download the web map core repository,`git clonet [path to repo]`
124
+
1. Download the web map core repository:`git clone https://github.com/Greenstand/treetracker-web-map-core.git`
121
125
1. Change to code you want in core
122
-
1. Change the version number in `package.json` (this is neccessary, if don't do it, it's posssible the client will ignore/skip the installment)
123
-
1. Generate the bundle: `npm run pre-publish` (this is nessessary, the npm will fetch the bundle file rather than the src files)
126
+
1. Change the version number in `package.json` (this is necessary, if don't do it, it's possible the client will ignore/skip the installment)
127
+
1. Generate the bundle: `npm run pre-publish` (this is necessary, the npm will fetch the bundle file rather than the src files)
124
128
1. Install the core in web map client: `npm install --save [relative path to the core folder]`
0 commit comments