Okay, I'm a bit new to this but I don't think I'm going wildly wrong - hopefully.
I'm looking to get Esri Leaflet to support an internal custom cached map scales and therefore am modifying the TileLayer code. I've forked and cloned a copy of the 2.0.0-beta.6 code base from Git, have made the changes I want to test, but am struggling to get the build process to work.
The process I've followed is:
C:\GitHub\esri-leaflet [master]> npm install
/
> esri-leaflet@2.0.0-beta.6 prepublish C:\GitHub\esri-leaflet
> npm run build
> esri-leaflet@2.0.0-beta.6 prebuild C:\GitHub\esri-leaflet
> mkdirp dist
> esri-leaflet@2.0.0-beta.6 build C:\GitHub\esri-leaflet
> ./scripts/build.js
'.' is not recognized as an internal or external command,
operable program or batch file.
Once the build successfully completes then I'm expecting to run 'npm run serve' and then 'npm test' - is that correct?
Any suggestions / help would be appreciated.
Thanks
Tony
Solved! Go to Solution.
you're definitely on the right track. in the package.json just replace:
"build": "./scripts/build.js", // with "build": "node ./scripts/build.js",
Check out the previously logged bug here for more information.
you're definitely on the right track. in the package.json just replace:
"build": "./scripts/build.js", // with "build": "node ./scripts/build.js",
Check out the previously logged bug here for more information.