Skip to content

InstaGIS/helper-lib-js

Repository files navigation

Helper Libs JS

Travis CI

This repo contains non-specific javascript helpers that are used in a few InstaGIS frontend apps.

It exports components:

  • CollectionUtils
  • ButtonFactory
  • Wkt
  • Wicket
  • WKT2Object
  • loadingcircle
  • colorset
  • setModalClass
  • isArray
  • spaceString
  • cleanString
  • randomname
  • getCookie

Some of these methods (the ones that manipulate the DOM) need jQuery to work as intended. This means that using this library on your project will also need you to have jQuery as a dependency. It isn't listed among this project dependencies because different projects might want to use different builds of jquery (as is the case of instagis-app).

Setup

instagis-libs-js is meant to be used alongside jspm. Install it with

jspm install github:instagis/helper-lib-js 

This command will add helper-libs-js to the jspm.config.js file. By default, files will be read from folder dist which contains the minified versions of the script. For debugging purposes, you might want to use instead the source files, in which case you can override the default folder by installing as:

jspm install github:instagis/helper-lib-js -o '{"directories":{"lib":"src"}}'

Build

After making any modification to this repo, you can trigger a build - test - tag combination by doing

make tag v=16.1.35 m='tag description'

(value of v should reflect the new tag number)

About

Common helpers for InstaGIS apps

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published