0.4.3 • Published 2 years ago

@geostarters/common v0.4.3

Weekly downloads
37
License
MIT
Repository
github
Last release
2 years ago

ICGC-COMMON

npm version

Build status

License

A Javascript lib with common functionalities to use across different projects.

INSTALLATION

npm i --save @geostarters/common

USAGE

Usage example with Svelte

import {GeoCommons} from "@geostarters/common/dist/commonjs";

 const geoCommons = new GeoCommons();

 geoCommons.getEmptyGeoJSON());

Usage with ES6 modules:

import * as ICGCCommon from " @geostarters/common";

Usage with Commonjs:

const Utils =  require("@geostarters/common");

Besides it, it is generated a single file package and its .map, using browserify:

dist/ICGCCommon.js

dist/ICGCCommon.map.js

DOCUMENTATION

DOCS API

Environment

Documenting the code

The documentation follows the JSDoc syntax.

To get started you can read the documentation.js start guide here or take a look at the provided example file here

Using types

Using flow provides a way to check for common syntax errors while calling functions. Flow provides a simple example of which kind of problems it can solve in their Type Annotations guide. There's also a list of annotations it supports there.

Writting tests

  • The project uses JEST.
  • test folder included

Provided scripts

  • build-dev: Creates a single file package with all the assertions intact to be ussed in browsers.
  • watch-dev: Watches the source
  • build-min: Creates a minified package with its map file and without assertions to be ussed in browsers
  • build-unflow: Builds ready-to-use modules in dist by removing flow types
  • build-react: Builds ready-to-use es modules in dist/es by removing flow types
  • build-modules: Builds ready-to-use commonjs modules in dist/commonjs
  • build-docs: Generates the documentation file
  • lint: Checks the code linting
  • lint-docs: Lints the documentation files
  • test: Runs the static type checker and runs the tests
  • test:unit: Runs the unit tests
  • test-flow: Runs the static type checks
  • test-cov: Runs the testing coverage

Folder structure

dist: Contains the built files generated by the scripts (dev package, minified package and map, commonjs folder and es folder)

src: Contains an index file that requires all the modules that should be exported and all the source files that compound the package.

test: Contains the unit and integration tests

License

Copyright (c) 2019 - Geostarters (MIT License) See LICENSE file for more info.

0.4.3

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.2

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.3.4

2 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.3

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago