Skip to content

Conversation

@Ettapp
Copy link
Contributor

@Ettapp Ettapp commented Apr 8, 2018

  • Update source code to match linting
  • Extract static data from code
  • Clean transpilation & packing configuration
  • Add documentation generation tool
  • Add types for external libraries
  • Clear and split .gitignore files
  • Clear npm scripts
  • Upgrade dependencies

Fix: #129

Ettapp added 28 commits March 20, 2018 10:35
Allow us to generate a documentation with an npm script.
Prevent the generated documentation to be commited.
Make the TypeScript transpiler to warn us for every implicite "any"
types to enforce types declaration in code.
Some npm's scripts run the "tsc" command in a way that generate .js and
.js.map files.

This commit allow us to clear the project from these files, without
removing potentials stand-alone .js files.
The "clean" script use "rm" command which is not available on windows
for example.

A "rimraf" node module exists to solve this compatibility issue, but
in this use case where the command was used to remove the node_modules
folder it fails because the rimraf module has to delete itself.
Good practice: In prevision of more elaborate or alternative
configurations.
Allow us also to divide configuration in smaller files.
The @types/geojson module is a trap: It doesn't document the geojson
module but the specification (RFC 7946).

This commit add a proper .d.ts file to solve this issue.
In class definition, private member should be prefixed by an underscore
and be accessed by the outside through getters and setters.
@Ettapp
Copy link
Contributor Author

Ettapp commented Apr 8, 2018

It looks like the CI job encounter networks issues

@jcavat
Copy link
Contributor

jcavat commented Apr 16, 2018

Can you run the tests on Travis again ?

@Ettapp
Copy link
Contributor Author

Ettapp commented Apr 16, 2018

Travis passed build ;-)

@Ettapp
Copy link
Contributor Author

Ettapp commented Apr 17, 2018

Solve #131

@Ettapp
Copy link
Contributor Author

Ettapp commented Apr 18, 2018

Solve #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants