my-mono-repo-to-single-repo
Removing the need for Lerna by converting to a single npm package.
At present contains 2 packages: calculate-distance-util and simple-loading-component.
Download and Installation:
- npm install
Running locally:
- npm run start
Testing:
- npm run test (will run all tests)
Building:
- npm run build
Publishing:
- npm publish --access public (will automatically run prepublish first)
Structure
<pre>
|-- dist (Compiled)
| `-- index.js
|-- src
| |-- calculate-distance-utils
| |-- simple-loading-spinner
| `-- index.js
`-- webpack.config.js
</pre>
calculate-distance-util
Given a set of 4 coordinates calculates the distance in KM between them.
Example:
import { calculateDistance } from '@lmeikle/my-mono-repo-to-single-package';
let distance = calculateDistance(a, b, c, d);
simple-loading-spinner
Renders a simple react loading spinner.
Example:
import React, { Component } from 'react';
import { LoadingComponent } from '@lmeikle/my-mono-repo-to-single-package';
class HelloWorld extends Component {
render() {
return <LoadingComponent />;
}
}
export default HelloWorld;