A skeleton Project for Javascript Libraries
Kind: global namespace
- JS-Skeleton-ES :
object
- .Point
- new Point(x, y)
- .getPosition() ⇒
number
|Array
- .random() ⇒
number
- .Point
A class containing the X and Y position of a 2D point
Kind: static class of JS-Skeleton-ES
- .Point
- new Point(x, y)
- .getPosition() ⇒
number
|Array
Param | Type |
---|---|
x | number |
y | number |
Get position of Point
Kind: instance method of Point
Returns a random number
Kind: static method of JS-Skeleton-ES
Returns: number
- A number in the range of 0 to 100
To transpile ES modules to CJS modules
rm -rf o/_; rollup index.js Tests/* --format cjs --preserveModules --dir o/_ --sourcemap
Modules don`t have __directory or __filename defined
For bundling in nodejs modules https://github.com/rollup/plugins/tree/master/packages/node-resolve