Federal Geospatial Platform Visualiser / Visualisateur pour la Plateforme géospatiale fédérale
Requirements:
Running a local build:
- Checkout the repo
- Switch to the develop branch (master is for stable, released code)
- Run
npm installto install dependencies - Run
npm run serveto build and launch a dev server
We use a fork and pull model for contributions, see our contributing guidelines for more details.
-
npm run buildBuilds development code and places it in the
builddirectory. Performs eslint, SASS -> CSS, and babel compilation -
npm run build -- --env.prodBuilds production code and places it in the
builddirectory. Performs same steps as development builds, but also places a zipped file of the build in thedistdirectory.
-
npm run serveServes the development code. Reloads on file change.
-
npm run serve -- --env.prodServes the production code. Reloads on file change.
Run npm run build -- --env.inspect
When complete, navigate to http://127.0.0.1:8888 in chrome.
You can also use two external tools with the build/stats.json file
- http://webpack.github.io/analyse
- https://chrisbateman.github.io/webpack-visualizer/
To run these flags, prefix with -- then --env. as in npm run serve -- --env.prod where prod is a flag.
-
geoLocalReplaces geoApi from npm node_module with a local geoApi repo folder located by ../geoApi -
geoLocal="path/to/geoApi"Same as no argumentgeoLocalbut uses the provided path to local folder -
useMapCreates full independent source maps files fordevelopmentcode only. Build time will increase.