catarse / catarse.js

Mithril components for the Catarse world
MIT License
29 stars 28 forks source link

Deploy catarse.js #728

Open licolsan opened 6 years ago

licolsan commented 6 years ago

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

amoshydra commented 6 years ago

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 commented 6 years ago

Thank you @amoshydra!