Core JS files for every JS site.
npm install @zeelo/corejs* Use
* If the data we are trying to transform is from a basic entity (EventProduct, Stop, Perk, ...)
we are using the adapter and either the adapt method or the transform method
(preferring the transform one so we can avoid the new entity call).
* If the data we are trying to transform is from a parent entity (Product with type="event") we
are using a factory with the EventProductAdapter injected. Inside the factory we will
use a switch to determine which adapter we must use and then we will call the adapt method
since this factory accepts only _AdapterInterface_.
npm run start` or `npm start`: Installs everything and launches webpack in dev mode.
* `npm run start:fresh`: Removes node_modules and public folder and then runs `npm start`.
This is mainly used for when changing some dependencies.#### Webpack
*
`npm run webpack:dev`: Launches webpack in dev mode - watch and dev build. Use this one for dev mode
when you don't need to install nor check dependencies.
* `npm run webpack:prod`: Launches webpack in prod mode - production build.#### Build
*
`npm run build`: Removes node_modules and public folder and then runs `npm run webpack:prod` for a fresh build production.#### Tests
*
`npm test` or `npm run test``: Runs Jest testing.