You can transpile your JSX based mithril component to mithril component online with help of babeljs. Goto https://babeljs.io/repl Copy your JSX component over there. Select React and ES2015 in preset for compilation. You will be getting compiled code on the right side. If you notice this compiled code is for React, and not for the mithril . You have to go one step more , Replace all the React.createElement with m and you got the code for your mithril. Cheers!
Showing posts from November, 2020
- Other Apps
CI/CD stands for continues integration, continuous deployment. Normally, I am hosting my private projects on Gitlab. One of my project is implemented on google's firebase platform. It's using firebase functions, hosting, pub-sub and other google service heavily. Why I needed CI/CD ? 😅 Initially, there was hosting and very few firebase functions to handle. It was giving me option to deploy that particle service. Like, I want to deploy only hosting, I will say $ firebase deploy --only hosting Or, If I want to deploy only function $ firebase deploy --only functions Or more precisely, I want to deploy only a particular function. $ firebase deploy --only functions:[function-name] But, as the project started to grow, this approach started showing issues in integration. Local version were working fine while deployment were showing issues. Why ? . Because, the approach of deploying only services that has been touched was depending on the list of dep