Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Deploy catarse.js #728

Open
licolsan opened this issue Apr 2, 2018 · 2 comments
Open

Deploy catarse.js #728

licolsan opened this issue Apr 2, 2018 · 2 comments

Comments

@licolsan
Copy link

licolsan commented Apr 2, 2018

What is this catarse.js used for, and how to deploy it. Can anybody helps me?

@amoshydra
Copy link
Contributor

amoshydra commented May 17, 2018

Was scanning through the source code. I believe that catarse.js is used to provide the UI components.

A set of mithril components to use accross catarse.

Catarse uses Mithril router + Catarse.js inside api/application.js to provide routing for its SPA.
https://github.com/catarse/catarse/blob/0e62e3b/app/assets/javascripts/api/application.js#L150-L207

how to deploy it?

Ideally, you should be able to follow the instruction in the Readme.md to build the javascript file, e.g.

gulp build

It will then generate catarse.min.js and catarse.js within the dist folder. (However it doesn't work for me)

Using with catarse

Then inside the package.json of catarse, you can change the repo link to point to your own repository.
See: https://github.com/catarse/catarse/blob/bf3f90a/package.json#L8

@licolsan
Copy link
Author

Thank you @amoshydra!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants