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
gulp serve
to build and launch a dev server
We use a fork and pull model for contributions, see our contributing guidelines for more details.
-
gulp vet
Performs static code analysis on all javascript files. Runs jshint and jscs.
-
gulp vet --verbose
Displays all files affected and extended information about the code analysis.
-
gulp plato
Performs code analysis using plato on all javascript files. Plato generates a report in the reports folder.
-
gulp test
Runs all unit tests using karma runner, jasmine, and sinon with phantomjs. Depends on vet task, for code analysis. Can specify additional browser to run tests in karma.config.js.
-
gulp test --coverage
Additionally generates a test coverage report.
-
gulp test:auto
Runs a watch to run all unit tests.
-
gulp clean
Remove all files from the build and temp folders.
-
gulp clean-sass
Remove all styles from the temp folder.
-
gulp sass
Compile sass files to CSS, add vendor prefixes, and copy to the temp folder.
-
gulp serve:dev
Serves the development code. The goal of building for development is to do it as fast as possible, to keep development moving efficiently. This task vet JS code and serves all code from the source folders and compiles SASS to CSS in a temp folder. Reload on file change.
-
gulp serve:dev --test
Runs unit tests on file change as well.