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 install
to install dependencies - Run
npm run serve
to build and launch a dev server
We use a fork and pull model for contributions, see our contributing guidelines for more details.
-
npm run build
Builds development code and places it in the
build
directory. Performs eslint, SASS -> CSS, and babel compilation -
npm run build -- --env.prod
Builds production code and places it in the
build
directory. Performs same steps as development builds, but also places a zipped file of the build in thedist
directory.
-
npm run serve
Serves the development code. Reloads on file change.
-
npm run serve -- --env.prod
Serves 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.
-
geoLocal
Replaces geoApi from npm node_module with a local geoApi repo folder located by ../geoApi -
geoLocal="path/to/geoApi"
Same as no argumentgeoLocal
but uses the provided path to local folder -
useMap
Creates full independent source maps files fordevelopment
code only. Build time will increase.