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
gulp serveto build and launch a dev server
We use a fork and pull model for contributions, see our contributing guidelines for more details.
-
gulp vetPerforms static code analysis on all javascript files. Runs jshint and jscs.
-
gulp vet --verboseDisplays all files affected and extended information about the code analysis.
-
gulp platoPerforms code analysis using plato on all javascript files. Plato generates a report in the reports folder.
-
gulp testRuns 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 --coverageAdditionally generates a test coverage report.
-
gulp test:autoRuns a watch to run all unit tests.
-
gulp cleanRemove all files from the build and temp folders.
-
gulp clean-sassRemove all styles from the temp folder.
-
gulp sassCompile sass files to CSS, add vendor prefixes, and copy to the temp folder.
-
gulp serve:devServes 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 --testRuns unit tests on file change as well.