2021-07-16 16:41:58 +02:00
|
|
|
# `core-js`
|
|
|
|
|
2021-09-23 19:25:22 +02:00
|
|
|
Core-JS defines custom functions for the **Wisemapping** ecosystem.
|
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
|
|
|
|
1. Clone repository with the next command:
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://[username]@bitbucket.org/wisemapping/wisemapping-frontend.git
|
|
|
|
```
|
|
|
|
|
|
|
|
where the variable _username_ is you username of Bitbucket.
|
|
|
|
|
|
|
|
_Note:The project is configured to use the yarn dependency manager_
|
|
|
|
|
|
|
|
2. Move to folder core-js
|
|
|
|
|
|
|
|
```
|
|
|
|
cd packages/core-js
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Now you need install all dependence, this is done with command `yarn install`
|
|
|
|
|
|
|
|
4. To start the development enviroment you have to use command `yarn start`.
|
|
|
|
|
|
|
|
## Production
|
|
|
|
|
|
|
|
To build up the package core-js and use in production, you have to use command `yarn build`
|
2021-07-16 16:41:58 +02:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2021-09-23 19:25:22 +02:00
|
|
|
To start using core-js it has to be required as a module and then intanciarce as a function
|
|
|
|
|
2021-07-16 16:41:58 +02:00
|
|
|
```
|
|
|
|
const coreJs = require('core-js');
|
2021-09-23 19:25:22 +02:00
|
|
|
coreJs();
|
2021-07-16 16:41:58 +02:00
|
|
|
```
|